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.
trajectory_visualizer Namespace Reference

Classes

struct  Config
 max_speed values for trajectory_visualizer More...
 
class  TrajectoryVisualizer
 

Functions

bool validateTime (const rclcpp::Time &time)
 

Variables

const double MPH_TO_MS = 0.44704
 

Function Documentation

◆ validateTime()

bool trajectory_visualizer::validateTime ( const rclcpp::Time &  time)

Definition at line 47 of file trajectory_visualizer.cpp.

47 {
48
49 int64_t sec64 = static_cast<int64_t>(floor(time.seconds()));
50 if (sec64 < std::numeric_limits<int32_t>::min() || sec64 > std::numeric_limits<int32_t>::max())
51 return false;
52
53 return true;
54 }

Referenced by trajectory_visualizer::TrajectoryVisualizer::callbackPlanTrajectory().

Here is the caller graph for this function:

Variable Documentation

◆ MPH_TO_MS

const double trajectory_visualizer::MPH_TO_MS = 0.44704

TrajectoryVisualizer . publishes trajectory represented by various colors of rviz markers depending on the speed of trajectory. More than 75% of max_speed is red, more 50% is blue, more than 25% is teal, less then 25% is green.

Definition at line 33 of file trajectory_visualizer.hpp.

Referenced by trajectory_visualizer::TrajectoryVisualizer::callbackPlanTrajectory().