YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FrameGrabberMsgsImpl.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_FRAMEGRABBERMSGSRIMPL_H
7#define YARP_DEV_FRAMEGRABBERMSGSRIMPL_H
8
9#include "FrameGrabberMsgs.h"
14
15
17{
18 private:
19 yarp::dev::IRgbVisualParams* m_irgbvp = nullptr;
20 yarp::dev::IFrameGrabberControls* m_ictrls = nullptr;
21 yarp::dev::IFrameGrabberControlsDC1394* m_ictrls1394 = nullptr;
22 yarp::dev::IFrameGrabberImage* m_iframegrabimg = nullptr;
23 yarp::dev::IFrameGrabberImageRaw* m_iframegrabimgraw = nullptr;
24 std::mutex m_mutex;
25
26 public:
30 yarp::dev::IFrameGrabberImage* _iframegrabimg,
31 yarp::dev::IFrameGrabberImageRaw* _iframegrabimgraw);
32
37 virtual yarp::dev::ReturnValue setRgbResolutionRPC(const std::int32_t width, const std::int32_t height) override;
39 virtual yarp::dev::ReturnValue setRgbFOVRPC(const double horizontalFov, const double verticalFov) override;
42 virtual yarp::dev::ReturnValue setRgbMirroringRPC(const bool mirror) override;
44 virtual IFrameGrabberControlMsgs_return_hasFeature hasFeatureRPC(const std::int32_t feature) override;
45 virtual yarp::dev::ReturnValue setFeature1RPC(const std::int32_t feature, const double value) override;
46 virtual IFrameGrabberControlMsgs_return_getFeature1 getFeature1RPC(const std::int32_t feature) override;
47 virtual yarp::dev::ReturnValue setFeature2RPC(const std::int32_t feature, const double value1, const double value2) override;
48 virtual IFrameGrabberControlMsgs_return_getFeature2 getFeature2RPC(const std::int32_t feature) override;
49 virtual IFrameGrabberControlMsgs_return_hasOnOff hasOnOffRPC(const std::int32_t feature) override;
50 virtual yarp::dev::ReturnValue setActiveRPC(const std::int32_t feature, const bool onoff) override;
51 virtual IFrameGrabberControlMsgs_return_getActive getActiveRPC(const std::int32_t feature) override;
52 virtual IFrameGrabberControlMsgs_return_hasAuto hasAutoRPC(const std::int32_t feature) override;
53 virtual IFrameGrabberControlMsgs_return_hasManual hasManualRPC(const std::int32_t feature) override;
54 virtual IFrameGrabberControlMsgs_return_hasOnePush hasOnePushRPC(const std::int32_t feature) override;
55 virtual yarp::dev::ReturnValue setModeRPC(const std::int32_t feature, const yarp::dev::FeatureMode mode) override;
56 virtual IFrameGrabberControlMsgs_return_getMode getModeRPC(const std::int32_t feature) override;
57 virtual yarp::dev::ReturnValue setOnePushRPC(const std::int32_t feature) override;
60 virtual yarp::dev::ReturnValue setVideoModeDC1394RPC(const std::int32_t videomode) override;
63 virtual yarp::dev::ReturnValue setFPSDC1394RPC(const std::int32_t fps) override;
65 virtual yarp::dev::ReturnValue setISOSpeedDC1394RPC(const std::int32_t speed) override;
68 virtual yarp::dev::ReturnValue setColorCodingDC1394RPC(const std::int32_t coding) override;
71 virtual yarp::dev::ReturnValue setFormat7WindowDC1394RPC(const std::int32_t xdim, const std::int32_t ydim, const std::int32_t x0, const std::int32_t y0) override;
72 virtual yarp::dev::ReturnValue setOperationModeDC1394RPC(const bool b1394b) override;
74 virtual yarp::dev::ReturnValue setTransmissionDC1394RPC(const bool bTxON) override;
76 virtual yarp::dev::ReturnValue setBroadcastDC1394RPC(const bool onoff) override;
79 virtual yarp::dev::ReturnValue setPowerDC1394RPC(const bool onoff) override;
80 virtual yarp::dev::ReturnValue setCaptureDC1394RPC(const bool bON) override;
82 virtual yarp::dev::ReturnValue setBytesPerPacketDC1394RPC(const std::int32_t bpp) override;
83
87 virtual IFrameGrabberImageOf_return_getImageCrop getImageCropRPC(const yarp::dev::cropType_id_t type, const std::vector<yarp::dev::vertex_t>& vertices) override;
88
89 std::mutex* getMutex() {return &m_mutex;}
90};
91
92#endif // YARP_DEV_FRAMEGRABBERMSGSRIMPL_H
FeatureMode mode
virtual IFrameGrabberControlMsgs_return_getMode getModeRPC(const std::int32_t feature) override
virtual IFrameGrabberControlDC1394Msgs_return_getTransmissionDC1394 getTransmissionDC1394RPC() override
virtual IFrameGrabberImageOf_return_getWidth getWidthRPC() override
virtual IRGBVisualParamsMsgs_return_getRgbHeight getRgbHeightRPC() override
virtual yarp::dev::ReturnValue setISOSpeedDC1394RPC(const std::int32_t speed) override
virtual IFrameGrabberControlDC1394Msgs_return_getISOSpeedDC1394 getISOSpeedDC1394RPC() override
virtual IRGBVisualParamsMsgs_return_getRgbWidth getRgbWidthRPC() override
virtual yarp::dev::ReturnValue setModeRPC(const std::int32_t feature, const yarp::dev::FeatureMode mode) override
virtual IFrameGrabberControlDC1394Msgs_return_getFPSDC1394 getFPSDC1394RPC() override
virtual yarp::dev::ReturnValue setVideoModeDC1394RPC(const std::int32_t videomode) override
virtual IFrameGrabberControlMsgs_return_hasFeature hasFeatureRPC(const std::int32_t feature) override
virtual IFrameGrabberImageOf_return_getImage getImageRPC() override
virtual yarp::dev::ReturnValue setRgbMirroringRPC(const bool mirror) override
virtual yarp::dev::ReturnValue setBroadcastDC1394RPC(const bool onoff) override
virtual IFrameGrabberControlDC1394Msgs_return_getVideoModeDC1394 getVideoModeDC1394RPC() override
virtual yarp::dev::ReturnValue setPowerDC1394RPC(const bool onoff) override
virtual IRGBVisualParamsMsgs_return_getRgbMirroring getRgbMirroringRPC() override
virtual IFrameGrabberControlMsgs_return_hasOnOff hasOnOffRPC(const std::int32_t feature) override
virtual IFrameGrabberControlMsgs_return_hasAuto hasAutoRPC(const std::int32_t feature) override
virtual yarp::dev::ReturnValue setBytesPerPacketDC1394RPC(const std::int32_t bpp) override
virtual yarp::dev::ReturnValue setColorCodingDC1394RPC(const std::int32_t coding) override
virtual IFrameGrabberControlDC1394Msgs_return_getBytesPerPacketDC1394 getBytesPerPacketDC1394RPC() override
virtual IFrameGrabberControlMsgs_return_getActive getActiveRPC(const std::int32_t feature) override
virtual yarp::dev::ReturnValue setResetDC1394RPC() override
virtual IFrameGrabberControlDC1394Msgs_return_getVideoModeMaskDC1394 getVideoModeMaskDC1394RPC() override
virtual IFrameGrabberControlDC1394Msgs_return_getFormat7WindowDC1394 getFormat7WindowDC1394RPC() override
virtual yarp::dev::ReturnValue setDefaultsDC1394RPC() override
virtual IFrameGrabberControlDC1394Msgs_return_getFormat7MaxWindowDC1394 getFormat7MaxWindowDC1394RPC() override
virtual yarp::dev::ReturnValue setCaptureDC1394RPC(const bool bON) override
virtual IRGBVisualParamsMsgs_return_getRgbSupportedCfg getRgbSupportedConfigurationsRPC() override
virtual IFrameGrabberControlMsgs_return_getCameraDescription getCameraDescriptionRPC() override
virtual yarp::dev::ReturnValue setFormat7WindowDC1394RPC(const std::int32_t xdim, const std::int32_t ydim, const std::int32_t x0, const std::int32_t y0) override
virtual IRGBVisualParamsMsgs_return_getRgbFOV getRgbFOVRPC() override
virtual IFrameGrabberControlMsgs_return_hasManual hasManualRPC(const std::int32_t feature) override
virtual yarp::dev::ReturnValue setActiveRPC(const std::int32_t feature, const bool onoff) override
virtual IFrameGrabberControlDC1394Msgs_return_getColorCodingMaskDC1394 getColorCodingMaskDC1394RPC(const std::int32_t videomode) override
virtual IFrameGrabberControlDC1394Msgs_return_getColorCodingDC1394 getColorCodingDC1394RPC() override
virtual yarp::dev::ReturnValue setFPSDC1394RPC(const std::int32_t fps) override
virtual IFrameGrabberControlMsgs_return_getFeature2 getFeature2RPC(const std::int32_t feature) override
virtual IFrameGrabberControlMsgs_return_hasOnePush hasOnePushRPC(const std::int32_t feature) override
virtual IRGBVisualParamsMsgs_return_getRgbIntrinsicParam getRgbIntrinsicParamRPC() override
virtual yarp::dev::ReturnValue setOperationModeDC1394RPC(const bool b1394b) override
virtual IFrameGrabberImageOf_return_getImageCrop getImageCropRPC(const yarp::dev::cropType_id_t type, const std::vector< yarp::dev::vertex_t > &vertices) override
virtual IFrameGrabberImageOf_return_getHeight getHeightRPC() override
virtual yarp::dev::ReturnValue setFeature2RPC(const std::int32_t feature, const double value1, const double value2) override
virtual IFrameGrabberControlMsgs_return_getFeature1 getFeature1RPC(const std::int32_t feature) override
virtual IFrameGrabberControlDC1394Msgs_return_getFPSMaskDC1394 getFPSMaskDC1394RPC() override
virtual yarp::dev::ReturnValue setFeature1RPC(const std::int32_t feature, const double value) override
virtual yarp::dev::ReturnValue setRgbFOVRPC(const double horizontalFov, const double verticalFov) override
virtual IFrameGrabberControlDC1394Msgs_return_getOperationModeDC1394 getOperationModeDC1394RPC() override
virtual yarp::dev::ReturnValue setTransmissionDC1394RPC(const bool bTxON) override
virtual yarp::dev::ReturnValue setOnePushRPC(const std::int32_t feature) override
virtual yarp::dev::ReturnValue setRgbResolutionRPC(const std::int32_t width, const std::int32_t height) override
virtual IRGBVisualParamsMsgs_return_getRgbResolution getRgbResolutionRPC() override
Control interface for frame grabber devices that conform to the 1394-based Digital Camera Specificati...
Control interface for frame grabber devices.
An interface for retrieving intrinsic parameter from a rgb camera.