CGR (Laser Scanner, Kinect - FSPF) Localization
This package provides the code for CGR localization to localize a robot in 2D using either laser rangefinder readings or depth images obtained from Kinect-style sensors.
To install all dependencies on Ubuntu, run "./InstallPackages", or copy & run the following command:
sudo apt-get install g++ libqt4-dev cmake libpopt-dev libusb-1.0-0-dev liblua5.1-dev libglew1.5-dev libeigen3-dev
On other platforms, you will have to manually install the following packages:
Run "make" in the cgr_localization folder OR run "rosmake cgr_localization" after adding the full path of the cgr_localization package to the ROS_PACKAGES_PATH environemt variable.
The following demo data sets are available:
- CoBot2 in GHC7 (LIDAR)
- CoBot2 in GHC7 (Kinect)
- CoBot2 in NSH4 (LIDAR)
To run the code with the demo data:
- Use
roslaunch cgr_localization cgr_demo_laser.launch
to run CGR localization using LIDAR observations and display that on the bundled GUI, OR roslaunch cgr_localization cgr_demo_kinect.launch
to run CGR localization using Kinect depth image observations.
- Play back the data file with
rosbag play <bagfile.bag> --clock
- Creating A Vector Map: To run cgr localization on your own robot, you need to generate a vector map of your environment. For an example vector map, see maps/GHC7/GHC7_vector.txt . Each entry in the vector map represents a line (wall) in the world, and is of the form: where x1, y1 is the start location and x2, y2 the end location of the line. The vector maps reside in the maps folder. For example, the map for "GHC7" resides in the file maps/GHC7/GHC7_vector.txt . Once the map is created, it needs to be added to maps/atlas.txt so that cgr_localization loads it on startup.
- Generate Map Visibility Lists: CGR localization uses analytic raycasts on vector maps for the observation functions. To speed up the analytic renders at runtime, visibility lists are pre-computed for the vector maps. To generate the visibility list for your map, run the following command:
./bin/pre_render -m"YourMapName" [ -n NumberOfThreads ]
For example:
./bin/pre_render -m"GHC7" -n8
- ROS topics: The required ROS topics are "odom" of type nav_msgs/Odometry , and "scan" of type sensor_msgs/LaserScan and/or "kinect_depth" of type sensor_msgs/Image (Raw 16-bit depth data gathered via libfreenect from the kinect
- "Corrective Gradient Reļ¬nement for Mobile Robot Localization", Joydeep Biswas, Brian Coltin, and Manuela Veloso, Proceedings of IEEE/RSJ International Conference on Intelligent Robots and Systems, September, 2011, pp. 73 - 78. PDF
- "Depth Camera Based Indoor Mobile Robot Localization and Navigation", Joydeep Biswas and Manuela Veloso, Proceedings of IEEE International Conference on Robotics and Automation, May, 2012. PDF