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

can you change a yaml by a node

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

Nachum gravatar image

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

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
1

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

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

Comments

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 -0500 )edit
1

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

tfoote gravatar image tfoote  ( 2012-11-24 15:11:05 -0500 )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 -0500 )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 -0500 )edit

Question Tools

Stats

Asked: 2012-11-07 01:00:35 -0500

Seen: 204 times

Last updated: Nov 07 '12