 |
Visual Servoing Platform
version 3.2.0
|
43 #include <visp3/core/vpTranslationVector.h>
117 "Cannot construct a translation vector from a "
118 "%d-dimension column vector",
170 "Cannot build a translation vector from a %d-dimension column vector", v.
size()));
228 for (
unsigned int i = 0; i < 3; i++)
229 s[i] = (*
this)[i] + tv[i];
262 for (
unsigned int i = 0; i < 3; i++)
263 s[i] = (*
this)[i] + v[i];
290 for (
unsigned int i = 0; i < 3; i++)
291 sub[i] = (*
this)[i] - tv[i];
313 for (
unsigned int i = 0; i <
dsize; i++) {
339 for (
unsigned int i = 0; i <
dsize; i++) {
358 for (
unsigned int i = 0; i <
rowNum; i++) {
359 for (
unsigned int j = 0; j < v.
getCols(); j++) {
360 M[i][j] = (*this)[i] * v[j];
376 for (
unsigned int i = 0; i <
rowNum; i++)
390 for (
unsigned int i = 0; i <
rowNum; i++)
414 for (
unsigned int i = 0; i <
dsize; i++) {
439 if (tv.
size() != 3) {
441 "Cannot initialize a translation vector from a "
442 "%d-dimension col vector",
445 unsigned int k = tv.
size();
473 unsigned int k = tv.
rowNum;
502 for (
int i = 0; i < 3; i++)
624 for (
unsigned int i = 0; i <
dsize; i++) {
625 double x = *(
data + i);
640 double sum_square = 0.0;
642 for (
unsigned int i = 0; i <
rowNum; i++) {
661 for (
size_t i = 0; i < vec_M.size(); i++) {
662 meanT += (
vpColVector) vec_M[i].getTranslationVector();
664 meanT /= static_cast<double>(vec_M.size());
681 for (
size_t i = 0; i < vec_t.size(); i++) {
684 meanT /= static_cast<double>(vec_t.size());
double euclideanNorm() const
vpTranslationVector operator-() const
vpTranslationVector operator/(const double x) const
double ** rowPtrs
Address of the first element of each rows.
void resize(const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true)
Class that consider the case of a translation vector.
Implementation of a generic 2D array used as vase class of matrices and vectors.
Implementation of column vector and the associated operations.
static vpTranslationVector mean(const std::vector< vpHomogeneousMatrix > &vec_M)
void extract(vpRotationMatrix &R) const
Implementation of a matrix and operations on matrices.
unsigned int rowNum
Number of rows in the array.
void set(const double tx, const double ty, const double tz)
unsigned int getCols() const
vpTranslationVector buildFrom(const double tx, const double ty, const double tz)
Implementation of a pose vector and operations on poses.
Type * data
Address of the first element of the data array.
vpTranslationVector operator+(const vpTranslationVector &tv) const
vpMatrix operator*(const vpRowVector &v) const
vpTranslationVector & operator*=(double x)
unsigned int size() const
Return the number of elements of the 2D array.
static vpTranslationVector cross(const vpTranslationVector &a, const vpTranslationVector &b)
Implementation of row vector and the associated operations.
vpTranslationVector & operator=(const vpColVector &tv)
void resize(const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true, const bool recopy_=true)
Implementation of an homogeneous matrix and operations on such kind of matrices.
vpTranslationVector & operator/=(double x)
unsigned int dsize
Current array size (rowNum * colNum)
error that can be emited by ViSP classes.