Skip to content

Commit

Permalink
docs: update sensor calibration documentation (#448)
Browse files Browse the repository at this point in the history
* init manual calibration

Signed-off-by: ismetatabay <[email protected]>

* fix typo

Signed-off-by: ismetatabay <[email protected]>

* add pages

Signed-off-by: ismetatabay <[email protected]>

* init lidar-lidar calibration

Signed-off-by: ismetatabay <[email protected]>

* start with explaining mapping-based calibrator

Signed-off-by: ismetatabay <[email protected]>

* update generic_calibration with new video

Signed-off-by: ismetatabay <[email protected]>

* finalize mapping-based lidar-lidar calibration process

Signed-off-by: ismetatabay <[email protected]>

* init ground-lidar calibration document

Signed-off-by: ismetatabay <[email protected]>

* finalize ground-plane calibration

Signed-off-by: ismetatabay <[email protected]>

* init interactive calibration document

Signed-off-by: ismetatabay <[email protected]>

* finalize interactive lidar-camera calibration

Signed-off-by: ismetatabay <[email protected]>

* init intrinsic camera calibration

Signed-off-by: ismetatabay <[email protected]>

* finalize intrinsic camera calibration

Signed-off-by: ismetatabay <[email protected]>

* correct some sentences

Signed-off-by: ismetatabay <[email protected]>

* refactor calibration documentation structure

Signed-off-by: ismetatabay <[email protected]>

* refactor calibration page structure

Signed-off-by: ismetatabay <[email protected]>

* some improvements for calibration documentation

Signed-off-by: ismetatabay <[email protected]>

* update document according to the tester

Signed-off-by: ismetatabay <[email protected]>

* some readability improvements

Signed-off-by: ismetatabay <[email protected]>

* fix broken links

Signed-off-by: ismetatabay <[email protected]>

* solve conflicts

Signed-off-by: ismetatabay <[email protected]>

---------

Signed-off-by: ismetatabay <[email protected]>
  • Loading branch information
ismetatabay authored Nov 17, 2023
1 parent cd0a23a commit 7428185
Show file tree
Hide file tree
Showing 21 changed files with 1,625 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
nav:
- index.md
- Starting with TIER IV's CalibrationTools: calibration-tools
- Extrinsic manual calibration: extrinsic-manual-calibration
- Lidar-lidar calibration: lidar-lidar-calibration
- Ground plane-lidar calibration: ground-lidar-calibration
- Intrinsic camera calibration: intrinsic-camera-calibration
- Lidar-camera calibration: lidar-camera-calibration
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Starting with TIER IV's CalibrationTools

## Overview

Autoware expects to have multiple sensors attached to the vehicle as input to perception,
localization,
and planning stack.
These sensors must be calibrated correctly,
and their positions must be defined at `sensor_kit_description` and `individual_params` packages.
In this tutorial,
we will use TIER IV's [CalibrationTools](https://github.com/tier4/CalibrationTools) repository for the calibration.

## Setting of sensor_kit_base_link position with respect to the base_link

In previous section (creating the vehicle and sensor model),
we mentioned about `sensors_calibration.yaml`.
This file stores `sensor_kit_base_link` (child frame) position and orientation with respect to the
`base_link` (parent frame).
We need to update this relative position
(all values were initially set equal to zero when file is created)
with using CAD data of our vehicle.

<figure markdown>
![ackermann_link](images/tutorial_vehicle_sensor_kit_base_link.png){ align=center }
<figcaption>
Our tutorial_vehicle base_link to sensor_kit_base_link transformation.
</figcaption>
</figure>

So, our `sensors_calibration.yaml` file for our tutorial_vehicle should be like this:

```yaml
base_link:
sensor_kit_base_link:
x: 1.600000 # meter
y: 0.0
z: 1.421595 # 1.151595m + 0.270m
roll: 0.0
pitch: 0.0
yaw: 0.0
```
You need to update this transformation value with respect to the `sensor_kit_base_link` frame.
You can also use CAD values for GNSS/INS and IMU position in `sensor_kit_calibration.yaml` file.
(Please don't forget
to update the sensor_kit_calibration.yaml file in both the sensor_kit_launch and individual_params packages)

## Installing TIER IV's CalibrationTools repositories on autoware

After completing previous steps (creating your own autoware,
creating a vehicle and sensor model etc.)
we are ready to calibrate sensors which prepared their pipeline in creating the sensor model section.

Firstly, we will clone CalibrationTools repositories in own autoware.

```bash
cd <YOUR-OWN-AUTOWARE-DIRECTORY> # for example: cd autoware.tutorial_vehicle
wget https://raw.githubusercontent.com/tier4/CalibrationTools/tier4/universe/calibration_tools.repos
vcs import src < calibration_tools.repos
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
```

Then build the all packages
after the all necessary changes are made on sensor model and vehicle model.

```bash
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
```

## Usage of CalibrationTools

The CalibrationTools repository has several packages
for calibrating different sensor pairs such as lidar-lidar,
camera-lidar, ground-lidar etc. In order to calibrate our sensors,
we will modify `extrinsic_calibration_package` for our sensor kit.

For tutorial_vehicle,
completed launch files when created following tutorial sections can be found [here](https://github.com/leo-drive/calibration_tools_tutorial_vehicle/tree/tutorial_vehicle/sensor/extrinsic_calibration_manager/launch/tutorial_vehicle_sensor_kit).

- [Manual Calibration](../extrinsic-manual-calibration)
- [Lidar-Lidar Calibration](../lidar-lidar-calibration)
- [Ground Plane-Lidar Calibration](../ground-lidar-calibration)
- [Intrinsic Camera Calibration](../intrinsic-camera-calibration)
- [Lidar-Camera Calibration](../lidar-camera-calibration)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7428185

Please sign in to comment.