 |
Galaxis Codebase
1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
|
Go to the documentation of this file.
6 #include <sensor_msgs/msg/range.hpp>
11 #include <sensor_msgs/msg/range.hpp>
12 #include <std_msgs/msg/float32.hpp>
26 void init(std::shared_ptr<ECUHandler> _handler);
39 rclcpp::Publisher<ButtonStateMessageType>::SharedPtr
45 rclcpp::Publisher<MeasurementsType>::SharedPtr
59 rclcpp::Subscription<ControlMotionType>::SharedPtr
65 rclcpp::Subscription<SettingsValuesType>::SharedPtr
68 rclcpp::Subscription<ControlLightsType>::SharedPtr
void lights_callback(const ControlLightsType::SharedPtr p_msgSPtr)
void settingsvalues_callback(const SettingsValuesType::SharedPtr p_msgSPtr)
Callback function on new message. Sends the Data to the ECUHandler to send to the ECU.
void init(std::shared_ptr< ECUHandler > _handler)
Initialises the ECUNode and saves the pointer to the ECU Handler.
void publishMeasurements(const EcuPacket *const packet, const std::array< std::chrono::duration< double, std::milli >, 10 > &diff_ms)
Publishes the new Measurements from the ECU on the apropriate Publishers.
rclcpp::Publisher< ButtonStateMessageType >::SharedPtr m_buttonStatePubSPtr
Publisher object for buttonStates.
rclcpp::Subscription< ControlMotionType >::SharedPtr m_controlValuesSubSPtr
Subscriber object for control values from controller node.
rclcpp::Publisher< std_msgs::msg::Float32 >::SharedPtr m_velocityPubSPtr
uint8_t m_lastButtonState
std::shared_ptr< ECUHandler > m_ecuHandlerSPtr
Handler for ECU communication.
rclcpp::Publisher< sensor_msgs::msg::Range >::SharedPtr m_TOFRightPubSPtr
ControlLightsType::SharedPtr m_lastLightsSPtr
void motion_callback(const ControlMotionType::SharedPtr p_msgSPtr)
Callback function on new message. Sends the Data to the ECUHandler to send to the ECU.
rclcpp::Publisher< sensor_msgs::msg::Range >::SharedPtr m_TOFRearPubSPtr
rclcpp::Publisher< MeasurementsType >::SharedPtr m_measurementPubSPtr
Publisher object for measurements.
rclcpp::Subscription< SettingsValuesType >::SharedPtr m_settingsValuesSubSPtr
Subscriber object for control values from controller node.
rclcpp::Subscription< ControlLightsType >::SharedPtr m_lightsSubSPtr