Robotics StackExchange | Archived questions

Model moves and rotates when inserted

Hi all

I made a differential drive robot with meshes for bot collision and visual elements. When it is inserted, the robot keep moving in some direction and rotates in its own axis. Both wheels are also rotating even if velocity is not specified. Sometimes it moves forward and backward.Here are some screenshots and the model directory of the case. Properties of each link can be found here. How these errors can be resolved?

Thanks in advance

Asked by Anand George on 2016-01-07 08:32:09 UTC

Comments

Answers

It's kind of hard to tell without the plugins. I suggest you inspect your model to be sure all parameters are correct. For example, right clicking on the model and visualizing center of mass and inertia, I could see that you have a very heavy mass on a corner. (The visualizations available will depend on your version of Gazebo)

image description

Another way to find out why the movement is wrong is pausing the simulation then stepping through it slowly to see what's going on.

Asked by chapulina on 2016-01-07 13:05:28 UTC

Comments

The same thing is happening even after disabling the plugin. What are those spheres and boxes indicating?

Asked by Anand George on 2016-01-08 01:12:09 UTC

Center of mass of every links is located at its origin which are located at a corner of the link( https://drive.google.com/open?id=0B5du_0ymFMtvSXEtcWxiaktFYzg ). Maybe thal causes the problem. How can I make the origin of each link to its original center of mass?

Asked by Anand George on 2016-01-09 12:30:50 UTC

First, I suggest using something like MeshLab to recenter your mesh. As for the center of mass, there's a tag pose in inertia for a link which you can set.

http://sdformat.org/spec?ver=1.5&elem=link

Asked by Peter Mitrano on 2016-01-09 14:57:55 UTC

I've set pose for inertial element of every link. Now the center of masses are at the required positions (almost). But still, the model slips(slightly). Also when some velocity is applied to the hinge joint, the model moves abruptly in the 3D space. Why this is happening ?

Asked by Anand George on 2016-01-10 03:13:24 UTC