morse-simulator / morse

The Modular OpenRobots Simulation Engine
http://morse-simulator.github.io/
Other
350 stars 155 forks source link

Grasping problem of Human Avatar. KeyError: 'requested item "Near" does not exist' #816

Open omertiryakiler opened 5 years ago

omertiryakiler commented 5 years ago

Hi,

I am using Morse for Human-Robot Interaction. There is no problem about using "move" services of human. However, if I use "grasp" service, I receive this error:

File "/usr/lib/python3/dist-packages/morse/blender/main.py", line 722, in simulation_main persistantstorage.morse_services.process() File "/usr/lib/python3/dist-packages/morse/core/services.py", line 107, in process instance.process() File "/usr/lib/python3/dist-packages/morse/core/request_manager.py", line 346, in process self.main() File "/usr/lib/python3/dist-packages/morse/middleware/socket_request_manager.py", line 166, in main is_sync, value = self.on_incoming_request(component, service, params) File "/usr/lib/python3/dist-packages/morse/core/request_manager.py", line 259, in on_incoming_request values = method(*params) if params else method() #Invoke the method with unpacked parameters File "/usr/lib/python3/dist-packages/morse/robots/grasping_robot.py", line 48, in grasp near_sensor = hand_empty.sensors['Near'] KeyError: 'requested item "Near" does not exist'

I checked the previous issue about this error which is https://github.com/morse-simulator/morse/issues/565 and tried everything there, although my Morse is in the latest version. I couldn't fix the problem.

Thanks in advance.