40 HARDWARE_INTERFACE_PUBLIC
41 explicit Sensor(std::unique_ptr<SensorInterface> impl);
47 HARDWARE_INTERFACE_PUBLIC
48 const rclcpp_lifecycle::State & initialize(
const HardwareInfo & sensor_info);
50 HARDWARE_INTERFACE_PUBLIC
51 const rclcpp_lifecycle::State & configure();
53 HARDWARE_INTERFACE_PUBLIC
54 const rclcpp_lifecycle::State & cleanup();
56 HARDWARE_INTERFACE_PUBLIC
57 const rclcpp_lifecycle::State & shutdown();
59 HARDWARE_INTERFACE_PUBLIC
60 const rclcpp_lifecycle::State & activate();
62 HARDWARE_INTERFACE_PUBLIC
63 const rclcpp_lifecycle::State & deactivate();
65 HARDWARE_INTERFACE_PUBLIC
66 const rclcpp_lifecycle::State & error();
68 HARDWARE_INTERFACE_PUBLIC
69 std::vector<StateInterface> export_state_interfaces();
71 HARDWARE_INTERFACE_PUBLIC
72 std::string get_name()
const;
74 HARDWARE_INTERFACE_PUBLIC
75 const rclcpp_lifecycle::State & get_state()
const;
77 HARDWARE_INTERFACE_PUBLIC
78 return_type read(
const rclcpp::Time & time,
const rclcpp::Duration & period);
80 HARDWARE_INTERFACE_PUBLIC
81 return_type write(
const rclcpp::Time &,
const rclcpp::Duration &) {
return return_type::OK; }
84 std::unique_ptr<SensorInterface> impl_;