Apollo 10.0
自动驾驶开放平台
apollo::planning::PrintCurves类 参考

#include <print_debug_info.h>

apollo::planning::PrintCurves 的协作图:

Public 成员函数

void AddPoint (std::string key, double x, double y)
 add point to curve key
 
void AddPoint (std::string key, const common::math::Vec2d &point)
 
void AddPoint (std::string key, const std::vector< common::math::Vec2d > &points)
 
void PrintToLog ()
 

详细描述

在文件 print_debug_info.h 第 51 行定义.

成员函数说明

◆ AddPoint() [1/3]

void apollo::planning::PrintCurves::AddPoint ( std::string  key,
const common::math::Vec2d &  point 
)

在文件 print_debug_info.cc 第 58 行定义.

59 {
60 if (!FLAGS_enable_print_curve) {
61 return;
62 }
63 if (curve_map_.count(key) == 0) {
64 curve_map_[key] = PrintPoints(key);
65 }
66 curve_map_[key].AddPoint(point.x(), point.y());
67}

◆ AddPoint() [2/3]

void apollo::planning::PrintCurves::AddPoint ( std::string  key,
const std::vector< common::math::Vec2d > &  points 
)

在文件 print_debug_info.cc 第 69 行定义.

70 {
71 if (!FLAGS_enable_print_curve) {
72 return;
73 }
74 for (const auto& point : points) {
75 AddPoint(key, point);
76 }
77}
void AddPoint(std::string key, double x, double y)
add point to curve key

◆ AddPoint() [3/3]

void apollo::planning::PrintCurves::AddPoint ( std::string  key,
double  x,
double  y 
)

add point to curve key

在文件 print_debug_info.cc 第 48 行定义.

48 {
49 if (!FLAGS_enable_print_curve) {
50 return;
51 }
52 if (curve_map_.count(key) == 0) {
53 curve_map_[key] = PrintPoints(key);
54 }
55 curve_map_[key].AddPoint(x, y);
56}

◆ PrintToLog()

void apollo::planning::PrintCurves::PrintToLog ( )

在文件 print_debug_info.cc 第 78 行定义.

78 {
79 if (!FLAGS_enable_print_curve) {
80 return;
81 }
82 for (auto iter = curve_map_.begin(); iter != curve_map_.end(); iter++) {
83 iter->second.PrintToLog();
84 }
85}

该类的文档由以下文件生成: