Make a kinematic only model
Hello everybody,
I have a robot model written in urdf and I want to make it move with a linear/angular speed command. So I have modified the planarmove plugin. I also had to make some links (not close to the ground) kinematic to avoid bad orientation in turn. But I still have a small bias in the trajectory following (which works fine with the diffdrive plugin).
I tried to disable gravity, set constraint solver iterations to 0, set all the links to kinematic. But when the robot receives an angular speed (take a turn), all the links falls apart.
Some possibilities :
Maybe the little bias can be corrected with follower's parameters (but I don't want to change them to test that specific version)
I am probably making some mistakes in using kinematic. I saw some posts about it but no answer. What is the steps to follow in order to use a kinematic only simulation ?
Thanks in advance.
Asked by Brosseau.F on 2016-06-17 10:40:41 UTC
Answers
Workaround: I made a plugin to apply speed to the base link of my robot.
This plugin will also set links (which are not parents on a joint) with no friction.
And it's working pretty nice.
Update :
This plugin was working with a model with unrealistic inertial matrix. When I tried it on a more realistic model a bias between the wanted angular speed and the actual one appeared.
As I said here (http://answers.gazebosim.org/question/17842/car-with-front-wheel-drive/), the solution is to switch the root link of the model to be kinematic (SetKinematic method). And then you can apply the wanted speed with SetLinearVel and SetAngularVel.
Asked by Brosseau.F on 2016-10-21 01:42:27 UTC
Comments