10#ifndef _SYSTEM_STATUS_HPP
11#define _SYSTEM_STATUS_HPP
14#include <driver_msgs/msg/system_status.hpp>
16#include <proto_files/conversion_driver_msgs__SystemStatus.hpp>
17#include <protolink/client.hpp>
18#include <rclcpp/rclcpp.hpp>
29 explicit SystemStatus(
const rclcpp::NodeOptions & options);
36 protolink::IoContext io_context_;
37 std::shared_ptr<boost::asio::ip::udp::socket> sock_;
38 std::shared_ptr<timer::Timeout> timeout_;
41 using ProtoSystemStatus = protolink__driver_msgs__SystemStatus::driver_msgs__SystemStatus;
42 std::shared_ptr<protolink::udp_protocol::Subscriber<ProtoSystemStatus>> protolink_subscriber_;
44 rclcpp::Publisher<driver_msgs::msg::SystemStatus>::SharedPtr pub_;
45 rclcpp::TimerBase::SharedPtr timer_;
47 void protolink_callback(
const ProtoSystemStatus & _msg);
System Status class.
Definition: system_status.hpp:27