|
Apollo 11.0
自动驾驶开放平台
|
#include "absl/strings/match.h"#include "gflags/gflags.h"#include "modules/common_msgs/map_msgs/map.pb.h"#include "cyber/common/file.h"#include "cyber/common/log.h"#include "modules/common/configs/config_gflags.h"#include "modules/common/util/points_downsampler.h"#include "modules/map/hdmap/adapter/opendrive_adapter.h"#include "modules/map/hdmap/hdmap_util.h"函数 | |
| DEFINE_string (output_dir, "/tmp/", "output map directory") | |
| A map tool to generate a downsampled map to be displayed by dreamview frontend. | |
| DEFINE_double (angle_threshold, 1./180 *M_PI, "Points are sampled when the accumulated direction change " "exceeds the threshold") | |
| DEFINE_int32 (downsample_distance, 5, "downsample rate for a normal path") | |
| DEFINE_int32 (steep_turn_downsample_distance, 1, "downsample rate for a steep turn path") | |
| int | main (int32_t argc, char **argv) |
| DEFINE_double | ( | angle_threshold | , |
| 1./180 * | M_PI, | ||
| "Points are sampled when the accumulated direction change " "exceeds the threshold" | |||
| ) |
| DEFINE_int32 | ( | downsample_distance | , |
| 5 | , | ||
| "downsample rate for a normal path" | |||
| ) |
| DEFINE_int32 | ( | steep_turn_downsample_distance | , |
| 1 | , | ||
| "downsample rate for a steep turn path" | |||
| ) |
| DEFINE_string | ( | output_dir | , |
| "/tmp/" | , | ||
| "output map directory" | |||
| ) |
A map tool to generate a downsampled map to be displayed by dreamview frontend.
| int main | ( | int32_t | argc, |
| char ** | argv | ||
| ) |
在文件 sim_map_generator.cc 第 107 行定义.