Particle filter for mobile robot localization using a laser rangefinder.
Install ROS
And install additional dependencies
sudo apt-get install cmake build-essential clang libgoogle-glog-dev libgflags-dev libgtest-dev
git clone --recurse-submodules git@github.com:tszandy/CS603_Particle_Filter.git
IMPORTANT: The --recurse-submodules is required to clone the shared
library submodule.
- Clone this repo, and enter the directory. All subsequent commands must be run from within the directory.
- Add the project to the ROS packages path:
Pro-tip: add this line to your
export ROS_PACKAGE_PATH=/PATH/TO/YOUR/REPO:$ROS_PACKAGE_PATH
.bashrcfile. - Run
make.
DO NOT RUNcmakedirectly.
DO NOT RUNcatkin_buildor anything catkin-related.
- Before starting programs that use ros, you will need to start a roscore instance in a terminal that you keep open:
roscore - To run the particle filter with a bag file named
myfile.bag:./bin/particle-filter --input myfile.bag - To visualize the particle filter in RViz, run the following while also running your filter:
rosrun rviz rviz -d particle-filter.rviz
An example bag file for you to test with can be downloaded here. Please make sure you do not include the bag file with your submission.