ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
you must to create one node handle in your class such as:
class High_control
{
private:
ros::NodeHandle node_handle;
....
}
and in your init you should do something like this
rcInSubscriber = n.subscribe<mavros_msgs::RCIn>("mavros/rc/in", 10, &High_control::RcIn,this);
2 | No.2 Revision |
you must to create one node handle in your class such as:
class High_control
{
private:
ros::NodeHandle node_handle;
n;
....
}
and in your init you should do something like this
rcInSubscriber = n.subscribe<mavros_msgs::RCIn>("mavros/rc/in", 10, &High_control::RcIn,this);