Youbot Gazebo Torque Control
Hi there,
I am using youbot's mobile robot in gazebo to test a dynamic programming algorithm that I wrote up.
I am sending torques to each of the four wheels via the service call /gazebo/apply_joint_effort
. For a force as little as 40 Newtons, I found that instead of the youbot driving forward/backward/sideways, it keeps somersaulting about the z-axis (see video at this link).
I am taken aback by this. Has anyone worked with the youbot urdf before in siumulation using torque control that had a similar experience to mine?
If so, how did you fix this problem?
Looking forward to your answers.
Asked by lakehanne on 2018-02-06 22:36:48 UTC
Answers
It seems the torque we give to the robot via the /gazebo/apply_joint_effort
only causes an upward/downward acceleration of the whole robot body. Instead of giving it torques, we can give it force from gave it force though the wrench structure available in /gazebo/apply_body_wrench
and set the torque fields to 0
.
This would cause the robot to move in the x-y plane only.
Asked by lakehanne on 2018-02-08 01:17:49 UTC
Comments