Back to Apollo

README Cn

collection/localization/README_cn.md

11.0.012.0 KB
Original Source

定位模块概述

定位模块是Apollo自动驾驶系统的重要组成部分,它负责在车辆行驶过程中对车辆的位置、速度和方向进行精确的测量和估计。它包含3种定位方式:RTK定位、NDT定位和MSF定位,其中MSF定位通过融合GPS、IMU、激光雷达、摄像头等多种传感器的数据,实现了车辆的高精度定位和轨迹估计。

Channel+消息格式

RTK定位

输入消息

消息名称通道名称功能
apollo::localization::Gps/apollo/sensor/gnss/odometryGPS消息
apollo::localization::CorrectedImu/apollo/sensor/gnss/corrected_imu组合导航输出IMU消息
apollo::drivers::gnss::InsStat/apollo/sensor/gnss/ins_stat组合导航状态

输出消息

消息名称通道名称功能
apollo::localization::LocalizationEstimate/apollo/localization/pose定位输出车辆的位置和姿态信息
apollo::localization::LocalizationStatus/apollo/localization/msf_status定位状态

NDT定位

输入消息

消息名称通道名称功能
apollo::localization::Gps/apollo/sensor/gnss/odometryGPS消息
apollo::drivers::PointCloud/apollo/sensor/lidar128/compensator/PointCloud2激光雷达点云
apollo::drivers::gnss::InsStat/apollo/sensor/gnss/ins_stat组合导航状态

输出消息

消息名称通道名称功能
apollo::localization::LocalizationEstimate/apollo/localization/pose定位输出车辆的位置和姿态信息
apollo::localization::LocalizationEstimate/apollo/localization/ndt_lidar激光雷达定位输出车辆的位置和姿态信息
apollo::localization::LocalizationStatus/apollo/localization/msf_status定位状态

MSF定位

输入消息

消息名称通道名称功能
apollo::drivers::gnss::Imu/apollo/sensor/gnss/imu原始Imu信息
apollo::drivers::PointCloud/apollo/sensor/lidar128/compensator/PointCloud2激光雷达点云信息
apollo::drivers::gnss::GnssBestPose/apollo/sensor/gnss/best_pose激光雷达最优姿态
apollo::drivers::gnss::Heading/apollo/sensor/gnss/heading组合导航航向

输出消息

消息名称通道名称功能
apollo::localization::LocalizationEstimate/apollo/localization/pose融合定位输出车辆的位置和姿态信息
apollo::localization::LocalizationEstimate/apollo/localization/msf_lidar激光雷达定位输出车辆的位置和姿态信息
apollo::localization::LocalizationEstimate/apollo/localization/msf_gnss组合导航输出
apollo::localization::LocalizationStatus/apollo/localization/msf_status融合定位状态

参数

Flag参数

参数名默认值功能
flagfile/apollo/modules/common/data/global_flagfile.txt
noenable_gps_imu_interprolate
local_map_namelocal_map
enable_gps_imu_compensatefalse
enable_lidar_localizationtrue
lidar_localization_mode2
lidar_yaw_align_mode2
lidar_filter_size17
point_cloud_step2
lidar_height_default1.80
lidar_imu_lidar_max_delay_time0.4
lidar_map_coverage_theshold0.8
lidar_debug_log_flagfalse
integ_ins_can_self_alignfalse
integ_sins_align_with_vel
integ_sins_state_checktrue
integ_sins_state_span_time30.0
integ_sins_state_pos_std1.0
vel_threshold_get_yaw5.0
enable_ins_aid_rtkfalse
eph_buffer_path""
gnss_debug_log_flagfalse
imu_rate1.0
if_utm_zone_id_from_foldertrue
local_utm_zone_id10
trans_gpstime_to_utctimetrue
gnss_mode0
lidar_topic/apollo/sensor/hesai40/compensator/PointCloud2
lidar_extrinsics_file/apollo/modules/localization/msf/params/velodyne_params/velodyne64_novatel_extrinsics_example.yaml
imu_coord_rfutrue
gnss_only_initfalse
if_imuant_from_filetrue
imu_to_ant_offset_x0.0
imu_to_ant_offset_y0.788
imu_to_ant_offset_z1.077
imu_to_ant_offset_ux0.05
imu_to_ant_offset_uy0.05
imu_to_ant_offset_uz0.08
if_vehicle_imu_from_filetrue
imu_vehicle_qx0.0
imu_vehicle_qy0.0
imu_vehicle_qz0.0
imu_vehicle_qw1.0
map_visual_dirdata/map_visual
if_use_avxtrue

RTK定位参数

参数名默认值功能
localization_topic/apollo/localization/pose
localization_status_topic/apollo/localization/msf_status
imu_topic/apollo/sensor/gnss/corrected_imu
gps_topic/apollo/sensor/gnss/odometry
gps_status_topic/apollo/sensor/gnss/ins_stat
broadcast_tf_frame_idworld
broadcast_tf_child_frame_idlocalization
imu_frame_idimu
imu_list_max_size20
gps_imu_time_diff_threshold0.02
map_offset_x0.0
map_offset_y0.0
map_offset_z0.0

包列表

包名描述
localization定位模块包