YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Rangefinder2DServerImpl.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024-2024 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6#ifndef YARP_DEV_RANGEFINDER2DSERVERIMPL_H
7#define YARP_DEV_RANGEFINDER2DSERVERIMPL_H
8
10
12{
13 private:
14 yarp::dev::IRangefinder2D* m_irf = nullptr;
15 std::mutex m_mutex;
16
17 public:
19 {
20 m_irf = _irf;
21 }
22
29 yarp::dev::ReturnValue setDistanceRange_RPC(const double min, const double max) override;
30 yarp::dev::ReturnValue setScanLimits_RPC(const double min, const double max) override;
31 yarp::dev::ReturnValue setHorizontalResolution_RPC(const double step) override;
32 yarp::dev::ReturnValue setScanRate_RPC(const double rate) override;
33
34 std::mutex* getMutex() {return &m_mutex;}
35};
36
37#endif // YARP_DEV_RANGEFINDER2DSERVERIMPL_H
void setInterface(yarp::dev::IRangefinder2D *_irf)
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
A generic interface for planar laser range finders.