ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Using the uint8[]
type will result in a str, so if you don't mind the larger data size, it would be easy to change the spaces to the uint16[]
type.
Alternatively, you could do the following
spaces = [ord(c) for c in space.spaces]
rospy.loginfo(spaces)
ref: https://answers.ros.org/question/341940/custom-ros-message-with-unit8-in-python/