Repository navigation
Home
Aamir edited this page Mar 17, 2015
·
3 revisions
Welcome to the read_dsr_dataset wiki!
- Step1: Make sure you have downloaded all the relevant files and archives of the DSR dataset from http://datasets.isr.ist.utl.pt/lrmdataset/PersonTrackingDataset/ Make sure you have the ROSbags folder which contains two subfolders: Dataset_1 and Dataset_2, each of which has a bunch of rosbags which are basically the datasets. Other folders contain ground truth (GT) data files and GT rosbags. For read_dsr_dataset package you do not need the GT files. But obviously, you will need it for the package evaluate_dsr_dataset in case you want to compare your algorithms with the ground truth.
- Step 2: (From this step onwards, you choose either to use Dataset_1 or Dataset_2. I will use Dataset_1 as an example).
* Open a terminal and cd to the directory ROSbags/Dataset_1/ * Execute the following command 'rosbag play -l mbot_dataset1_0.bag mbot_dataset1_1.bag mbot_dataset1_2.bag mbot_dataset1_3.bag mbot_dataset1_4.bag mbot_dataset1_5.bag mbot_dataset1_6.bag' * The -l option above is to play the dataset in a loop. * All bags have to be in the above executed command because each of them corresponds to a consecutive chunk of time. rosbags automatically plays them in the order of their timestamps so the user need not worry. But make sure all parts are included in the command.
- Step 3: Of course, download the read_dsr_package in your catkin workspace and build it. Make sure you have opencv and boost libraries installed. Compilation should be smooth there onwards.
- Step 4: Execute the following command in a separate terminal screen: 'rosrun read_dsr_dataset read_dsr_dataset' and make sure the ros namespaces of this and the previous screens are the same, ideally '/'
- Step 5: You should be able to see i) odometry reception acknowledgement in the terminal screen; and ii) rgb and depth images in separate gtk windows.
- Step 6: In order to implement your own perception related algorithm, please use the three callback functions selfOdometryCallback, rgbImageCallback and depthImageCallBack in src/read_dsr_dataset.cpp. You can also extend and add a new callback to read the laser scans from the rosbags.
- Step 7: To see how your algorithms have performed, you can use the package evaluate_dsr_dataset from here: https://github.com/aamirahmad/evaluate_dsr_dataset