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

Save ROS configurations like "profile" in Matlab

asked 2014-09-05 21:07:51 -0500

AsifA gravatar image

updated 2014-09-05 21:09:07 -0500


I am launching a main.launch file. This file is calling several other configuration files of several nodes depending on the task. I know that I can record the data using rosbag record when I'm on mission.

Is there a possibility to save all the configurations along with rosbag? I am looking for some thing similar as profile in Matlab.

Any help is much appreciated. :)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-09-05 23:06:19 -0500

kmhallen gravatar image

updated 2014-09-06 07:34:39 -0500

You can use rosparam dump to save parameters to a yaml file.

I use a script to save all parameters right before recording a bag.

rosparam dump `date +%Y-%m-%d-%H-%M-%S`.yaml
rosbag record /topic1 /topic2 /topic3

Edit: Removed -u option from date.

edit flag offensive delete link more



Great. In order to use local time instead of universal you can remove -u from date option.

AsifA gravatar image AsifA  ( 2014-09-06 06:52:33 -0500 )edit

Question Tools

1 follower


Asked: 2014-09-05 21:07:51 -0500

Seen: 355 times

Last updated: Sep 06 '14