6#ifndef YARP_ROS2_AUDIORECORDER_NWS_ROS2_H
7#define YARP_ROS2_AUDIORECORDER_NWS_ROS2_H
9#include <rclcpp/rclcpp.hpp>
10#include <std_msgs/msg/int16_multi_array.hpp>
20#define DEFAULT_THREAD_PERIOD 0.02
34 bool close()
override;
51 rclcpp::Node::SharedPtr m_node;
52 rclcpp::Publisher<std_msgs::msg::Int16MultiArray>::SharedPtr m_ros2Publisher_status;
This class is the parameters parser for class AudioRecorder_nws_ros2.
bool attach(yarp::dev::PolyDriver *driver) override
Attach to another object.
bool detach() override
Detach the object (you must have first called attach).
void run() override
Loop function.
~AudioRecorder_nws_ros2()
bool open(yarp::os::Searchable ¶ms) override
Open the DeviceDriver.
void threadRelease() override
Release method.
bool threadInit() override
Initialization method.
bool close() override
Close the DeviceDriver.
Interface implemented by all device drivers.
Read a YARP-format sound block from a device.
A container for a device driver.
Helper interface for an object that can wrap/or "attach" to a single other device.
An abstraction for a periodic thread.
A base class for nested structures that can be searched.
An abstraction for a time stamp and/or sequence number.