Answers for "roscpp publish int32"

C++
1

roscpp publish int32

#include <std_msgs/Int8.h>

std_msgs::Int8 msg;
msg.data = 17;
ROS_INFO("%d", msg.data);
chatter_pub.publish(msg);
Posted by: Guest on June-02-2020

Browse Popular Code Answers by Language