Home | Tutorials | Wiki | Issues
Ask Your Question
0

Making wheel rotate freely and turn (four-wheeled robot)

asked 2013-01-22 09:58:11 -0500

r0nald gravatar image

updated 2013-01-22 09:59:24 -0500

Hi.

I want to create a four-wheeled robot, where two front wheels have fixed axis, but are rotated by a SetVelocity() command in a Gazebo plugin. The two rear wheels should rotate freely in the main axis, but I should be able to turn them in the other axis with the SetVelocity() command (for turning the robot).

I have tried to do this, but there seems to be a conflict between making the rear wheels rotate freely(motion in one axis of the joint) and being able to turn them according to my commands.

Here is the model of my robot : http://pastebin.com/1EEkfb6A (joint definition is in the bottom). Initially I have used it in the empty_world template that comes with ROS Groovy.

The main symptoms of the problem is that if I do SetMaxForce for any axis, then the main axis of the wheels is blocked and the wheels don't rotate.

Is it possible to give two axis of the same joint different properties? So that in one axis my wheel rotates freely and in the other I control it with SetVelocity. How?

Or why can't I achieve the desired result?

Any help is much appreciated.

I am testing this on Gazebo 1.2.5 that came with ROS Groovy.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-01-22 10:46:50 -0500

nkoenig gravatar image

It looks like the last two joints are defined improperly. The type of the joint should be "revolute2", which indicates that there are two axis of rotation connected in series.

edit flag offensive delete link more

Comments

Thank you very much, it helped. I did not know about that joint type.

r0nald gravatar imager0nald ( 2013-01-22 11:01:00 -0500 )edit

Is it not possible to get the angle of this type of joint? joint->GetAngle(0) always gives zero.

r0nald gravatar imager0nald ( 2013-01-22 16:27:56 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-01-22 09:58:11 -0500

Seen: 1,719 times

Last updated: Jan 22 '13