19#define CHECK_POINTER(xxx) {if (xxx==nullptr) {yCError(MAP2D_RPC, "Invalid interface"); return false;}}
25 std::lock_guard <std::mutex>
lg(m_mutex);
30 return ReturnValue::return_code::return_value_error_not_ready;
44 std::lock_guard<std::mutex>
lg(m_mutex);
47 if (m_irf ==
nullptr) {
49 return ReturnValue::return_code::return_value_error_not_ready;
63 std::lock_guard<std::mutex>
lg(m_mutex);
66 if (m_irf ==
nullptr) {
68 return ReturnValue::return_code::return_value_error_not_ready;
83 std::lock_guard<std::mutex>
lg(m_mutex);
86 if (m_irf ==
nullptr) {
88 return ReturnValue::return_code::return_value_error_not_ready;
103 std::lock_guard <std::mutex>
lg(m_mutex);
106 if (m_irf ==
nullptr)
109 ret.retval = ReturnValue::return_code::return_value_error_not_ready;
130 std::lock_guard<std::mutex>
lg(m_mutex);
133 if (m_irf ==
nullptr)
136 ret.retval = ReturnValue::return_code::return_value_error_not_ready;
158 std::lock_guard<std::mutex>
lg(m_mutex);
161 if (m_irf ==
nullptr)
164 ret.retval = ReturnValue::return_code::return_value_error_not_ready;
186 std::lock_guard<std::mutex>
lg(m_mutex);
189 if (m_irf ==
nullptr)
192 ret.retval = ReturnValue::return_code::return_value_error_not_ready;
213 std::lock_guard<std::mutex>
lg(m_mutex);
216 if (m_irf ==
nullptr)
219 ret.retval = ReturnValue::return_code::return_value_error_not_ready;
240 std::lock_guard<std::mutex>
lg(m_mutex);
243 if (m_irf ==
nullptr)
246 ret.retval = ReturnValue::return_code::return_value_error_not_ready;
return_getDeviceInfo getDeviceInfo_RPC() override
return_getDeviceStatus getDeviceStatus_RPC() override
yarp::dev::ReturnValue setScanRate_RPC(const double rate) override
yarp::dev::ReturnValue setHorizontalResolution_RPC(const double step) override
yarp::dev::ReturnValue setDistanceRange_RPC(const double min, const double max) override
yarp::dev::ReturnValue setScanLimits_RPC(const double min, const double max) override
return_getDistanceRange getDistanceRange_RPC() override
return_getScanLimits getScanLimits_RPC() override
return_getScanRate getScanRate_RPC() override
return_getHorizontalResolution getHorizontalResolution_RPC() override
virtual ReturnValue getDistanceRange(double &min, double &max)=0
get the device detection range
virtual ReturnValue setDistanceRange(double min, double max)=0
set the device detection range.
virtual ReturnValue getDeviceInfo(std::string &device_info)=0
get the device hardware characteristics
virtual ReturnValue getScanRate(double &rate)=0
get the scan rate (scans per seconds)
virtual ReturnValue setScanLimits(double min, double max)=0
set the scan angular range.
virtual ReturnValue getScanLimits(double &min, double &max)=0
get the scan angular range.
virtual ReturnValue getHorizontalResolution(double &step)=0
get the angular step between two measurements.
virtual ReturnValue getDeviceStatus(Device_status &status)=0
get the device status
virtual ReturnValue setHorizontalResolution(double step)=0
get the angular step between two measurements (if available)
virtual ReturnValue setScanRate(double rate)=0
set the scan rate (scans per seconds)
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.