ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
According to the documentation (here), the joint_positions
field is a list of float64
elements.
You appear to be assigninging a list of numpy types to it.
That is ok with Python (as the interpreter itself doesn't care), but genpy
can't work with those, hence the error.
2 | No.2 Revision |
According to the documentation (here), the joint_positions
field is a list of float64
elements.
You appear to be assigninging a list of numpy types to it.
That is ok with Python (as the interpreter itself doesn't care), but genpy
can't work with those, hence the error.
Edit:
Now I converted my numpy types to Float64, but the error remains.
Float64
is a ROS msg type that wraps float64
primitive types.
And float64
is not a Python type. If you use float(..)
it should work.