px4 wrapper for ros publisher

This commit is contained in:
Thomas Gubler
2014-11-25 09:56:18 +01:00
parent 0a3492fc32
commit 978013bbb8
3 changed files with 33 additions and 6 deletions
+3 -2
View File
@@ -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);