44 CallbackReturn on_init(
45 const hardware_interface::HardwareComponentInterfaceParams & params)
override;
51 CallbackReturn on_activate(
const rclcpp_lifecycle::State & previous_state)
override;
53 CallbackReturn on_deactivate(
const rclcpp_lifecycle::State & previous_state)
override;
55 hardware_interface::return_type
read(
56 const rclcpp::Time & time,
const rclcpp::Duration & period)
override;
58 hardware_interface::return_type
write(
59 const rclcpp::Time & time,
const rclcpp::Duration & period)
override;
62 std::unique_ptr<zenoh::Session> session_;
68 std::vector<uint8_t> command_buffer_;
71 std::unique_ptr<zenoh::Subscriber<void>> state_sub_;
72 std::unique_ptr<zenoh::Publisher> command_pub_;
74 std::vector<double> hw_commands_;
75 std::vector<double> hw_states_;
76 std::string zenoh_endpoint_;
77 std::string zenoh_mode_;
78 std::string state_topic_;
79 std::string command_topic_;
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:153
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:167