I have a robot that undergoes visual servoing towards a particular object. The robot joints during this motion is in dynamic velocity control mode.
On reaching close to the object, I want to program the robot to reach out and grab the object with the gripper. This is best done by giving trajectory inputs to the robot. And for this the joints must be in position controlled mode.
Is it possible to change the joint mode through script? So that the robot starts responding to position inputs and not velocity inputs after some trigger condition.
Thanks
Change robot joint mode through script
Re: Change robot joint mode through script
Yes:
Code: Select all
sim.setObjectInt32Param(jointHandle, sim.jointintparam_dynctrlmode, sim.jointdynctrl_position)
sim.setObjectInt32Param(jointHandle, sim.jointintparam_dynctrlmode, sim.jointdynctrl_velocity)
sim.setObjectInt32Param(jointHandle, sim.jointintparam_dynctrlmode, sim.jointdynctrl_force)