ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Hi @Scott,

I think I found the problem. The ROS std_msgs/String message type requires a "data" keyword before the actual string. I just tried modifying your HTML code with the following form of the publish command and it worked for me under ROS Electric:

  connection.publish('/recognizer/output', 'std_msgs/String', '{"data":' + '"Hello World"' + '}');

--patrick