mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 08:36:08 +08:00
px4 wrapper for ros publisher
This commit is contained in:
@@ -38,7 +38,7 @@ int main(int argc, char **argv)
|
||||
|
||||
px4::init(argc, argv, "px4_publisher");
|
||||
|
||||
ros::NodeHandle n;
|
||||
px4::NodeHandle n;
|
||||
|
||||
/**
|
||||
* The advertise() function is how you tell ROS that you want to
|
||||
@@ -57,7 +57,8 @@ int main(int argc, char **argv)
|
||||
* than we can send them, the number here specifies how many messages to
|
||||
* buffer up before throwing some away.
|
||||
*/
|
||||
ros::Publisher rc_channels_pub = n.advertise<px4::rc_channels>("rc_channels", 1000);
|
||||
px4::Publisher rc_channels_pub = n.advertise<px4::rc_channels>("rc_channels");
|
||||
|
||||
|
||||
px4::Rate loop_rate(10);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user