Publish nan to a jointState topic
Hi, I want to publish a jointState message from terminal with NaNs as the values inside some of its fields. Is there a way I can do that.
If I do
rostopic pub -r 2 /test sensor_msgs/JointState "header:
seq: 0
stamp: {secs: 0, nsecs: 0}
frame_id: '/test'
name: ['l', 'r']
position: [0.0, 0.0]
velocity: [0.0, 0.0]
effort: [nan, nan]"
I get the following error
Unable to publish message. One of the fields has an incorrect type:
<class 'struct.error'>: 'required argument is not a float' when writing '/test'
Thanks.