19#define CHECK_POINTER(xxx) {if (xxx==nullptr) {yCError(MAP2D_RPC, "Invalid interface"); return false;}}
25 std::lock_guard <std::mutex>
lg(m_mutex);
39 std::lock_guard<std::mutex>
lg(m_mutex);
42 if (m_irf ==
nullptr) {
57 std::lock_guard<std::mutex>
lg(m_mutex);
60 if (m_irf ==
nullptr) {
75 std::lock_guard<std::mutex>
lg(m_mutex);
78 if (m_irf ==
nullptr) {
93 std::lock_guard <std::mutex>
lg(m_mutex);
113 std::lock_guard<std::mutex>
lg(m_mutex);
117 if (m_irf ==
nullptr) {
136 std::lock_guard<std::mutex>
lg(m_mutex);
140 if (m_irf ==
nullptr) {
159 std::lock_guard<std::mutex>
lg(m_mutex);
163 if (m_irf ==
nullptr) {
181 std::lock_guard<std::mutex>
lg(m_mutex);
185 if (m_irf ==
nullptr) {
203 std::lock_guard<std::mutex>
lg(m_mutex);
207 if (m_irf ==
nullptr) {
return_getDeviceInfo getDeviceInfo_RPC() override
return_getDeviceStatus getDeviceStatus_RPC() override
bool setHorizontalResolution_RPC(const double step) override
return_getDistanceRange getDistanceRange_RPC() override
return_getScanLimits getScanLimits_RPC() override
return_getScanRate getScanRate_RPC() override
return_getHorizontalResolution getHorizontalResolution_RPC() override
bool setScanRate_RPC(const double rate) override
bool setDistanceRange_RPC(const double min, const double max) override
bool setScanLimits_RPC(const double min, const double max) override
virtual bool setScanLimits(double min, double max)=0
set the scan angular range.
virtual bool setScanRate(double rate)=0
set the scan rate (scans per seconds)
virtual bool getDistanceRange(double &min, double &max)=0
get the device detection range
virtual bool setHorizontalResolution(double step)=0
get the angular step between two measurements (if available)
virtual bool setDistanceRange(double min, double max)=0
set the device detection range.
virtual bool getDeviceInfo(std::string &device_info)=0
get the device hardware characteristics
virtual bool getScanRate(double &rate)=0
get the scan rate (scans per seconds)
virtual bool getScanLimits(double &min, double &max)=0
get the scan angular range.
virtual bool getHorizontalResolution(double &step)=0
get the angular step between two measurements.
virtual bool getDeviceStatus(Device_status &status)=0
get the device status
A mini-server for performing network communication in the background.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.