#include <print_debug_info.h>
◆ PrintBox()
| apollo::planning::PrintBox::PrintBox |
( |
std::string |
id | ) |
|
|
inlineexplicit |
◆ AddAdcBox()
| void apollo::planning::PrintBox::AddAdcBox |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
heading, |
|
|
bool |
is_rear_axle_point = true |
|
) |
| |
在文件 print_debug_info.cc 第 87 行定义.
88 {
89 const auto& vehicle_param =
91 if (is_rear_axle_point) {
92
93 double rear_axle_to_center =
95 x += rear_axle_to_center *
cos(heading);
96 y += rear_axle_to_center *
sin(heading);
97 }
98 box_points.push_back(
99 {x, y, heading, vehicle_param.length(), vehicle_param.width()});
100}
static const VehicleConfig & GetConfig()
Get the current vehicle configuration.
optional VehicleParam vehicle_param
optional double front_edge_to_center
◆ PrintToLog()
| void apollo::planning::PrintBox::PrintToLog |
( |
| ) |
|
在文件 print_debug_info.cc 第 102 行定义.
102 {
103 std::stringstream ssm;
104 ssm << "print_" << id_ << ":";
105 for (size_t i = 0; i < box_points.size(); i++) {
106 ssm << "(";
107 for (size_t j = 0; j < box_points[i].size(); j++) {
108 ssm << std::fixed << box_points[i][j];
109 if (j != box_points[i].size() - 1) {
110 ssm << ", ";
111 }
112 }
113 ssm << ")";
114 if (i != box_points.size() - 1) {
115 ssm << ", ";
116 }
117 }
119}
该类的文档由以下文件生成: