First time here? Check out the FAQ!
answered 2017-03-08 01:29:08 -0500
You should send an std_msgs/String not an std::string.
std_msgs::String msg; msg.data = input; command.publish(msg);