Self-Driving Cars Project for NYCU Courses, Fall 2023
Radar localization with NDT * 2 + ICP
├── CMakeLists.txt
├── config
│ ├── localiztion.rviz
│ ├── map_modified.rviz
│ └── visualization.rviz
├── include
│ └── localization
├── launch
│ ├── localiztion.launch
│ ├── map_modified.launch
│ └── visualization.launch
└── src
├── localization.cpp (scan matching)
├── map_modified.cpp
├── map_pcd.cpp
├── radar.cpp (radar image to point cloud processing)
└── visualization.cpp
use container and ros to finish the radar localization
$ xhost +local:
$ sudo docker run \
-it \
--env="DISPLAY" \
--env="QT_X11_NO_MITSHM=1" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
-p 2233:22 \
--rm \
--name ros \
--user root \
-e GRANT_SUDO=yes \
-v ~/midterm_ws:/root/catkin_ws \
softmac/sdc-course-docker:latest \
bash
Enter container
$ sudo docker exec -it ros bash
- Set up parameters and arguments in localization.launch
- Configure the map and save paths
- Switch the bag to the correct rosbag
- Set the -r (rate) argument to 0.01 or a smaller value.
- Execute the following command in terminal
$ cd ~/catkin_ws
$ catkin_make
$ source devel/setup.bash
$ roslaunch localization localiztion.launch
Hit space to start playing bag
- Set up parameters and arguments in visualization.launch
- Configure the map and save paths
- Switch the bag to the correct rosbag
- Execute the following command in terminal
$ cd ~/catkin_ws
$ catkin_make
$ source devel/setup.bash
$ roslaunch localization visualization.launch
Hit space to start playing bag
- Set up parameters and arguments in map_modified.launch
- Configure the map source and save paths
- Execute the following command in terminal
$ cd ~/catkin_ws
$ catkin_make
$ source devel/setup.bash
$ roslaunch localization map_modified.launch
- Track1 https://youtu.be/FWsR1p_jHv4
- Track2 https://youtu.be/uieoKRxQlR4
- Bonus Track https://youtu.be/ChkOh7PrzJE
This project is released under the MIT License.