44 for (
size_t i=0;i<b->
size();i++)
70 Look for documentation online.";
80 std::pair<std::string, double*>
realparam;
81 std::vector<std::pair<std::string, double*> >
realParams;
114 if (!intrinsic.
check(
"distortionModel"))
133 if (
distortion.find(
"name").asString() !=
"plumb_bob")
163 if (!config.
check(
"SETTINGS"))
171 if (!config.
check(
"HW_DESCRIPTION"))
180 for (
auto& v: params)
204 if (!config.
check(
"EXTRINSIC_PARAMETERS"))
238 if (!(
tf->size() == 4*4))
244 for(
int i = 0; i < 4; i++)
246 for(
int j = 0;
j < 4;
j++)
static bool parseIntrinsic(const Searchable &config, const std::string &groupName, yarp::sig::IntrinsicParams ¶ms)
static bool checkParam(const Bottle &input, RGBDSensorParamParser::RGBDParam ¶m, bool &found)
yarp::sig::Matrix transformationMatrix
bool parseParam(const yarp::os::Searchable &config, std::vector< RGBDParam * > ¶ms)
parseParam, parse the params stored in a Searchable.
yarp::sig::IntrinsicParams rgbIntrinsic
yarp::sig::IntrinsicParams depthIntrinsic
A simple collection of objects that can be described and transmitted in a portable way.
size_type size() const
Gets the number of elements in the bottle.
Value & get(size_type index) const
Reads a Value v from a certain part of the list.
Bottle & findGroup(const std::string &key) const override
Gets a list corresponding to a given keyword.
bool check(const std::string &key) const override
Check if there exists a property of the given name.
Bottle tail() const
Get all but the first element of a bottle.
bool isNull() const override
Checks if the object is invalid.
Value & find(const std::string &key) const override
Gets a value corresponding to a given keyword.
A mini-server for performing network communication in the background.
A base class for nested structures that can be searched.
virtual bool check(const std::string &key) const =0
Check if there exists a property of the given name.
virtual Value & find(const std::string &key) const =0
Gets a value corresponding to a given keyword.
virtual Bottle & findGroup(const std::string &key) const =0
Gets a list corresponding to a given keyword.
A single value (typically within a Bottle).
virtual yarp::conf::float64_t asFloat64() const
Get 64-bit floating point value.
virtual Bottle * asList() const
Get list value.
virtual bool isFloat64() const
Checks if value is a 64-bit floating point number.
virtual std::string asString() const
Get string value.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.
std::vector< yarp::os::Value > val
The IntrinsicParams struct to handle the intrinsic parameter of cameras(RGB and RGBD either).
double focalLengthY
Result of the product of the physical focal length(mm) and the size sy of the individual imager eleme...
DistortionModel distortionModel
Distortion model of the image.
double focalLengthX
Result of the product of the physical focal length(mm) and the size sx of the individual imager eleme...
double physFocalLength
Physical focal length of the lens (m)
double principalPointX
Horizontal coordinate of the principal point of the image, as a pixel offset from the left edge.
double principalPointY
Vertical coordinate of the principal point of the image, as a pixel offset from the top edge.