Hi b3l33
The gains of the controller and the inertia of the model have default values.
This cause the the arm has a lot of inertia and the controller is very slow and underdamped.
The origin of the oscilations is the gravity, acting as a perturbation on the system.
Other efect is a very large position error. When the arm stops, the hand is very down the goal state. You can see it in rviz.
I want to develope a best modell next week, but now you can use the following;
(This values are tested for hydro-dev branch of ros-industrial/universal_robot package.)
In order to improve the behaviour, you should increase the gain of the controller, reduce the inertia of the links and increase the damping in the joins.
You can change all p gain from 1.000 to 10.000 in the file,
ur_gazebo/controller/arm_controller_ur5.yam
shoulder_pan_joint: {p: 10000.0, i: 0.0, d: 0.0, i_clamp: 0.0, i_clamp_min: 0.0, i_clamp_max: 0.0}
shoulder_lift_joint: {p: 10000.0, i: 0.0, d: 0.0, i_clamp: 0.0, i_clamp_min: 0.0, i_clamp_max: 0.0}
elbow_joint: {p: 10000.0, i: 0.0, d: 0.0, i_clamp: 0.0, i_clamp_min: 0.0, i_clamp_max: 0.0}
Reduce inertia in all links to inertia to ixx="0.002" ixy="0.0" ixz="0.0" iyy="0.02" iyz="0.0" izz="0.002" in files
ur_description/ur5_joint_limited.urdf.xacro and ur_description/ur5_joint_limited.urdf.xacro
<inertia ixx="0.002" ixy="0.0" ixz="0.0" iyy="0.02" iyz="0.0" izz="0.002"/>
And increase the damping in all joints to 0.5 in files
ur_description/ur5_joint_limited.urdf.xacro and ur_description/ur5_joint_limited.urdf.xacro
<dynamics damping="0.5" friction="0.0"/>
Has the cylindrical post a mass?
Yes. It has a mass of 50. I have since discovered that the manipulator exhibits the same behaviour if fixed directly to the ground as well. Please see the following youtube video for reference: http://youtu.be/RVYIK4C_mgk Any suggestions on what I may do to stabilize the robot's behaviour? Thank you!