This repo is a work at the Embedded Computing Lab at Worcester Polytechnic Institute.
This repository helps run the Normal Distributions transform algorithm on GPU.
Changes to make before running the repo -
- Update the address of "autoware_build_flags" in line 18 of src/ndt_gpu/CMakeLists.txt
- Update cuda path in line 70 of src/ndt_gpu/CMakeLists.txt
- Update the NDT_GPU_LIB path in line 111 of src/ndt_mapping_localization/src/vehicle_localization/CMakeLists.txt
- Update cuda path in line 135 of src/ndt_mapping_localization/src/vehicle_localization/CMakeLists.txt
- Update adress in line 166 of src/ndt_mapping_localization/src/vehicle_localization/CMakeLists.txt
- Update cuda address in line 200 of src/ndt_mapping_localization/src/vehicle_localization/CMakeLists.txt
- Perform step 3,4,5 and 6 for src/ndt_mapping_localization/src/vehicle_mapping/CMakeLists.txt
- Update the autoware_build_flags path on line 199 of src/ndt_gpu/autoware_build_flags/cmake/catkin_generated/installspace/autoware_build_flagsConfig
To run the repo, follow the steps below -
- clone the repo
- cd into the repo folder and run ./lidar_odom.sh
- source devel/setup.bash
- roslaunch src/ndt_mapping_localization/src/vehicle_localization/launch/map_localization.launch
- Set the 2D pose estimate on the rviz map
- Run the rosbag which is available at https://drive.google.com/open?id=1mqBURRoouFT1HYkWjkjENcotXf75Tz0u
Note: Please be aware that this repo uses cuda 9.0. If you wish to switch to cuda 10, you will have to update the above mentioned(steps 1,3 and 7) CMakeLists.txt. This repo is untested on cuda 10.0.
You can also get started using the following docker image - https://hub.docker.com/repository/docker/ameysk/ndt_slam_gpu
Make sure to install VNC viewer in your host system to visualize the results. The following link can be used to set up the VNC viewer - https://gist.github.com/cyberang3l/422a77a47bdc15a0824d5cca47e64ba2
Do not hesitate to report any issues or ask any questions about the repo in the "issues" section of the repo or by mailing me at askulkarni2@wpi.edu