 |
Visual Servoing Platform
version 3.3.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++)
508 #if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
528 if (list.size() >
size()) {
531 std::copy(list.begin(), list.end(),
data);
740 double sum_square = 0.0;
742 for (
unsigned int i = 0; i <
rowNum; i++) {
761 for (
size_t i = 0; i < vec_M.size(); i++) {
762 meanT += (
vpColVector) vec_M[i].getTranslationVector();
764 meanT /= static_cast<double>(vec_M.size());
781 for (
size_t i = 0; i < vec_t.size(); i++) {
784 meanT /= static_cast<double>(vec_t.size());
vp_deprecated double euclideanNorm() const
vpTranslationVector operator-() const
double ** rowPtrs
Address of the first element of each rows.
vpTranslationVector operator/(double x) const
Class that consider the case of a translation vector.
double frobeniusNorm() const
vpTranslationVector buildFrom(double tx, double ty, double tz)
vpTranslationVector & operator,(double val)
Implementation of a generic 2D array used as base class for 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.
unsigned int getCols() const
void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true, bool recopy_=true)
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)
vpTranslationVector & operator<<(double val)
Implementation of row vector and the associated operations.
vpTranslationVector & operator=(const vpColVector &tv)
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.
void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true)
void set(double tx, double ty, double tz)