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.
mobilitypath_visualizer::anonymous_namespace{mobilitypath_visualizer.cpp} Namespace Reference

Functions

double compute_2d_distance (const geometry_msgs::msg::Point &pt1, const geometry_msgs::msg::Point &pt2)
 

Function Documentation

◆ compute_2d_distance()

double mobilitypath_visualizer::anonymous_namespace{mobilitypath_visualizer.cpp}::compute_2d_distance ( const geometry_msgs::msg::Point &  pt1,
const geometry_msgs::msg::Point &  pt2 
)

Definition at line 26 of file mobilitypath_visualizer.cpp.

27 {
28 double dx = pt2.x - pt1.x;
29 double dy = pt2.y - pt1.y;
30 double dz = pt2.z - pt1.z;
31
32 return sqrt(dx * dx + dy * dy + dz * dz);
33 }

Referenced by mobilitypath_visualizer::MobilityPathVisualizer::composeLabelMarker().

Here is the caller graph for this function: