RobotWebTools / rosbridge_suite

Server Implementations of the rosbridge v2 Protocol
https://robotwebtools.github.io
BSD 3-Clause "New" or "Revised" License
866 stars 506 forks source link

'float' object has no attribute 'get_fields_and_field_types' #910

Open Hytac opened 4 months ago

Hytac commented 4 months ago

Description When calling the /get_planning_scene service (moveit_msgs/srv/GetPlanningScene) it fails to serialize the results with the followign error:

[rosbridge_websocket-1] [ERROR 1709106045.616655214] [rosbridge_websocket]: [Client 8b631744-1ef3-4af3-8555-3e8281b42001] [id: call_service:/get_planning_scene:8] call_service AttributeError: 'float' object has no attribute 'get_fields_and_field_types' (() at :0)

Just to mention this PR fix the issue: #840.

Steps To Reproduce I've seen others to have this error with different messages, but using moveit it is easy to make it fail, Just call the service get_planning_scene

tilt-silvie commented 4 months ago

I have same issue.

tilt-silvie commented 4 months ago

@Hytac I made a PR for this issue. I haven't verified the same steps that you've written, but I hope this PR fixes your problem!

EzraBrooks commented 1 month ago

Hi, I've just reopened #840 for this fix - I erroneously thought that the issue had been fixed, because of an unrelated code change in my application that made it stop happening. I'll try to get 840 in ASAP to fix for good.