surgical-robotics-ai / surgical_robotics_challenge

Interactive Robot Assisted Suturing Simulation
55 stars 43 forks source link

How to enable gravity compensation for MTM teleoperation control #62

Closed JackHaoyingZhou closed 1 year ago

JackHaoyingZhou commented 1 year ago

Hi Adnan,

Hope all is well!

I would like to ask about the instruction or hints about how to enable gravity compensation for MTM teleoperation control. Is there any method that we can use to enable gravity compensation for teleoperation control in AMBF?

Thank you and look forward to hearing from you!

adnanmunawar commented 1 year ago

Hi Jack, is this still an issue? We enable the gravity compensation for the real MTM in the mtm_device_crtk at this method. Essentially we publish to a topic called /<MTM_TYPE>/use_gravity_compensation.

JackHaoyingZhou commented 1 year ago

Hi Adnan, I think the problem is resolved. My original question is actually for PSM gravity compensation (PSM will stay still even the "mono" foot pedal button is not pressed). Regarding to the MTM side, the gravity compensation can be activated through dVRK-ROS and can take the topic if required. For PSM side, since the gravity has been sat to 0, I would assume it is good to go.