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

Revision history [back]

click to hide/show revision 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.

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.