Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

roscpp publish int32

#include <std_msgs/Int8.h>

std_msgs::Int8 msg;
msg.data = 17;
ROS_INFO("%d", msg.data);
chatter_pub.publish(msg);
Source by answers.ros.org #
 
PREVIOUS NEXT
Tagged: #roscpp #publish
ADD COMMENT
Topic
Name
1+3 =