YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
RGBDSensorMsgsImpl.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6#ifndef YARP_DEV_RGBDSENSORMSGSIMPL_H
7#define YARP_DEV_RGBDSENSORMSGSIMPL_H
8
9#include "RGBDSensorMsgs.h"
10
15
16
18{
19 private:
20 yarp::dev::IRGBDSensor* m_irgbd = nullptr;
21 yarp::dev::IFrameGrabberControls* m_ictrls = nullptr;
22 std::mutex m_mutex;
23
24 public:
26
27 //IRGBDSensor
34
35 //IRgbVisualParams
40 virtual yarp::dev::ReturnValue setRgbResolutionRPC(const std::int32_t width, const std::int32_t height) override;
42 virtual yarp::dev::ReturnValue setRgbFOVRPC(const double horizontalFov, const double verticalFov) override;
45 virtual yarp::dev::ReturnValue setRgbMirroringRPC(const bool mirror) override;
46
47 //IDepthVisualParams
51 virtual yarp::dev::ReturnValue setDepthResolutionRPC(const std::int32_t width, const std::int32_t height) override;
53 virtual yarp::dev::ReturnValue setDepthFOVRPC(const double horizontalFov, const double verticalFov) override;
55 virtual yarp::dev::ReturnValue setDepthAccuracyRPC(const double accuracy) override;
57 virtual yarp::dev::ReturnValue setDepthClipPlanesRPC(const double nearPlane, const double farPlane) override;
59 virtual yarp::dev::ReturnValue setDepthMirroringRPC(const bool mirror) override;
61
62 //IFrameGrabberControls
64 virtual IFrameGrabberControlMsgs_return_hasFeature hasFeatureRPC(const std::int32_t feature) override;
65 virtual yarp::dev::ReturnValue setFeature1RPC(const std::int32_t feature, const double value) override;
66 virtual IFrameGrabberControlMsgs_return_getFeature1 getFeature1RPC(const std::int32_t feature) override;
67 virtual yarp::dev::ReturnValue setFeature2RPC(const std::int32_t feature, const double value1, const double value2) override;
68 virtual IFrameGrabberControlMsgs_return_getFeature2 getFeature2RPC(const std::int32_t feature) override;
69 virtual IFrameGrabberControlMsgs_return_hasOnOff hasOnOffRPC(const std::int32_t feature) override;
70 virtual yarp::dev::ReturnValue setActiveRPC(const std::int32_t feature, const bool onoff) override;
71 virtual IFrameGrabberControlMsgs_return_getActive getActiveRPC(const std::int32_t feature) override;
72 virtual IFrameGrabberControlMsgs_return_hasAuto hasAutoRPC(const std::int32_t feature) override;
73 virtual IFrameGrabberControlMsgs_return_hasManual hasManualRPC(const std::int32_t feature) override;
74 virtual IFrameGrabberControlMsgs_return_hasOnePush hasOnePushRPC(const std::int32_t feature) override;
75 virtual yarp::dev::ReturnValue setModeRPC(const std::int32_t feature, const yarp::dev::FeatureMode mode) override;
76 virtual IFrameGrabberControlMsgs_return_getMode getModeRPC(const std::int32_t feature) override;
77 virtual yarp::dev::ReturnValue setOnePushRPC(const std::int32_t feature) override;
78
79 std::mutex* getMutex() {return &m_mutex;}
80};
81
82#endif // YARP_DEV_RGBDSENSORMSGSIMPL_H
FeatureMode mode
virtual IFrameGrabberControlMsgs_return_hasOnePush hasOnePushRPC(const std::int32_t feature) override
virtual yarp::dev::ReturnValue setRgbResolutionRPC(const std::int32_t width, const std::int32_t height) override
virtual IDepthVisualParamsMsgs_return_getDepthResolution getDepthResolutionRPC() override
virtual IDepthVisualParamsMsgs_return_getDepthFOV getDepthFOVRPC() override
virtual IRGBDMsgs_return_getDepthImage getDepthImageRPC() override
virtual IRGBVisualParamsMsgs_return_getRgbIntrinsicParam getRgbIntrinsicParamRPC() override
virtual IDepthVisualParamsMsgs_return_getDepthMirroring getDepthMirroringRPC() override
virtual IFrameGrabberControlMsgs_return_getFeature1 getFeature1RPC(const std::int32_t feature) override
virtual yarp::dev::ReturnValue setDepthFOVRPC(const double horizontalFov, const double verticalFov) override
virtual yarp::dev::ReturnValue setFeature1RPC(const std::int32_t feature, const double value) override
virtual yarp::dev::ReturnValue setDepthAccuracyRPC(const double accuracy) override
virtual yarp::dev::ReturnValue setOnePushRPC(const std::int32_t feature) override
virtual IFrameGrabberControlMsgs_return_hasManual hasManualRPC(const std::int32_t feature) override
virtual IDepthVisualParamsMsgs_return_getDepthHeight getDepthHeightRPC() override
virtual IDepthVisualParamsMsgs_return_getDepthWidth getDepthWidthRPC() override
virtual yarp::dev::ReturnValue setDepthResolutionRPC(const std::int32_t width, const std::int32_t height) override
std::mutex * getMutex()
virtual IRGBDMsgs_return_getRgbImage getRgbImageRPC() override
virtual IRGBVisualParamsMsgs_return_getRgbFOV getRgbFOVRPC() override
virtual IDepthVisualParamsMsgs_return_getDepthAccuracy getDepthAccuracyRPC() override
virtual IDepthVisualParamsMsgs_return_getDepthClipPlanes getDepthClipPlanesRPC() override
virtual IFrameGrabberControlMsgs_return_getMode getModeRPC(const std::int32_t feature) override
virtual IRGBDMsgs_return_getExtrinsic getExtrinsicParamRPC() override
virtual IRGBVisualParamsMsgs_return_getRgbSupportedCfg getRgbSupportedConfigurationsRPC() override
virtual IFrameGrabberControlMsgs_return_getFeature2 getFeature2RPC(const std::int32_t feature) override
virtual IRGBVisualParamsMsgs_return_getRgbHeight getRgbHeightRPC() override
virtual yarp::dev::ReturnValue setFeature2RPC(const std::int32_t feature, const double value1, const double value2) override
virtual IDepthVisualParamsMsgs_return_getDepthIntrinsicParam getDepthIntrinsicParamRPC() override
virtual yarp::dev::ReturnValue setModeRPC(const std::int32_t feature, const yarp::dev::FeatureMode mode) override
virtual IFrameGrabberControlMsgs_return_getActive getActiveRPC(const std::int32_t feature) override
virtual IRGBVisualParamsMsgs_return_getRgbResolution getRgbResolutionRPC() override
virtual IFrameGrabberControlMsgs_return_getCameraDescription getCameraDescriptionRPC() override
virtual IRGBDMsgs_return_getImages getImagesRPC() override
virtual IRGBDMsgs_return_getLastErrorMsg getLastErrorMsgRPC() override
virtual IFrameGrabberControlMsgs_return_hasAuto hasAutoRPC(const std::int32_t feature) override
virtual yarp::dev::ReturnValue setRgbFOVRPC(const double horizontalFov, const double verticalFov) override
virtual IFrameGrabberControlMsgs_return_hasOnOff hasOnOffRPC(const std::int32_t feature) override
virtual yarp::dev::ReturnValue setDepthMirroringRPC(const bool mirror) override
virtual yarp::dev::ReturnValue setRgbMirroringRPC(const bool mirror) override
virtual yarp::dev::ReturnValue setDepthClipPlanesRPC(const double nearPlane, const double farPlane) override
virtual IRGBVisualParamsMsgs_return_getRgbMirroring getRgbMirroringRPC() override
virtual IFrameGrabberControlMsgs_return_hasFeature hasFeatureRPC(const std::int32_t feature) override
virtual IRGBDMsgs_return_getSensorStatus getSensorStatusRPC() override
virtual yarp::dev::ReturnValue setActiveRPC(const std::int32_t feature, const bool onoff) override
virtual IRGBVisualParamsMsgs_return_getRgbWidth getRgbWidthRPC() override
Control interface for frame grabber devices.
A generic interface for cameras that have both color camera as well as depth camera sensor,...
Definition IRGBDSensor.h:39
constexpr char accuracy[]