10#ifndef _ENVIRONMENT_HPP
11#define _ENVIRONMENT_HPP
14#include <driver_msgs/msg/environment.hpp>
16#include <proto_files/conversion_driver_msgs__Environment.hpp>
17#include <protolink/client.hpp>
18#include <rclcpp/rclcpp.hpp>
34 explicit Environment(
const rclcpp::NodeOptions & options);
40 protolink::IoContext io_context_;
41 std::shared_ptr<protolink::udp_protocol::soket> sock_;
42 std::shared_ptr<timer::Timeout> timeout_;
45 using ProtoEnvironment = protolink__driver_msgs__Environment::driver_msgs__Environment;
46 std::shared_ptr<protolink::udp_protocol::Subscriber<ProtoEnvironment>> protolink_subscriber_;
48 rclcpp::Publisher<driver_msgs::msg::Environment>::SharedPtr pub_;
49 rclcpp::TimerBase::SharedPtr timer_;
51 void protolink_callback(
const ProtoEnvironment & _msg);
Environment class.
Definition: environment.hpp:32