Ask Your Question
1

Save ROS configurations like "profile" in Matlab

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

AsifA gravatar image

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

Hi,

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
1

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

kmhallen gravatar image

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

You can use rosparam dump to save parameters to a yaml file.
http://wiki.ros.org/rosparam

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

#!/bin/bash
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

Comments

1

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

AsifA gravatar imageAsifA ( 2014-09-06 06:52:33 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 74 times

Last updated: Sep 06 '14