mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 05:11:35 +08:00
progress on att_estimator node
This commit is contained in:
@@ -39,14 +39,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ros/ros.h"
|
#include "ros/ros.h"
|
||||||
#include "std_msgs/String.h"
|
#include <gazebo_msgs/ModelStates.h>
|
||||||
|
//#include "std_msgs/String.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This tutorial demonstrates simple receipt of messages over the ROS system.
|
* This tutorial demonstrates simple receipt of messages over the ROS system.
|
||||||
*/
|
*/
|
||||||
void chatterCallback(const std_msgs::String::ConstPtr& msg)
|
void chatterCallback(const gazebo_msgs::ModelStates &msg)
|
||||||
{
|
{
|
||||||
ROS_INFO("I heard: [%s]", msg->data.c_str());
|
// try to read out message here
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
|
|||||||
Reference in New Issue
Block a user