Skip to content

Commit 8bfda0f

Browse files
homographyycool
authored andcommittedApr 18, 2018
add imu vehicle calibration tool, also add ceres-solver to docker file. note that, the ceres solver version provided by apt is 1.8.
1 parent 542db8e commit 8bfda0f

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed
 

‎docker/build/dev.x86_64.dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ COPY installers /tmp/installers
77
RUN bash /tmp/installers/pre_install.sh
88
RUN bash /tmp/installers/install_bazel.sh
99
RUN bash /tmp/installers/install_bazel_packages.sh
10+
RUN bash /tmp/installers/install_ceres_solver.sh
1011
RUN bash /tmp/installers/install_gflags_glog.sh
1112
RUN bash /tmp/installers/install_glew.sh
1213
RUN bash /tmp/installers/install_glusterfs.sh
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
###############################################################################
4+
# Copyright 2018 The Apollo Authors. All Rights Reserved.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
###############################################################################
18+
19+
# Fail on first error.
20+
set -e
21+
22+
apt-get install -y libceres-dev

‎docs/quickstart/apollo_2_0_sensor_calibration_guide.md

+39
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ This guide introduces the Apollo Sensor Calibration Service and describes the th
55
- Camera-to-Camera Calibration
66
- Camera-to-LiDAR Calibration
77
- Radar-to-Camera Calibration
8+
- IMU-to-Vehicle Calibration
89

910
## About This Guide
1011

@@ -278,6 +279,44 @@ bash sensor_calibration.sh radar_camera
278279
You need to run the `radar_lidar_visualizer` tool to generate the image.
279280
See [Radar LiDAR Visualizer Projection Tool](####Radar LiDAR Visualizer Projection Tool) for more information.
280281

282+
## IMU-to-Vehicle Calibration
283+
1. Download the [calibration tool](https://apollocache.blob.core.windows.net/apollo-cache/imu_car_calibrator.zip).
284+
2. Start the vehicle to move before calibration. The vehicle should keep going straight at speed of 3m/s for 10s at least. There is no need to provide the intrinsic and initial extrinsic.
285+
3. Required topic: INS /apollo/sensors/gnss/odemetry 100Hz
286+
287+
4. Run the IMU-to-Vehicle Calibration using these commands:
288+
289+
```bash
290+
cd /apollo
291+
bash scripts/sensor_calibration.sh imu_vehicle
292+
```
293+
4. The result is saved as vehicle_imu_extrinsics.yaml in current path. Here is an example:
294+
```bash
295+
header
296+
seq: 0
297+
stamp:
298+
secs: 1522137131
299+
nsecs: 319999933
300+
frame_id: imu
301+
transform:
302+
translation:
303+
x: 0.0
304+
y: 0.0
305+
z: 0.0
306+
rotation:
307+
x: -0.008324888458427
308+
y: -0.000229845441991
309+
z: 0.027597957866274
310+
w: 0.999584411705604
311+
child_frame_id: vehicle
312+
313+
#pitch install error: -0.954337
314+
#roll install error: 0.000000
315+
#yaw install error: 3.163004
316+
```
317+
318+
319+
281320
### (Optional) Run All Calibration Tools
282321

283322
If necessary, users can run all calibration tools using these commands:

0 commit comments

Comments
 (0)