publisher an integer
Hello
This is the code for publisher a string:
std_msgs::String msg;
std::stringstream ss;
ss << "hello world " << count;
msg.data = ss.str();
ROS_INFO("%s", msg.data.c_str());
chatter_pub.publish(msg);
If i want publisher an integer, other to sobstitute string with for example int8 what i can do?