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

Revision history [back]

Hello again koboy, hopefully this one will be simple. If you look at the definition of the ros String message type here. It contains a single value with the type string and the identifier data.

So if I've got this right the value you want to assign to w is data.data not data.String() since it as the error shows it doesn't have a member named string.