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

What are the parameter naming conventions for packages?

asked 2015-05-11 22:27:57 -0500

Cerin gravatar image

How do you determine the correct parameter names to send to a node?

I've noticed some variability in naming conventions around package parameters. Specifically, I'm trying to use stereo_image_proc and image_view, and each seems to use a mix of parameter names with and without a leading underscore. The wikis fail to mention which parameters require a leading underscore, and running package with either produces no explicit error, so it's difficult to determine which to use. However, occasionally a node will complain with a warning like:

Try restarting stereo_view with parameter _approximate_sync:=True

indicating an underscore should be used. Although both wiki pages mention the "approximate_sync" parameter, neither mention it must be prefixed with an underscore. How do you determine the correct usage?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-05-12 01:46:10 -0500

Wolf gravatar image

It is not using "use a mix of parameter names with and without a leading underscore." Some of the names are parameter names, others are remapped topic names, see this answer:

http://answers.ros.org/question/20903...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-05-11 22:27:57 -0500

Seen: 478 times

Last updated: May 12 '15