Open cr139139 opened 1 year ago
Thanks for the edit suggestions. It worked !
I am trying to perform TORQUE_CONTROL mode on a serial manipulator, added through ros_description
. However, Im facing problem in this mode. It seems like effort commands are never applied on the robot, as the robot keep falling on the ground on the start of simulation. No matter how large torque value is given.
Do I need to apply torques through force = [value
] under the hood of velocity control ? rather than sending effort commands in torque control mode?
Can you please clarify?
Things are working well in POSITION/VELOCITY control mode by sending position/velocity commands.
Thanks :)
Hi, I am having the same issue, even after doing the fix mentioned here. I am sure I am giving correct inputs to the setJointMotorControlArray. I can even see the topic being published at joint_states/target. But when I echo joint_states topic, I see no effort and the robot keeps falling down as if there is no torque being applied to the joints.
Any help on the topic would be appreciated.
I have solved the problem. It is related to the method of controlling torques. Bullet sees torque control commands as external forces. When I looked deeply into the pybullet documentation, it is written:
Note that this method will only work when explicitly stepping the simulation using stepSimulation, in other words: setRealTimeSimulation(0). After each simulation step, the external forces are cleared to zero. If you are using 'setRealTimeSimulation(1), applyExternalForce/Torque will have undefined behavior (either 0, 1 or multiple force/torque applications).
So when I set step_pybullet_manually: True , the issue was solved.
Hope this helps others.
Hi. I was testing your interface and found some errors. I hope this helps someone who is having trouble with velocity or torque control.