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

YAML / RosLaunch debug suggestion

asked 2014-12-04 07:59:41 -0600

corb gravatar image

For some complicated Roslaunch setups, it can be tough to figure out where a parameter came from. I've added the following line to each YAML file and it helps me tremendously. The tag is "source" and the value is the YAML file name:

For example in arm.yaml: source: arm.yaml

When ROSLaunch executes, you'll see the parameters print out something like this and you can immediately tell where the params came from.

  • /arbotix/joints/gripper_joint/max_angle: 0
  • /arbotix/joints/gripper_joint/max_speed: 50
  • /arbotix/source: arm.yaml
  • /arbotix/write_rate: 25

Does anyone see a downside to this or better approach?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-12-05 02:41:26 -0600

I'd suggest bringing this up with the roslaunch SIG, where it can be discussed in detail. It may be possible to build a feature like this into roslaunch - a few other additions have been made recently to make launch files easier to understand and debug.

edit flag offensive delete link more

Comments

Thanks - will do

corb gravatar image corb  ( 2014-12-05 20:34:59 -0600 )edit
0

answered 2014-12-05 02:14:44 -0600

gvdhoorn gravatar image

One possible issue with this I can see is if you have multiple yaml files all contributing to the same parameter namespace (so all putting parameters under /foo fi). iiuc if all files also have a source parameter, the last file loaded will set the value of the source parameter.

If all yaml files load into different namespaces, then this is not an issue, of course.

edit flag offensive delete link more

Comments

That's definitely an issue, but also a feature since that was one of the problems I was tracking down - which file was applied last.

corb gravatar image corb  ( 2014-12-05 20:35:39 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-12-04 07:59:41 -0600

Seen: 254 times

Last updated: Dec 05 '14