Interaction between 2 objects in Gazebo

asked 2016-07-05 06:38:57 -0600

intelharsh gravatar image

I am working on a "pick and do" operation in ROS and simulating the same in Gazebo. I have model of a wrench, which is attached to my own gripper in URDF. The gripper in turn is attached to UR5. This setup has to rotate a knob on a panel. But as soon as the gripper touches the knob, the panel flies off even though the mass of the panel has been defined as 800kg in the sdf file.

I tried the same setup by replacing my gripper with PR2 gripper (and without the wrench) and I getting decent results. So my guess is, again there seems to be some problem with the inertia of my gripper and the wrench. Would be great if anyone could help me in defining it correctly. Remove the .jpg at the end of the file name. C:\fakepath\gripper.stl.jpg

Gripper urdf : C:\fakepath\gripper.urdf.xacro.jpg

Panel sdf : C:\fakepath\model.sdf.jpg

Here's the video after making the panel model static.

edit retag flag offensive close merge delete


Have you tried visualizing the inertia on Gazebo? Right-click the model and choose View->Inertia and View->CoM. Then tweak the inertia values until you get a better approximation to your shape.

chapulina gravatar imagechapulina ( 2016-07-05 10:44:12 -0600 )edit

I am using the inertia of a cuboid macro. So I am not sure if I can make any changes apart from the mass.

intelharsh gravatar imageintelharsh ( 2016-07-06 00:35:16 -0600 )edit

The problem disappears after I enable `kinematic` property in Gazebo GUI for each link of UR5. Also, I can't do this with <gazebo reference="ur5_arm_wrist_3_link"> <selfcollide>1</selfcollide> <kinematic>1</kinematic> </gazebo> The only property which changes is `selfCollide`. How can I change this through URDF? I haven't found any documentation. I could save the world file with the entire setup. Can I load the world file instead of URDF for UR5 as well?

intelharsh gravatar imageintelharsh ( 2016-07-06 00:41:17 -0600 )edit