Write your own Config
Pre-requisites
If you want to run your own data through nautilus you most likely will need to write a small config file with the parameters to use for you specific bag file.
Before you start you will need to have these things:
- A ROS Bag file, you can learn more about ROS Bag files here.
- Your bag should have Odometry and LiDAR Topics (If you are unsure, use the next section to see if they exist in your Bag file).
Finding topic names
First you will need to get the LiDAR and Odometry topic names from your bag. You can use the rosbag info
command for this. Here is the output for the LGRC Bag used in the tutorial to get nautilus running, you can find the bag here.
There is a lot of output here, but all we care about is the final section named "topics". We then need an odometry message of the type nav_msgs/Odometry
and a LiDAR message of type sensor_msgs/LaserScan
. As long as you have two topics with both of these types of messages (listed after the colon on the right) you can run your data with nautilus!
The topics we need are "/odometry/raw" for odometry, and "/velodyne_2dscan_high_beams" for LiDAR.
info
If you are using CobotOdometry messages, they are differential odometry and need to set the differential_odom=true
parameter to your config file. You can specify the path still using the lidar_path
config parameter like below.
Now we will create a new config file in the config folder:
Inside Your new Config:
Now, we don't want to have to redefine all the different configuration parameters needed by nautilus, so we will add this line to the top of our config file so that the defaults will be loaded, and anything we don't overwrite will have it's default value.
Then we need to specify where our bag is:
Then we need to specify those topics that we found earlier:
Finally, we should add the number of poses to process. The default is 30 poses, which is a very small number. I am going to guess for my bag file and say that there is 450 poses that I want to process. If you just want to process the entire bag file then set this parameter to a large number.
Now you have written the config file you can run it through nautilus as follows: