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.
|
#include <trajectory_visualizer.hpp>
Public Member Functions | |
TrajectoryVisualizer (const rclcpp::NodeOptions &) | |
TrajectoryVisualizer constructor. More... | |
carma_ros2_utils::CallbackReturn | handle_on_configure (const rclcpp_lifecycle::State &) |
Private Member Functions | |
void | callbackPlanTrajectory (carma_planning_msgs::msg::TrajectoryPlan::UniquePtr msg) |
Private Attributes | |
carma_ros2_utils::SubPtr< carma_planning_msgs::msg::TrajectoryPlan > | traj_sub_ |
carma_ros2_utils::PubPtr< visualization_msgs::msg::MarkerArray > | traj_marker_pub_ |
Config | config_ |
double | max_speed_ |
size_t | prev_marker_list_size_ = 0 |
Definition at line 35 of file trajectory_visualizer.hpp.
|
explicit |
TrajectoryVisualizer constructor.
Definition at line 26 of file trajectory_visualizer.cpp.
References config_, and trajectory_visualizer::Config::max_speed.
|
private |
Definition at line 56 of file trajectory_visualizer.cpp.
References config_, process_bag::i, trajectory_visualizer::Config::max_speed, trajectory_visualizer::MPH_TO_MS, prev_marker_list_size_, traj_marker_pub_, and trajectory_visualizer::validateTime().
Referenced by handle_on_configure().
carma_ros2_utils::CallbackReturn trajectory_visualizer::TrajectoryVisualizer::handle_on_configure | ( | const rclcpp_lifecycle::State & | ) |
Definition at line 36 of file trajectory_visualizer.cpp.
References callbackPlanTrajectory(), traj_marker_pub_, and traj_sub_.
|
private |
Definition at line 46 of file trajectory_visualizer.hpp.
Referenced by TrajectoryVisualizer(), and callbackPlanTrajectory().
|
private |
Definition at line 52 of file trajectory_visualizer.hpp.
|
private |
Definition at line 54 of file trajectory_visualizer.hpp.
Referenced by callbackPlanTrajectory().
|
private |
Definition at line 43 of file trajectory_visualizer.hpp.
Referenced by callbackPlanTrajectory(), and handle_on_configure().
|
private |
Definition at line 40 of file trajectory_visualizer.hpp.
Referenced by handle_on_configure().