logging_tutlesim
This is an old revision of the document!
Table of Contents
Logging turtlesim data
This is a simple example to show logging of pose and velocity information from running the turtlesim
node.
Logging the data
Start the turtlesim and log all the topics using the following sets of commands
rosrun turtlesim turtlesim rosrun turtlesim turtle_tel # for keyboard teleop to get changing data rosrun mongodb mongodb_log -a # for all topics. check help for more options # use Ctrl + C to stop
Accessing the data
The data that has been logged can be accessed via may ways, directly using terminal mongo client or via the language APIs. These are each shown below;
Via the mongo terminal client
This is installed when you get the mongodb package installed on the system.
mongo # alternatively, use the ros version with rosrun mongodb mongo # you should see an interface like the following MongoDB shell version: 2.0.4 connecting to: test # change to the ros database using > use roslog switched to roslog # see a list of databases using > show dbs local (empty) roslog 0.203125GB # see the list of items stored using the following > db.getCollectionNames() [ "system.indexes", "turtle1_color_sensor", "turtle1_command_velocity", "turtle1_pose" ] # further commands are given in standard mongo cheatsheets >
logging_tutlesim.1372166162.txt.gz · Last modified: 2016/05/19 09:18 (external edit)