After not be able to use the package correctly (I need to understand EKF), I found the test files for robot_localization :
You have 2 way of launching these files (both require you to clone and compile the package on github, these file are not present with apt-get):
Quick method :
Launch these file like a normal .launch file :
roslaunch < your robot_localization package path >/test/test_ekf_localization_node_bag1.test
Then subscribe to the /odometry/filtered topic and look at the last message, the position should be nearby equal to the position defined at the end of the file. Example for bag1 :
<param name="final_x" value="-40.0454"/>
<param name="final_y" value="-76.9988"/>
<param name="final_z" value="-2.6974"/>
<param name="tolerance" value="1.0452"/>
I recorded the 3 results for EKF in bag files :
With rostest
Robot_localization come with a script to test the 2 nodes (ekf and ukf) with the 3 bag files.
But this is for the default parameters, if you want to test your own parameters, change them at the begining of the *.test files and run the stats recorder. If the output fail, you are probably doing something wrong.
To run the stats recorder, go to robot_localization/test/ and run ./record_all_stats.sh <output_path>
(don't forget the output_path) , it will output :
< output_path >/ekf(1,2,3).txt
and :
< output_path >/ukf(1,2,3).txt.
It will run 30 times each node for each bag file (so it will take a very long time...) and try to ouput statistic based on your parameters (try only. If you look at the script, it seem to run the tests 30 times only)
Have fun !
Hello,
If you want more bag file, you can check on marvhub , there is a lot of dataset from mit stata center. They contains IMU + Odometry from a pr2, maybe you can use them.
Thanks a lot for your support. robot_localization has three bag files. What I want is the corresponding output for these bag files so that I can check whether I am using robot_localization correctly. BTW does the bag file includes the expected output(ground truth) and (IMU + Raw Odometry)?
The ground thruth is present according to the description of the set.
I'm not able to use the robot_localization package right now, but if i'm able to use it, I will send you a bag with my result so you can compare (But tomorrow at the earliest)
Thanks a lot. I am fine with waiting. "Good things come to those who wait"
Is this a duplicate of #q268047?