Before starting make sure you have
- PCD Map (
- Vector Map (
- TF File (
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_linkframe (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
/points_raw, go to Sensing tab and Launch the LiDAR node corresponding to your sensor, to decode the packets into
The corresponding calibration YML files are located in
Select the correct one depending on the sensor.
- In the Sensing Tab, Inside the *Points Downsampler** section, click on
- Go to Computing tab and click on the [app] button next to
ndt_matchinginside the Localization section. Make sure the Initial Pos is selected.
- Click on the
- Launch RVIZ using the button below Runtime Manager, and load the
default.rvizconfiguration file located in
- 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.