ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A
Ask Your Question

how to compensate gravity in gazebo ?

asked 2015-02-28 09:05:08 -0500

babaksn gravatar image

Hi I have set PID controllers in gazebo, now I want to add the gravity compensation. what should I do? actually i want to add offset to the output of PID controllers. is there any topic that i can publish to it ? i'm working on a industrial robot that have 5 joints + gantry ( visual servo ) .

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-02-28 16:11:14 -0500

I believe there is no ready-made controller providing PID control with feedforward gravity compensation. You could look into modifying the PID approach you are already using (custom gazebo plugin? gazebo_ros_control?) and adding gravity compensation.

edit flag offensive delete link more


I would add it either to your 'robot driver', or as a separate controller that runs in parallel to the PID. I'd avoid trying to extend the PID implementation, as gravity compensation is model-based, whereas a plain PID is not. More details on your approach would help, as Stefan points out.

Adolfo Rodriguez T gravatar imageAdolfo Rodriguez T ( 2015-03-02 07:42:28 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2015-02-28 09:05:08 -0500

Seen: 442 times

Last updated: Feb 28 '15