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

Best practices for logging messages and parameters

asked 2011-08-24 10:30:48 -0500

Markus Achtelik gravatar image

Hi all,

I was wondering about best practices to log datasets with rosbag and save the parameters that were used during logging. As long as parameters do not change, I could just run rosparam dump paramfile and then run rosbag record my_topics. However, when e.g. using dynamic reconfigure during logging, parameters will change. One could now run rosparam dump paramfile every time dynamic reconfigure was used, but that's rather tedious and error prone. Another way would be to create a parameter message and publish the current parameters at a constant rate - less error prone but also not really nice... any better ideas?

Would it be possible to configure the parameter server such that it dumps the parameters on every change, or can I find something like this already somewhere in the logs?

Best, Markus

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-09-02 10:39:54 -0500

kwc gravatar image

In terms of 'best practices', I wouldn't change parameterization while collecting data. In general, it will be hard to properly synchronize the affect of parameter changes with streaming messages.

edit flag offensive delete link more

Comments

I agree to that. For some specific case, we just published the few parameters that changed with a custom message. For the rest it would be nice to have a rosbag record parameter like "-p" which does a "rosparam dump" when recording starts and saves to the same filename as the bag, but with .yaml
Markus Achtelik gravatar image Markus Achtelik  ( 2011-10-04 08:05:47 -0500 )edit
I suggest you feature enhancement ticket to keep this from getting lost.
tfoote gravatar image tfoote  ( 2011-10-26 11:27:43 -0500 )edit

I'm planning to implement features to record params over time and also synchronize with rosbag as an rqt plugin (will be stored on github https://github.com/130s/rqt_param)

130s gravatar image 130s  ( 2012-11-13 11:05:05 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2011-08-24 10:30:48 -0500

Seen: 2,699 times

Last updated: Sep 02 '11