45 CallbackReturn on_init(
46 const hardware_interface::HardwareComponentInterfaceParams & params)
override;
52 CallbackReturn on_activate(
const rclcpp_lifecycle::State & previous_state)
override;
54 CallbackReturn on_deactivate(
const rclcpp_lifecycle::State & previous_state)
override;
56 hardware_interface::return_type
read(
57 const rclcpp::Time & time,
const rclcpp::Duration & period)
override;
59 hardware_interface::return_type
write(
60 const rclcpp::Time & time,
const rclcpp::Duration & period)
override;
63 std::unique_ptr<zenoh::Session> session_;
69 std::vector<uint8_t> command_buffer_;
72 std::unique_ptr<zenoh::Subscriber<void>> state_sub_;
73 std::unique_ptr<zenoh::Publisher> command_pub_;
75 std::vector<double> hw_commands_;
76 std::vector<double> hw_states_;
77 std::string zenoh_endpoint_;
78 std::string zenoh_mode_;
79 std::string state_topic_;
80 std::string command_topic_;
81 rclcpp::Clock steady_clock_{RCL_STEADY_TIME};
hardware_interface::return_type read(const rclcpp::Time &time, const rclcpp::Duration &period) override
Read the current state values from the actuator.
Definition zenbedded_hardware.cpp:182
hardware_interface::return_type write(const rclcpp::Time &time, const rclcpp::Duration &period) override
Write the current command values to the actuator.
Definition zenbedded_hardware.cpp:196