Apollo 10.0
自动驾驶开放平台
|
命名空间 | |
namespace | test |
类 | |
struct | DebugStringFormatter |
class | Factory |
Implements a Factory design pattern with Register and Create methods 更多... | |
class | JsonUtil |
class | LRUCache |
struct | Node |
struct | PairHash |
class | PointFactory |
class | Timer |
class | TimerWrapper |
class | TimeUtil |
函数 | |
template<typename T , typename std::enable_if< std::is_base_of< google::protobuf::Message, T >::value, int >::type = 0> | |
bool | DumpMessage (const std::shared_ptr< T > &msg, const std::string &dump_dir="/tmp") |
size_t | MessageFingerprint (const google::protobuf::Message &message) |
std::string | function_signature (const std::string &func_name, const std::string &indicator) |
template<typename Points > | |
double | GetPathAngle (const Points &points, const size_t start, const size_t end) |
Calculate the angle between the directions of two points on the path. | |
template<typename Points > | |
std::vector< size_t > | DownsampleByAngle (const Points &points, const double angle_threshold) |
Downsample the points on the path according to the angle. | |
template<typename Points > | |
std::vector< size_t > | DownsampleByDistance (const Points &points, int downsampleDistance, int steepTurnDownsampleDistance) |
Downsample the points on the path based on distance. | |
std::string | EncodeBase64 (std::string_view in) |
PointENU | operator+ (const PointENU enu, const math::Vec2d &xy) |
PathPoint | GetWeightedAverageOfTwoPathPoints (const PathPoint &p1, const PathPoint &p2, const double w1, const double w2) |
template<typename ProtoA , typename ProtoB > | |
bool | IsProtoEqual (const ProtoA &a, const ProtoB &b) |
template<typename T > | |
bool | WithinBound (T start, T end, T value) |
template<typename T > | |
void | uniform_slice (const T start, const T end, uint32_t num, std::vector< T > *sliced) |
uniformly slice a segment [start, end] to num + 1 pieces the result sliced will contain the n + 1 points that slices the provided segment. | |
template<typename U , typename V > | |
double | DistanceXY (const U &u, const V &v) |
calculate the distance beteween Point u and Point v, which are all have member function x() and y() in XY dimension. | |
template<typename U , typename V > | |
bool | SamePointXY (const U &u, const V &v) |
Check if two points u and v are the same point on XY dimension. | |
template<typename T > | |
std::enable_if<!std::numeric_limits< T >::is_integer, bool >::type | IsFloatEqual (T x, T y, int ulp=2) |
double apollo::common::util::DistanceXY | ( | const U & | u, |
const V & | v | ||
) |
calculate the distance beteween Point u and Point v, which are all have member function x() and y() in XY dimension.
u | one point that has member function x() and y(). |
b | one point that has member function x() and y(). |
std::vector< size_t > apollo::common::util::DownsampleByAngle | ( | const Points & | points, |
const double | angle_threshold | ||
) |
Downsample the points on the path according to the angle.
points | Points on the path. |
angle_threshold | Points are sampled when the accumulated direction change exceeds the threshold. |
在文件 points_downsampler.h 第 80 行定义.
std::vector< size_t > apollo::common::util::DownsampleByDistance | ( | const Points & | points, |
int | downsampleDistance, | ||
int | steepTurnDownsampleDistance | ||
) |
Downsample the points on the path based on distance.
points | Points on the path. |
downsampleDistance | downsample rate for a normal path |
steepTurnDownsampleDistance | downsample rate for a steep turn path |
在文件 points_downsampler.h 第 124 行定义.
bool apollo::common::util::DumpMessage | ( | const std::shared_ptr< T > & | msg, |
const std::string & | dump_dir = "/tmp" |
||
) |
在文件 message_util.h 第 57 行定义.
std::string apollo::common::util::EncodeBase64 | ( | std::string_view | in | ) |
在文件 string_util.cc 第 48 行定义.
std::string apollo::common::util::function_signature | ( | const std::string & | func_name, |
const std::string & | indicator | ||
) |
在文件 perf_util.cc 第 44 行定义.
double apollo::common::util::GetPathAngle | ( | const Points & | points, |
const size_t | start, | ||
const size_t | end | ||
) |
Calculate the angle between the directions of two points on the path.
points | Points on the path. |
start | The index of the first point on the path. |
end | The index of the second point on the path. |
在文件 points_downsampler.h 第 46 行定义.
PathPoint apollo::common::util::GetWeightedAverageOfTwoPathPoints | ( | const PathPoint & | p1, |
const PathPoint & | p2, | ||
const double | w1, | ||
const double | w2 | ||
) |
std::enable_if<!std::numeric_limits< T >::is_integer, bool >::type apollo::common::util::IsFloatEqual | ( | T | x, |
T | y, | ||
int | ulp = 2 |
||
) |
bool apollo::common::util::IsProtoEqual | ( | const ProtoA & | a, |
const ProtoB & | b | ||
) |
|
inline |
在文件 message_util.h 第 79 行定义.
PointENU apollo::common::util::operator+ | ( | const PointENU | enu, |
const math::Vec2d & | xy | ||
) |
bool apollo::common::util::SamePointXY | ( | const U & | u, |
const V & | v | ||
) |
Check if two points u and v are the same point on XY dimension.
u | one point that has member function x() and y(). |
v | one point that has member function x() and y(). |
void apollo::common::util::uniform_slice | ( | const T | start, |
const T | end, | ||
uint32_t | num, | ||
std::vector< T > * | sliced | ||
) |
uniformly slice a segment [start, end] to num + 1 pieces the result sliced will contain the n + 1 points that slices the provided segment.
start
and end
will be the first and last element in sliced
.