Roscpp Publish Int32
#include <std_msgs/Int8.h>
std_msgs::Int8 msg;
msg.data = 17;
ROS_INFO("%d", msg.data);
chatter_pub.publish(msg);
Noothless
#include <std_msgs/Int8.h>
std_msgs::Int8 msg;
msg.data = 17;
ROS_INFO("%d", msg.data);
chatter_pub.publish(msg);