Common
common packages for kyubic
 
Loading...
Searching...
No Matches
zed_power.hpp
Go to the documentation of this file.
1
10#include <driver_msgs/msg/bool_stamped.hpp>
11#include <memory>
12#include <proto_files/conversion_driver_msgs__BoolStamped.hpp>
13#include <protolink/client.hpp>
14#include <rclcpp/rclcpp.hpp>
15
21{
22
26class ZedPower : public rclcpp::Node
27{
28public:
33 explicit ZedPower(const rclcpp::NodeOptions & options);
34
35private:
36 std::string mcu_ip_addr; // of microcontroller, etc.
37 uint16_t mcu_port; // same as above
38 uint16_t this_port; // of the computer executing this code
39
40 protolink::IoContext io_context_;
41 std::shared_ptr<protolink::udp_protocol::soket> sock_;
42 using protoBoolStamped = protolink__driver_msgs__BoolStamped::driver_msgs__BoolStamped;
43 std::shared_ptr<protolink::udp_protocol::Publisher<protoBoolStamped>> protolink_publisher_;
44
45 rclcpp::Subscription<driver_msgs::msg::BoolStamped>::SharedPtr sub_;
46};
47
48} // namespace driver::sensors_esp32_driver
ZedPower class.
Definition: zed_power.hpp:27
driver for sensors_esp32