ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

pid controller

asked 2012-09-23 04:57:41 -0600

nir gravatar image

updated 2012-09-23 10:48:22 -0600

Eric Perko gravatar image

Hi All, Im trying to implement my own pid controller os a simple joint. my difficulty is to understand how to build it using srv/topics/actionlib etc, and how to get a continuous action that will evantually stop the joint at the right position.

thanks, Nir.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
8

answered 2012-09-23 06:41:31 -0600

cagatay gravatar image

pr2_controller_manager provides a hard realtime loop to control the robot mechanism. The robot mechanism is represented by a set of effort controlled joints. I really tried this and it is a really great tool. Dont think that it is only for pr2. Here some useful links to check out

concept of controller manager

writing real time controller

implementing pid with control toolbox and pr2 controller

hope these help

edit flag offensive delete link more

Comments

You can refer to this repo to write a controller:

https://github.com/epfl-lasa/kuka-lwr...

itfanr gravatar image itfanr  ( 2018-09-14 00:53:45 -0600 )edit
6

answered 2012-09-23 06:00:04 -0600

Thomas D gravatar image

updated 2014-07-23 22:42:44 -0600

I have written a fairly generic PID server that you can get from here. For a joint you could start a few PID servers - one for position/angle/velocity. The nice thing to do is use rxplot to visualize your desired vs. actual joint angle, use dynamic reconfigure to modify your PID gains during runtime, and tune those gains based on how well the PID loop is performing.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2012-09-23 04:57:41 -0600

Seen: 5,497 times

Last updated: Jul 23 '14