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

can you change a yaml by a node

asked 2012-11-07 01:00:35 -0600

Nachum gravatar image

updated 2012-11-07 21:31:59 -0600

HI I am working with the drc robot, it comes with PID controller on each of the joints. The parameters of each PID are all in a yaml format file. I would want to change some of those parameters while those controllers are running. How should I do it? Thanks all. Nachum

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-11-07 01:09:58 -0600

Lorenz gravatar image

YAML configurations are uploaded on the parameter server and you can change them using rosparam set <parameter name> <value> from the command line. roscpp and rospy also provide methods to change the values of parameters. However, just changing PID parameters will not have any effect unless you restart the corresponding controller. I don't know how the controller architecture on your robot looks like, so I cannot provide any information on how to achieve that.

edit flag offensive delete link more


I am working on the Drc robot of Darpa. All the joints come with a pid but i would like to change some of them.

Nachum gravatar image Nachum  ( 2012-11-07 02:15:48 -0600 )edit

For DRC specific questions I suggest you use the DRC forums.

tfoote gravatar image tfoote  ( 2012-11-24 15:11:05 -0600 )edit

Lorenz - does it mean that when I do it my robot will be without controllers for a moment?

Nachum gravatar image Nachum  ( 2012-11-27 19:16:26 -0600 )edit

Since I do not know your platform, all I can say is that it depends on the implementation o your controller framework. On the PR2 for instance, controller switching is possible almost without a delay.

Lorenz gravatar image Lorenz  ( 2012-11-27 21:09:33 -0600 )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: 2012-11-07 01:00:35 -0600

Seen: 152 times

Last updated: Nov 07 '12