-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
Description
My Environment
- Ubuntu 22.04.1
- ROS 2 Humble desktop install
Description
When I start simulation by using ros2 launch ur_simulation_gazebo ur_sim_control.launch.py, the robot's joints break as in this image:

To clarify this phenomenon, I changed the initial joint positions as follows:
shoulder_pan_joint: 0.0
shoulder_lift_joint: -1.4
elbow_joint: 2.2
wrist_1_joint: -2.37
wrist_2_joint: -1.57
wrist_3_joint: 0.0
If the controller is not activated, this does not happen (the robot just lies down).
My Attempts
Turning off gravity
I added turnGravityOff tag for each link in the URDF description:
<gazebo reference="shoulder_link">
<turnGravityOff>true</turnGravityOff>
</gazebo>
Then the robot looks fine, but it may behave the same for external forces other than gravity.
Increasing damping and friction
Increasing the values of damping and friction for each joint in URDF made the robot stable, but the joints still shift a little.
<dynamics damping="1" friction="1"/>
Adding CFM and ERP
I didn't see the effect of this.
<gazebo reference="shoulder_pan_joint">
<implicitSpringDamper>true</implicitSpringDamper>
<stopCfm>0</stopCfm>
<stopErp>0.2</stopErp>
</gazebo>
Metadata
Metadata
Assignees
Labels
No labels