19#include <rclcpp/rclcpp.hpp>
20#include <carma_planning_msgs/msg/trajectory_plan.hpp>
21#include <geometry_msgs/msg/pose_stamped.hpp>
22#include <geometry_msgs/msg/twist_stamped.hpp>
23#include <autoware_msgs/msg/control_command_stamped.hpp>
105 carma_ros2_utils::CallbackReturn
handle_on_configure(const rclcpp_lifecycle::State &) override final;
106 carma_ros2_utils::CallbackReturn
handle_on_activate(const rclcpp_lifecycle::State &) override final;
107 carma_ros2_utils::CallbackReturn
handle_on_deactivate(const rclcpp_lifecycle::State &) override final;
108 carma_ros2_utils::CallbackReturn
handle_on_cleanup(const rclcpp_lifecycle::State &) override final;
109 carma_ros2_utils::CallbackReturn
handle_on_shutdown(const rclcpp_lifecycle::State &) override final;
110 carma_ros2_utils::CallbackReturn
handle_on_error(const rclcpp_lifecycle::State &, const std::
string &exception_string) override final;
ControlPlugin base class which can be extended by user provided plugins which wish to implement the C...
rclcpp::TimerBase::SharedPtr command_timer_
carma_ros2_utils::CallbackReturn handle_on_error(const rclcpp_lifecycle::State &, const std::string &exception_string) override final
std::string get_capability() override
Get the capability string representing this plugins capabilities Method must be overriden by extendin...
carma_ros2_utils::CallbackReturn handle_on_deactivate(const rclcpp_lifecycle::State &) override final
void current_pose_callback(geometry_msgs::msg::PoseStamped::UniquePtr msg)
boost::optional< geometry_msgs::msg::TwistStamped > current_twist_
The most recent velocity message received by this node.
carma_ros2_utils::CallbackReturn handle_on_cleanup(const rclcpp_lifecycle::State &) override final
virtual void current_trajectory_callback(carma_planning_msgs::msg::TrajectoryPlan::UniquePtr msg)
Extending class provided method which can optionally handle trajectory plan callbacks.
uint8_t get_type() override final
Returns the type of this plugin according to the carma_planning_msgs::Plugin type enum....
carma_ros2_utils::SubPtr< geometry_msgs::msg::PoseStamped > current_pose_sub_
boost::optional< carma_planning_msgs::msg::TrajectoryPlan > current_trajectory_
The most recent trajectory received by this plugin.
carma_ros2_utils::SubPtr< carma_planning_msgs::msg::TrajectoryPlan > trajectory_plan_sub_
carma_ros2_utils::PubPtr< autoware_msgs::msg::ControlCommandStamped > vehicle_cmd_pub_
carma_ros2_utils::CallbackReturn handle_on_activate(const rclcpp_lifecycle::State &) override final
virtual autoware_msgs::msg::ControlCommandStamped generate_command()=0
Extending class provided method which should generate a command message which will be published to th...
carma_ros2_utils::CallbackReturn handle_on_configure(const rclcpp_lifecycle::State &) override final
ControlPlugin(const rclcpp::NodeOptions &)
ControlPlugin constructor.
void current_twist_callback(geometry_msgs::msg::TwistStamped::UniquePtr msg)
carma_ros2_utils::CallbackReturn handle_on_shutdown(const rclcpp_lifecycle::State &) override final
virtual ~ControlPlugin()=default
Virtual destructor for safe deletion.
carma_ros2_utils::SubPtr< geometry_msgs::msg::TwistStamped > current_velocity_sub_
boost::optional< geometry_msgs::msg::PoseStamped > current_pose_
The most recent pose message received by this node.
PluginBaseNode provides default functionality for all carma guidance plugins. This includes basic sta...