23 iDepthVisual = interface;
26 iDepthVisual =
nullptr;
37 yError() <<
"Depth Visual parameter Parser has not been correctly configured. IDepthVisualParams interface is not valid";
44 yError() <<
"Depth Visual Params Parser received a command not belonging to this interface. Required interface was " <<
yarp::os::Vocab32::decode(code);
128 yError() <<
"Depth Visual Parameter interface parser received am unknown GET command. Command is " << cmd.
toString();
174 yError() <<
"Rgb Visual Parameter interface parser received am unknown SET command. Command is " << cmd.
toString();
183 yError() <<
"Rgb Visual parameter interface Parser received a malformed request. Command should either be 'set' or 'get', received " << cmd.
toString();
constexpr yarp::conf::vocab32_t VOCAB_DEPTH_VISUAL_PARAMS
constexpr yarp::conf::vocab32_t VOCAB_CLIP_PLANES
constexpr yarp::conf::vocab32_t VOCAB_RESOLUTION
constexpr yarp::conf::vocab32_t VOCAB_MIRROR
constexpr yarp::conf::vocab32_t VOCAB_FOV
constexpr yarp::conf::vocab32_t VOCAB_ACCURACY
constexpr yarp::conf::vocab32_t VOCAB_INTRINSIC_PARAM
constexpr yarp::conf::vocab32_t VOCAB_IS
constexpr yarp::conf::vocab32_t VOCAB_WIDTH
constexpr yarp::conf::vocab32_t VOCAB_GET
constexpr yarp::conf::vocab32_t VOCAB_FAILED
constexpr yarp::conf::vocab32_t VOCAB_SET
constexpr yarp::conf::vocab32_t VOCAB_HEIGHT
An interface for retrieving intrinsic parameter from a depth camera.
virtual bool setDepthMirroring(bool mirror)=0
Set the mirroring setting of the sensor.
virtual double getDepthAccuracy()=0
Get the minimum detectable variation in distance [meter].
virtual bool setDepthAccuracy(double accuracy)=0
Set the minimum detectable variation in distance [meter] when possible.
virtual int getDepthWidth()=0
Return the height of each frame.
virtual bool getDepthIntrinsicParam(yarp::os::Property &intrinsic)=0
Get the intrinsic parameters of the depth camera.
virtual bool getDepthFOV(double &horizontalFov, double &verticalFov)=0
Get the field of view (FOV) of the depth camera.
virtual bool setDepthFOV(double horizontalFov, double verticalFov)=0
Set the field of view (FOV) of the depth camera.
virtual bool setDepthClipPlanes(double nearPlane, double farPlane)=0
Set the clipping planes of the sensor.
virtual bool getDepthClipPlanes(double &nearPlane, double &farPlane)=0
Get the clipping planes of the sensor.
virtual bool getDepthMirroring(bool &mirror)=0
Get the mirroring setting of the sensor.
virtual int getDepthHeight()=0
Return the height of each frame.
virtual bool setDepthResolution(int width, int height)=0
Set the resolution of the depth image from the camera.
A simple collection of objects that can be described and transmitted in a portable way.
void addVocab32(yarp::conf::vocab32_t x)
Places a vocabulary item in the bottle, at the end of the list.
Bottle & addList()
Places an empty nested list in the bottle, at the end of the list.
void addFloat64(yarp::conf::float64_t x)
Places a 64-bit floating point number in the bottle, at the end of the list.
Value & get(size_type index) const
Reads a Value v from a certain part of the list.
void clear()
Empties the bottle of any objects it contains.
void addInt32(std::int32_t x)
Places a 32-bit integer in the bottle, at the end of the list.
std::string toString() const override
Gives a human-readable textual representation of the bottle.
static bool copyPortable(const PortWriter &writer, PortReader &reader)
Copy one portable to another, via writing and reading.
A class for storing options and configuration information.
virtual yarp::conf::float64_t asFloat64() const
Get 64-bit floating point value.
virtual yarp::conf::vocab32_t asVocab32() const
Get vocabulary identifier as an integer.
virtual bool asBool() const
Get boolean value.
virtual std::int32_t asInt32() const
Get 32-bit integer value.
bool configure(yarp::dev::IDepthVisualParams *interface)
bool respond(const yarp::os::Bottle &cmd, yarp::os::Bottle &response) override
Respond to a message.
DepthVisualParams_Responder()
std::string decode(NetInt32 code)
Convert a vocabulary identifier into a string.