ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
All you need to do is convert your numpy array to a python list and assign it to your message.action.
This means replace the line ThrustArray = Thrust
with (as you tried before) ThrustArray.action = list(Thrust)
. This should do the trick. This works since you know, that Thrust is a 1D array making the numpy-array to list conversion rather easy.