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

Dynamic Reconfigure to camera.yaml file?

asked 2011-06-15 02:29:56 -0600

Bradley Powers gravatar image

Hello,

I'd like to use the Dynamic Reconfigure GUI to configure my camera (bayer settings, etc.) and then publish that information to a camera.yaml file. I don't see anything about how to do this in either the camera_drivers or dynamic_reconfigure tutorials, and I don't really know how to get started. Any ideas?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
6

answered 2011-06-15 03:00:46 -0600

Pi Robot gravatar image

Hi Bradley,

Once you have the settings the way you want, go to another terminal window, move to the directory where you want to save your camera.yaml file (e.g. roscd my_package/params), then issue the command:

$ rosrun dynamic_reconfigure dynparam dump /camera_node_name camera.yaml

where /camera_node_name is the name of the node you are configuring in dynamic_reconfigure.

To load this file from a launch file at a later time, add the following to the launch file:

<node name="dynamic_reconfigure_load" pkg="dynamic_reconfigure" type="dynparam" args="load /camera_node_name $(find my_package)/params/camera.yaml" />

where of course you need to make the appropriate substitutions for /camera_node_name and the package location of your camera.yaml file.

--patrick

edit flag offensive delete link more

Comments

Excellent. Works great, and a very quick turnaround. Thank you!
Bradley Powers gravatar image Bradley Powers  ( 2011-06-15 03:49:05 -0600 )edit
Awesome--glad to help!
Pi Robot gravatar image Pi Robot  ( 2011-06-15 04:27:00 -0600 )edit

Question Tools

Stats

Asked: 2011-06-15 02:29:56 -0600

Seen: 3,226 times

Last updated: Jun 15 '11