Gazebo | Ignition | Community
Ask Your Question

costashatz's profile - activity

2016-01-07 03:32:16 -0500 received badge  Famous Question (source)
2015-11-17 12:50:27 -0500 received badge  Notable Question (source)
2015-11-16 10:32:22 -0500 received badge  Popular Question (source)
2015-11-12 03:41:09 -0500 asked a question Hexapod simulation not working

Hello,

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!

2015-04-12 19:50:44 -0500 received badge  Student (source)
2014-08-27 05:52:47 -0500 received badge  Famous Question (source)
2014-02-17 13:09:47 -0500 received badge  Notable Question (source)
2014-02-13 06:24:23 -0500 received badge  Popular Question (source)
2014-02-13 05:44:47 -0500 received badge  Scholar (source)
2014-02-13 05:44:34 -0500 answered a question Gazebo_ros_pkgs: No p gain specified for pid in PositionJointInterface

@Jim Rothrock

The problem was solved using pid gains for Position Joint Controllers (Interfaces).

But I still believe that this should be fixed in a later version. When you specify a position joint controller, not having pid gains is exactly what you want (in some cases - in my case too, because I don't have access to the robot's motors specifications and the robot uses servo motors).

Anyway, thanks for the reply and I've finally solved my issue. :)

2014-02-11 16:58:36 -0500 commented answer Gazebo_ros_pkgs: No p gain specified for pid in PositionJointInterface

Well, I tried it and it seems to tackle the problem. I haven't been able to find the pid values corresponding to the servo motors of the robot, but playing around with the pid values points to that direction in order to solve the problem. Thanks. I will post an answer when I've finally solved it for sure.

2014-02-11 12:12:47 -0500 asked a question Gazebo_ros_pkgs: No p gain specified for pid in PositionJointInterface

I have built gazebo_ros_pkgs in the catkin workspace and working with some Joint Position Controllers (successfully - I can control my joint controllers via rqt or topics). The building part in the catkin workspace is needed for the new features to work in version 2.3.4 (see pull request #135).

However, my robot keeps sliding on the ground (slowly but sliding). Here's a video of that behavior. At first I thought it was because I hadn't included friction on my links. I did include friction but nothing changed. Also, at first I had collada models for collision, but changed them to stl. Same behavior though. I suspect visual-collision misalignment (exists in my case) problems in gazebo.

Gazebo throws some errors (not fatal ones though and continues). Here's an example:

[ERROR] [1392128262.341496657, 0.791000000]: No p gain specified for pid.  Namespace: /nao_robot/gazebo_ros_control/pid_gains/RAnklePitch_Roll_Joint

I haven't created effort joint controllers as the robot I'm trying to simulate has servo motors. I am not sure if that is entirely correct. Maybe I need effort joint controllers.

Any ideas? Thanks..