CGR 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:
mapName = "GHC7";
mapName = "GHC7";
mapName = "NSH4";
To run the code with the demo data:
roslaunch cgr_localization cgr_demo_laser.launchto run CGR localization using LIDAR observations and display that on the bundled GUI, OR
roslaunch cgr_localization cgr_demo_kinect.launchto run CGR localization using Kinect depth image observations.
rosbag play <bagfile.bag> --clock
x1, y1, x2, y2where 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.
./bin/pre_render -m"YourMapName" [ -n NumberOfThreads ]For example:
./bin/pre_render -m"GHC7" -n8