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 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
219 VP_DEPRECATED
vpPoseVector buildFrom(
double tx,
double ty,
double tz,
double tux,
double tuy,
double tuz);
228 vpPoseVector &build(
const double &tx,
const double &ty,
const double &tz,
const double &tux,
const double &tuy,
const double &tuz);
246 void load(std::ifstream &f);
272 inline double &
operator[](
unsigned int i) {
return *(data + i); }
291 inline const double &
operator[](
unsigned int i)
const {
return *(data + i); }
295 int print(std::ostream &s,
unsigned int length,
char const *intro = 0)
const;
302 void resize(
unsigned int nrows,
unsigned int ncols,
bool flagNullify =
true)
311 void save(std::ofstream &f)
const;
312 void set(
double tx,
double ty,
double tz,
double tux,
double tuy,
double tuz);
315 std::vector<double> toStdVector()
const;
317 #ifdef VISP_HAVE_NLOHMANN_JSON
324 void parse_json(
const nlohmann::json &j);
325 void convert_to_json(nlohmann::json &j)
const;
329 #if defined(VISP_BUILD_DEPRECATED_FUNCTIONS)
343 #ifdef VISP_HAVE_NLOHMANN_JSON
344 #include <nlohmann/json.hpp>
347 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.
VP_DEPRECATED void init()
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.