Carma-platform v4.2.0
CARMA Platform is built on robot operating system (ROS) and utilizes open source software (OSS) that enables Cooperative Driving Automation (CDA) features to allow Automated Driving Systems to interact and cooperate with infrastructure and other vehicles through communication.
|
Calculate 2D Euclidean distance between track and detection. More...
Public Member Functions | |
template<typename Track , typename Detection > | |
auto | operator() (const Track &track, const Detection &detection) const -> std::optional< float > |
template<typename... TrackAlternatives, typename... DetectionAlternatives> | |
auto | operator() (const std::variant< TrackAlternatives... > &track, const std::variant< DetectionAlternatives... > &detection) const -> std::optional< float > |
Static Private Member Functions | |
static auto | two_dimensional_distance (const mot::CtrvState &lhs, const mot::CtrvState &rhs) -> float |
static auto | two_dimensional_distance (const mot::CtraState &lhs, const mot::CtraState &rhs) -> float |
Calculate 2D Euclidean distance between track and detection.
If both the track and detection semantic classes are known, this function object returns the 2D Euclidean distance between their states. Otherwise, it returns std::nullopt.
Definition at line 467 of file multiple_object_tracker_component.cpp.
|
inline |
Definition at line 492 of file multiple_object_tracker_component.cpp.
|
inline |
Definition at line 470 of file multiple_object_tracker_component.cpp.
|
inlinestaticprivate |
Definition at line 512 of file multiple_object_tracker_component.cpp.
References carma_cooperative_perception::remove_units().
|
inlinestaticprivate |
Definition at line 501 of file multiple_object_tracker_component.cpp.
References carma_cooperative_perception::remove_units().