mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 08:36:08 +08:00
wrapped subscriber
This commit is contained in:
@@ -57,7 +57,7 @@ int main(int argc, char **argv)
|
||||
* The first NodeHandle constructed will fully initialize this node, and the last
|
||||
* NodeHandle destructed will close down the node.
|
||||
*/
|
||||
ros::NodeHandle n;
|
||||
px4::NodeHandle n;
|
||||
|
||||
/**
|
||||
* The subscribe() call is how you tell ROS that you want to receive messages
|
||||
@@ -74,7 +74,7 @@ int main(int argc, char **argv)
|
||||
* is the number of messages that will be buffered up before beginning to throw
|
||||
* away the oldest ones.
|
||||
*/
|
||||
ros::Subscriber sub = n.subscribe("rc_channels", 1000, rc_channels_callback);
|
||||
px4::Subscriber* sub = n.subscribe("rc_channels", rc_channels_callback);
|
||||
|
||||
/**
|
||||
* px4::spin() will enter a loop, pumping callbacks. With this version, all
|
||||
|
||||
Reference in New Issue
Block a user