Open matteolucchi opened 5 years ago
same issue
I had the same question some weeks ago, and I think I understood what is happening. The point is that Gazebo allows you to use position and velocity control interfaces in a flexible way:
SetPosition
(SetParam
) is used (see here and here). This should mean that the command is applied exactly, and therefore I think the dynamics will not be taken into account.SetForce
(see here and here). Here you have a more realistic simulation that takes into account robot's dynamics.The reason why you get a weird behavior is probably that the gains are not well tuned. I would also consider adding gravity compensation for the manipulator (there should be a plugin in Gazebo doing it). Otherwise, if you do not care about the dynamics, simply unset the PID gains and forget about the error!
@francofusco Thank you very much for you input! I had somehow figured that it was something like that but now is more clear! Thank you!
Same issues.
I would just like to leave this here. In case you are using PositionJointInterface (on Melodic/Gazebo9) and it doesn't work as expected, supply negative PID values. For some reason the Gazebo system provides positive feedback instead of negative.
Edit: Strike that comment above.
See my comment at https://github.com/ros-controls/ros_controllers/issues/365 .
Hello, I am running a simulation of a mobile manipulator, composed by a mobile base with differential drive and a 6 DOF manipulator.
For the manipulator I am using a
velocity_controllers/JointGroupVelocityController
controller, whereas for the mobile base I am usingdiff_drive_controller/DiffDriveController
. After the latest update fa9c99042d1f013398d4fa68398ca772283b85b8 , this error started to pop up for all the joints in my robot model[ERROR] [1549875853.096599133, 0.167000000]: No p gain specified for pid. Namespace: /gazebo_ros_control/pid_gains/<joint_name>
.The controllers still work fine, but I don't understand what causes this error. I tried adding pid gains to the yaml configuration file of the controllers:
for all the joints. Adding this removes the error when launching the simulation but produces weird behavior for the robot. The robot arm is not standing correctly anymore. I looked around a lot but I couldn't figure out a way to solve this, this appeared only after the last update. Any hint on how to solve this?
I am running the simulation on Gazebo 7 and Kinetic.
Thank you in advance for your time