ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
![]() | 1 | initial version |
You should send an std_msgs/String not an std::string.
std_msgs::String msg;
msg.data = input;
command.publish(msg);