Gazebo | Ignition | Community
Ask Your Question

Hexapod simulation not working

asked 2015-11-12 03:41:09 -0500

costashatz gravatar image


I want to create a simulation for a simple hexapod. When I spawn the model in Gazebo, I get a behavior like the following:

image description

The behavior I was expecting was the hexapod at its zero position; standing.

I, also, implemented a simple plugin for setting the joints to their zero position at every update, but if I use SetPosition physics explode and if I use PID controllers and SetForce I need to specify the PID gains (which I want to avoid - setting dummy pid gains like 1,0,0.1 does not work). Here's what I get when I use SetPosition: C:\fakepath\hexa.gif

Any ideas?

For reference I am attaching the sdf file: C:\fakepath\pexod.sdf

Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-14 13:11:57 -0500

Duckfrost gravatar image

updated 2017-08-14 13:17:38 -0500

I know this is an old question but I think even now because knowing how to create an hexapod with plugin that moves the robot around and with an SDF model not a URDF might be usefull to someone.

I made a video answer explaining a bit the process and the result here VideoAnswer image description

So I there wasn't anything wrong with the model. It must have been something related to the plugin or some strange library error.

I essentially created a gazebo plugin that moves the joints using SetPosition and PIDs and it works just fine. I'm posting here the code I can.

Hope this is usefull.





edit flag offensive delete link more


Could you post the I'm a new guy and don't konw how to control it through ros. Did you sent the control command through topic?

littleghost gravatar imagelittleghost ( 2018-02-25 22:38:05 -0500 )edit
1 There you have a ghist of the code

Duckfrost gravatar imageDuckfrost ( 2018-06-22 05:13:33 -0500 )edit

Plugin file is so useful, could you please post all of files? your ROS development studio may contains more files, I follow your instructions and add these files to my RDS but haven't implemented the predicted outcome. Is there any other way to perform this simulation rather than using ROS development studio? Thanks so much for your help~~

AbnerNiu gravatar imageAbnerNiu ( 2018-12-04 15:43:34 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-11-12 03:41:09 -0500

Seen: 2,314 times

Last updated: Aug 14 '17