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);
218 vpPoseVector &buildFrom(
const double &tx,
const double &ty,
const double &tz,
const double &tux,
const double &tuy,
const double &tuz);
236 void load(std::ifstream &f);
262 inline double &
operator[](
unsigned int i) {
return *(data + i); }
281 inline const double &
operator[](
unsigned int i)
const {
return *(data + i); }
285 int print(std::ostream &s,
unsigned int length,
char const *intro = 0)
const;
292 void resize(
unsigned int nrows,
unsigned int ncols,
bool flagNullify =
true)
301 void save(std::ofstream &f)
const;
302 void set(
double tx,
double ty,
double tz,
double tux,
double tuy,
double tuz);
305 std::vector<double> toStdVector()
const;
307 #ifdef VISP_HAVE_NLOHMANN_JSON
314 void parse_json(
const nlohmann::json &j);
315 void convert_to_json(nlohmann::json &j)
const;
320 static const unsigned int constr_value_6;
321 #if defined(VISP_BUILD_DEPRECATED_FUNCTIONS)
330 VP_DEPRECATED
void init() { };
335 #ifdef VISP_HAVE_NLOHMANN_JSON
336 #include VISP_NLOHMANN_JSON(json.hpp)
339 r.convert_to_json(j);
Implementation of a generic 2D array used as base class for matrices and vectors.
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.
Implementation of a pose vector and operations on poses.
const double & operator[](unsigned int i) const
void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true)
double & operator[](unsigned int i)
static const std::string jsonTypeName
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.