Common
common packages for kyubic
 
Loading...
Searching...
No Matches
imu_reset.hpp
Go to the documentation of this file.
1
10#ifndef _IMU_RESET_HPP
11#define _IMU_RESET_HPP
12
13#include <driver_msgs/msg/bool_stamped.hpp>
14#include <memory>
15#include <proto_files/conversion_driver_msgs__BoolStamped.hpp>
16#include <protolink/client.hpp>
17#include <rclcpp/rclcpp.hpp>
18
24{
25
29class ImuReset : public rclcpp::Node
30{
31public:
36 explicit ImuReset(const rclcpp::NodeOptions & options);
37
38private:
39 std::string mcu_ip_addr; // of microcontroller, etc.
40 uint16_t mcu_port; // same as above
41 uint16_t this_port; // of the computer executing this code
42
43 protolink::IoContext io_context_;
44 std::shared_ptr<protolink::udp_protocol::soket> sock_;
45
46 using protoBoolStamped = protolink__driver_msgs__BoolStamped::driver_msgs__BoolStamped;
47 std::shared_ptr<protolink::udp_protocol::Publisher<protoBoolStamped>> protolink_publisher_;
48
49 rclcpp::Subscription<driver_msgs::msg::BoolStamped>::SharedPtr sub_;
50};
51
52} // namespace driver::sensors_esp32_driver
53
54#endif // !_IMU_RESET_HPP
ImuReset class.
Definition: imu_reset.hpp:30
driver for sensors_esp32