Home | Tutorials | Wiki | Issues
Ask Your Question
0

Custom Ackermann Robot in Gazebo

asked 2019-03-04 10:13:44 -0500

Miguel_Correa gravatar image

updated 2019-03-07 00:58:11 -0500

Hello all,

I want to simulate my real robot with gazebo 7 and Ros kinetic ubuntu 16.04, i already create a 3d model using SolidWork and a urdf tree with the plugin swtourdf, i try different things like create a simple model for collision, create a assembly for all the static links, use meshlab to get the inertia of the links, but still can get a good simulation of the 3d model in Gazebo. The idea is to simulate a custom ackermann vehicle.In the link below is how it looks with the simulation stopped, when it's running and the joints position in Rviz https://drive.google.com/drive/folder...

also all the joints, inertia's and center of mass (CM) stay in that moment where it should be, but when the simulation runs all the wheels, all the joints and the CM move to the center of the world. almost every link have inertia and the ones that do not, i set it like 0.0001 or 0.01. I noticed, using blender and moving the mesh to the right position and using that .dae mesh, that the simulation starts with all the parts split and them it goes to the right position but the joints and the inertia centers still move to the center of the world.

Note: I got a PID controller refer to each link and joint that should move and all of them load and star successfully. This is mi config.yaml file

left_steering_ctrlr: joint: left_front_dir_joint type: effort_controllers/EffortPositionController pid: {p: 100.0, i: 0.01, d: 10}

right_steering_ctrlr: joint: right_front_dir_joint type: effort_controllers/EffortPositionController pid: {p: 100.0, i: 0.01, d: 10}

left_front_axle_ctrlr: joint: left_front_wheel_joint type: velocity_controllers/JointVelocityController pid: {p: 100.0, i: 0.01, d: 10.0, i_clamp: 10.0}

right_front_axle_ctrlr: joint: right_front_wheel_joint type: velocity_controllers/JointVelocityController pid: {p: 100.0, i: 0.01, d: 10.0, i_clamp: 10.0}

left_rear_axle_ctrlr: joint: left_back_wheel_joint type: velocity_controllers/JointVelocityController pid: {p: 100.0, i: 0.01, d: 10.0, i_clamp: 10.0}

right_rear_axle_ctrlr: joint: right_back_wheel_joint type: velocity_controllers/JointVelocityController pid: {p: 100.0, i: 0.01, d: 10.0, i_clamp: 10.0}

If some could help me to solve this i will appreciate a lot.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-03-07 00:57:52 -0500

Miguel_Correa gravatar image

Hello there, After a bit of research i manage to achieve my goal, however it was necessary to change the urdf tree, indeed, there where was the problem or maybe the in meshes... Following the tutorials from the gazebo page i made a .sdf description of the robot and built from scratch the structure. First adding my chassis and from there every wheel and steering link. I Created a new folder in the main gazebo folder where all the model reside, and stored in there the .sdf and .config files. So now, it's alive!. But from it self, i going to put again the PID controllers in the .sdf and move it from the teleop_twist_key. Here is how it looks like with out controllers. Sorry for the noise, my computer is a little old.

https://drive.google.com/drive/folder...

Links: First https://www.youtube.com/watch?v=aP4sD... | http://gazebosim.org/tutorials?tut=in...

Second http://gazebosim.org/tutorials/?tut=b... | http://gazebosim.org/tutorials?tut=bu...

Third http://gazebosim.org/tutorials/?tut=a...

SDF format: http://osrf-distributions.s3.amazonaw...

edit flag offensive delete link more

Comments

1

Accept your answer if it is the right answer for your question. Otherwise edit your question adding the content of this answer under the 'EDIT' title and delete this answer.

kumpakri gravatar imagekumpakri ( 2019-03-15 04:37:03 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-03-04 10:13:44 -0500

Seen: 189 times

Last updated: Mar 07