28#include <rclcpp/rclcpp.hpp>
30#include <carma_planning_msgs/msg/plugin.hpp>
31#include <carma_planning_msgs/srv/plan_trajectory.hpp>
32#include <carma_v2x_msgs/msg/mobility_response.hpp>
33#include <carma_v2x_msgs/msg/mobility_request.hpp>
34#include <carma_v2x_msgs/msg/mobility_operation.hpp>
35#include <carma_planning_msgs/msg/platooning_info.hpp>
36#include <std_msgs/msg/string.hpp>
68 carma_ros2_utils::SubPtr<geometry_msgs::msg::TwistStamped>
cmd_sub;
78 std::shared_ptr<PlatoonStrategicIHPPlugin>
worker_;
84 explicit Node(
const rclcpp::NodeOptions &);
89 rcl_interfaces::msg::SetParametersResult
97 std::shared_ptr<rmw_request_id_t>,
98 carma_planning_msgs::srv::PlanManeuvers::Request::SharedPtr req,
99 carma_planning_msgs::srv::PlanManeuvers::Response::SharedPtr resp)
override;
StrategicPlugin base class which can be extended by user provided plugins which wish to implement the...
ROS Node to for Platooning Strategic Plugin IHP2 variant. It includes all the service clients,...
rcl_interfaces::msg::SetParametersResult parameter_update_callback(const std::vector< rclcpp::Parameter > ¶meters)
Callback for dynamic parameter updates.
carma_ros2_utils::SubPtr< carma_v2x_msgs::msg::MobilityRequest > mob_request_sub
carma_ros2_utils::PubPtr< carma_v2x_msgs::msg::MobilityResponse > mob_response_pub
bool get_availability() override
Get the availability status of this plugin based on the current operating environment....
carma_ros2_utils::SubPtr< carma_v2x_msgs::msg::MobilityOperation > mob_operation_sub
std::string get_version_id() override
Returns the version id of this plugin.
rclcpp::TimerBase::SharedPtr loop_timer_
carma_ros2_utils::PubPtr< carma_v2x_msgs::msg::MobilityOperation > mob_operation_pub
Node(const rclcpp::NodeOptions &)
Node constructor.
carma_ros2_utils::CallbackReturn on_cleanup_plugin()
Method which is triggered when this plugin is moved from the INACTIVE to UNCONFIGURED states....
carma_ros2_utils::PubPtr< carma_v2x_msgs::msg::MobilityRequest > mob_request_pub
carma_ros2_utils::SubPtr< geometry_msgs::msg::TwistStamped > cmd_sub
carma_ros2_utils::SubPtr< geometry_msgs::msg::PoseStamped > current_pose_sub
carma_ros2_utils::SubPtr< std_msgs::msg::String > georeference_sub
carma_ros2_utils::CallbackReturn on_configure_plugin()
This method should be used to load parameters and will be called on the configure state transition.
carma_ros2_utils::SubPtr< geometry_msgs::msg::TwistStamped > current_twist_sub
carma_ros2_utils::PubPtr< carma_planning_msgs::msg::PlatooningInfo > platoon_info_pub
std::shared_ptr< PlatoonStrategicIHPPlugin > worker_
void plan_maneuvers_callback(std::shared_ptr< rmw_request_id_t >, carma_planning_msgs::srv::PlanManeuvers::Request::SharedPtr req, carma_planning_msgs::srv::PlanManeuvers::Response::SharedPtr resp) override
Extending class provided callback which should return a planned trajectory based on the provided traj...
PlatoonPluginConfig config_
carma_ros2_utils::SubPtr< carma_v2x_msgs::msg::MobilityResponse > mob_response_sub
Stuct containing the algorithm configuration values for the yield_pluginConfig.