|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
15 principalPointY(0.0), focalLengthX(0.0), focalLengthY(0.0),
16 distortionModel(), isOptional(false) {}
33 intrinsic.
put(
"distortionModel",
"none");
36 intrinsic.
put(
"distortionModel",
"plumb_bob");
47 intrinsic.
check(
"focalLengthY") &&
48 intrinsic.
check(
"principalPointX") &&
49 intrinsic.
check(
"principalPointY"));
59 if (intrinsic.
find(
"distortionModel").
asString() !=
"plumb_bob") {
72 bool ok = prop.
read(reader);
82 return prop.
write(writer);
double principalPointY
Vertical coordinate of the principal point of the image, as a pixel offset from the top edge.
void put(const std::string &key, const std::string &value)
Associate the given key with the given string.
bool read(yarp::os::ConnectionReader &reader) override
Read this object from a network connection.
bool write(ConnectionWriter &writer) const override
Write this object to a network connection.
double physFocalLength
Physical focal length of the lens (m)
Value & find(const std::string &key) const override
Gets a value corresponding to a given keyword.
double now()
Return the current time in seconds, relative to an arbitrary starting point.
double focalLengthY
Result of the product of the physical focal length(mm) and the size sy of the individual imager eleme...
double principalPointX
Horizontal coordinate of the principal point of the image, as a pixel offset from the left edge.
An interface for writing to a network connection.
double focalLengthX
Result of the product of the physical focal length(mm) and the size sx of the individual imager eleme...
virtual std::string asString() const
Get string value.
bool write(yarp::os::ConnectionWriter &writer) const override
Write this object to a network connection.
void fromProperty(const yarp::os::Property &intrinsic)
fromProperty, fill the struct using the data stored in a Property.
bool check(const std::string &key) const override
Check if there exists a property of the given name.
IntrinsicParams()
IntrinsicParams, default constructor.
An interface for reading from a network connection.
DistortionModel distortionModel
Distortion model of the image.
bool read(ConnectionReader &reader) override
Read this object from a network connection.
void toProperty(yarp::os::Property &intrinsic) const
toProperty, convert the struct to a Property.
A single value (typically within a Bottle).
virtual yarp::conf::float64_t asFloat64() const
Get 64-bit floating point value.
A class for storing options and configuration information.