3#include "custom_interfaces/msg/control_command.hpp"
4#include "custom_interfaces/msg/operational_status.hpp"
22 rclcpp::Subscription<custom_interfaces::msg::OperationalStatus>::SharedPtr
go_sub_;
24 rclcpp::Publisher<custom_interfaces::msg::ControlCommand>::SharedPtr
control_pub_;
Class responsible for the ROS2 communication of the control module.
friend class VehicleAdapter
Adapter for interfacing with the real vehicle hardware.
rclcpp::Subscription< custom_interfaces::msg::OperationalStatus >::SharedPtr go_sub_
Subscription for the go signal from the operational status, which activates the controller when true.
rclcpp::Publisher< custom_interfaces::msg::ControlCommand >::SharedPtr control_pub_
void go_signal_callback(const custom_interfaces::msg::OperationalStatus msg)
void publish_command(common_lib::structures::ControlCommand cmd) override
Adapters override this function to publish control commands in their environment.