19#include <rclcpp/rclcpp.hpp>
20#include <carma_v2x_msgs/msg/mobility_operation.hpp>
21#include <carma_v2x_msgs/msg/mobility_request.hpp>
22#include <carma_v2x_msgs/msg/mobility_response.hpp>
23#include <geometry_msgs/msg/pose_stamped.hpp>
24#include <carma_v2x_msgs/msg/plan_type.hpp>
25#include <carma_planning_msgs/msg/trajectory_plan.hpp>
28#include <boost/optional.hpp>
99 std::shared_ptr<PlatooningControlPluginConfig>
ctrl_config_ = std::make_shared<PlatooningControlPluginConfig>();
This class includes logic for PID controller. PID controller is used in this plugin to maintain the i...
This is the worker class for platoon controller. It is responsible for generating and smoothing the s...
double dist_to_front_vehicle
void set_leader(const PlatoonLeaderInfo &leader)
Sets the platoon leader object using info from msg.
void set_current_speed(double speed)
set current speed
double get_last_speed_command() const
Returns latest speed command.
PlatoonLeaderInfo platoon_leader
std::shared_ptr< PlatooningControlPluginConfig > ctrl_config_
PlatooningControlWorker()
Default constructor for platooning control worker.
void generate_speed(const carma_planning_msgs::msg::TrajectoryPlanPoint &point)
Generates speed commands (in m/s) based on the trajectory point.
int NumberOfVehicleInFront