Robotics StackExchange | Archived questions

wheels move by themselves

So I made this simple two-wheel with a chassis robot in urdf. Then I ran it with roslaunch in gazebo, and found the wheels moving slowly by itself. I could see velocity and effort in axis1 of their joints set to -1. What's the problem here? Do you see the same behavior? or just my machine?

model.urdf: link alphbot.launch: link alphbot.world: link

EDIT: I'm using gazebo version 7.4.0 and ROS Kinetic and, (might not be relevant), running this in catkin workspace.

Asked by mixs222 on 2016-12-17 17:44:26 UTC

Comments

Answers

One reason could be that your model starts the simulation inside the ground, so the first thing the simulation does is pushing it up strongly, and the robot might get some small velocity from that. Try spawning it in a higher position.

But in any case, to avoid drifting even further, you might need to configure surface properties a bit more, which is not trivial.

Asked by chapulina on 2016-12-19 11:39:55 UTC

Comments

I've tried spawning at z=0.1, 0.2, 1, 5, and 10 but it still behaved the same. I added tag with kp=10000, kd=1, mu1=50, mu2=30 to both wheels, and it went even faster! (I think it's because the wheels had more friction to grab and push the robot forward). By the way, the discrete integer "-1" really bothers me. So I tried changing velocity/effort limit and adding tag (like example in http://wiki.ros.org/urdf/XML/Transmission). Yet it's still the same.

Asked by mixs222 on 2016-12-19 18:40:37 UTC

Have you tried setting static joint friction for the wheel joints? This should stop them from responding to little torques coming from little calculation errors.

Asked by eugene-katsevman on 2017-04-11 10:01:27 UTC

Comments