ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
1) Create an object of the ROS Msg/Srv. 2) Use the dot operator. Example:
std_msgs::String msg; msg.data = "Hello World";
2 | No.2 Revision |
1)
#include "std_msgs/String.h"
std_msgs::String msg;
msg.data = "Hello