18 static_assert(std::is_trivially_copyable_v<TPose3DQuat>);
26 m.
rows() == 1 && m.
cols() == 7,
"Wrong size of vector in ::fromString");
27 for (
int i = 0; i < m.
cols(); i++) (*
this)[i] = m(0, i);
double norm() const
Pose's spatial coordinates (x,y,z) norm.
#define THROW_EXCEPTION(msg)
void fromString(const std::string &s)
Set the current object value from a string generated by 'asString' (eg: "[0.02 1.04 -0...
This base provides a set of functions for maths stuff.
double x
Translation in x,y,z.
#define ASSERTMSG_(f, __ERROR_MSG)
Defines an assertion mechanism.
bool fromMatlabStringFormat(const std::string &s, mrpt::optional_ref< std::ostream > dump_errors_here=std::nullopt)
Reads a matrix from a string in Matlab-like format, for example: "[1 0 2; 0 4 -1]" The string must st...
size_type rows() const
Number of rows in the matrix.
size_type cols() const
Number of columns in the matrix.
return_t square(const num_t x)
Inline function for the square of a number.