Back to Apollo

perception-common

modules/perception/common/README.md

11.0.04.4 KB
Original Source

perception-common

Introduction

perception-common is a library that other modules in perception depend on. It mainly includes public algorithm libraries, maps, inference and interface definitions.

Directory Structure

common
├── BUILD
├── README.md
├── algorithm  // algorithm library
├── base       // common data structure
├── camera     // camera data structure
├── cyberfile.xml
├── hdmap      // hdmap wrapper
├── inference  // model inference and acceleration
├── interface
├── lib
├── lidar      // lidar data structure
├── onboard
├── perception_gflags.cc
├── perception_gflags.h
├── proto
├── radar      // radar data structure
├── util.cc
└── util.h

Global gflag configuration

Global configuration is defined in the gflag file, includingmodules/perception/common/perception_gflags.h

parameter namedefault valuemeaning
obs_sensor_intrinsic_path/apollo/modules/perception/data/paramsSensor internal parameter path
obs_sensor_meta_filesensor_meta.pb.txtSensor meta file name
enable_base_object_poolenable_base_object_poolEnable object pool
config_manager_path./Configuration manager path
work_root/apollo/modules/perceptionWork list
lidar_sensor_namevelodyne128lidar sensor name
use_trtfalseWhether to use tensorrt
trt_precision1Precision of tensorrt, 0: 32float, 1: kInt8, 2: kHalf
trt_use_statictrueWhether to load tensorrt graph optimization from disk path
use_calibrationtrueWhether to use a correction table
use_dynamicshapetrueWhether to use dynamic shapes
collect_shape_infotrueWhether to collect dynamic shape information
dynamic_shape_file/apollo/modules/perception/lidar_detection/data/center_point_paddle/pillar_20_0625/collect_shape_info_3lidar_20.pbtxtDynamic file path
object_template_fileobject_template.pb.txtObject template configuration file
hdmap_sample_step5High-precision map sampling rate

Modify configuration

The global configuration is modified in /apollo/modules/perception/data/flag/perception_common.flag. For example, if we want to modify the value of obs_enable_hdmap_input to false, we can add it to the file:

bash
--obs_enable_hdmap_input=false