ros_pybullet_interface icon indicating copy to clipboard operation
ros_pybullet_interface copied to clipboard

Fix move to initial state service

Open cmower opened this issue 3 years ago • 0 comments

The service is initialized here:

https://github.com/cmower/ros_pybullet_interface/blob/2680c302114ac84f40b8946aa77ff1e7e9f81f84/ros_pybullet_interface/src/rpbi/pybullet_robot.py#L37

This uses the ResetJointState service template. However, the joint_state in the service request is ignored (the initial joint state is retrieved from the configuration file).

When calling the service it requires the user to pass an empty JointState message, as follows

duration = 5.0  # secs
resp = srv_handler(JointState(), duration)

Ideally this should be

duration = 5.0  # secs
resp = srv_handler(duration)

cmower avatar Jul 19 '22 10:07 cmower