Requisites
Before starting make sure you have
- PCD Map (
.pcd
) - Vector Map (
.csv
) - TF File (
.launch
)
How to start localization
- Launch Autoware’s Runtime Manager
- Go to Setup Tab
- Click on TF and Vehicle Model buttons
This will create the transformation between the localizer (Velodyne) to the
base_link
frame (car’s tires) - Go to Map tab
- Click the ref button on the PointCloud section
- Select ALL the PCD Files that form the map, then click Open
- Click the Point Cloud button to the left. A bar below will show the progress of the load. Wait until it’s complete.
Do the same for Vector Map, but this time select all the csv files Finally load the TF for the map
- Go to Simulation Tab
- Click the Ref Button and load a ROSBAG.
- Click Play and once the ROSBAG started to play, immediatly press Pause
This step is required to set the Time to simulation instead of real.
- IF your rosbag contains
/velodyne_packets
instead of/points_raw
, go to Sensing tab and Launch the LiDAR node corresponding to your sensor, to decode the packets intopoints_raw
The corresponding calibration YML files are located in
${AUTOWARE_PATH}/ros/src/sensing/drivers/lidar/packages/velodyne/velodyne_pointcloud/params/
Select the correct one depending on the sensor. - In the Sensing Tab, Inside the *Points Downsampler** section, click on
voxel_grid_filter
- Go to Computing tab and click on the [app] button next to
ndt_matching
inside the Localization section. Make sure the Initial Pos is selected. - Click on the
ndt_matching
checkbox. - Launch RVIZ using the button below Runtime Manager, and load the
default.rviz
configuration file located in${AUTOWARE_PATH}/ros/src/.config/rviz
. - In RVIZ click on the 2D Pose Estimate button, located in the top bar
- Click on the initial position to start localization AND drag to give an initial pose.
- If the initial position and pose are correct, the car model should now be seen in the correct position. If the model starts spinning, try to give a new initial position and pose.