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

Revision history [back]

You used ROS std_msgs.msgs.String. This class has an attribute called data with string type. If you want to use this attribute and its python built-in methods you must change your code

from

caffe_message.splitlines()

to

caffe_message.data.splitlines()