Apollo 11.0
自动驾驶开放平台
apollo::planning::PrintPoints类 参考

#include <print_debug_info.h>

apollo::planning::PrintPoints 的协作图:

Public 成员函数

 PrintPoints ()
 
 PrintPoints (std::string id)
 
void set_id (std::string id)
 set curve id
 
void AddPoint (double x, double y)
 add points to curve
 
void PrintToLog ()
 print curve to log
 

详细描述

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

构造及析构函数说明

◆ PrintPoints() [1/2]

apollo::planning::PrintPoints::PrintPoints ( )
inline

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

31{}

◆ PrintPoints() [2/2]

apollo::planning::PrintPoints::PrintPoints ( std::string  id)
inlineexplicit

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

32: id_(id) {}

成员函数说明

◆ AddPoint()

void apollo::planning::PrintPoints::AddPoint ( double  x,
double  y 
)

add points to curve

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

33{ points.emplace_back(x, y); }

◆ PrintToLog()

void apollo::planning::PrintPoints::PrintToLog ( )

print curve to log

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

35 {
36 if (!FLAGS_enable_print_curve) {
37 return;
38 }
39 std::stringstream ssm;
40 ssm << "print_" << id_ << ":";
41 for (size_t i = 0; i < points.size(); i++) {
42 ssm << std::fixed << "(" << points[i].first << ", " << points[i].second
43 << ");";
44 }
45 AINFO << ssm.str();
46}
#define AINFO
Definition log.h:42

◆ set_id()

void apollo::planning::PrintPoints::set_id ( std::string  id)

set curve id

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

32{ id_ = id; }

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