43#ifndef VP_POSE_VECTOR_H
44#define VP_POSE_VECTOR_H
46#include <visp3/core/vpConfig.h>
47#include <visp3/core/vpArray2D.h>
48#include <visp3/core/vpHomogeneousMatrix.h>
49#include <visp3/core/vpMatrix.h>
50#include <visp3/core/vpRotationMatrix.h>
208 vpPoseVector(
double tx,
double ty,
double tz,
double tux,
double tuy,
double tuz);
216 vpPoseVector &
buildFrom(
const double &tx,
const double &ty,
const double &tz,
const double &tux,
const double &tuy,
const double &tuz);
234 void load(std::ifstream &f);
283 int print(std::ostream &s,
unsigned int length,
char const *intro =
nullptr)
const;
290 VP_NORETURN
void resize(
unsigned int nrows,
unsigned int ncols,
bool flagNullify =
true)
299 void save(std::ofstream &f)
const;
300 void set(
double tx,
double ty,
double tz,
double tux,
double tuy,
double tuz);
303 std::vector<double> toStdVector()
const;
305#ifdef VISP_HAVE_NLOHMANN_JSON
312 void parse_json(
const nlohmann::json &j);
313 void convert_to_json(nlohmann::json &j)
const;
318 static const unsigned int constr_value_6;
319#if defined(VISP_BUILD_DEPRECATED_FUNCTIONS)
328 VP_DEPRECATED
void init() { }
333#ifdef VISP_HAVE_NLOHMANN_JSON
334#include VISP_NLOHMANN_JSON(json.hpp)
337 r.convert_to_json(j);
friend void to_json(nlohmann::json &j, const vpArray2D< T > &array)
static bool load(const std::string &filename, vpArray2D< Type > &A, bool binary=false, char *header=nullptr)
vpArray2D< Type > t() const
Compute the transpose of the array.
static bool save(const std::string &filename, const vpArray2D< Type > &A, bool binary=false, const char *header="")
friend void from_json(const nlohmann::json &j, vpArray2D< T > &array)
error that can be emitted by ViSP classes.
Implementation of an homogeneous matrix and operations on such kind of matrices.
vpTranslationVector getTranslationVector() const
double & operator[](unsigned int i)
friend void from_json(const nlohmann::json &j, vpPoseVector &cam)
static const std::string jsonTypeName
friend void to_json(nlohmann::json &j, const vpPoseVector &cam)
void extract(vpRotationMatrix &R) const
vpThetaUVector getThetaUVector() const
const double & operator[](unsigned int i) const
vpPoseVector & buildFrom(const double &tx, const double &ty, const double &tz, const double &tux, const double &tuy, const double &tuz)
vpRotationMatrix getRotationMatrix() const
VP_NORETURN void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true)
Implementation of a rotation vector as quaternion angle minimal representation.
Implementation of a rotation matrix and operations on such kind of matrices.
Implementation of row vector and the associated operations.
Implementation of a rotation vector as axis-angle minimal representation.
Class that consider the case of a translation vector.