Visual Servoing Platform
version 3.5.0 under development (2022-02-15)
|
#include <visp3/core/vpXmlParserHomogeneousMatrix.h>
Public Types | |
enum | vpXmlCodeSequenceType { SEQUENCE_OK, SEQUENCE_ERROR } |
Public Member Functions | |
vpXmlParserHomogeneousMatrix () | |
~vpXmlParserHomogeneousMatrix () | |
vpHomogeneousMatrix | getHomogeneousMatrix () const |
std::string | getHomogeneousMatrixName () const |
int | parse (vpHomogeneousMatrix &M, const std::string &filename, const std::string &name) |
int | save (const vpHomogeneousMatrix &M, const std::string &filename, const std::string &name) |
void | setHomogeneousMatrixName (const std::string &name) |
XML parser to load and save an homogeneous matrix in a file.
To have a complete description of the homogeneous matrix implemented in ViSP, see vpHomogeneousMatrix.
Example of an XML file "homogeneous_matrixes.xml" containing a Pose vector that will be converted in an homogeneous matrix:
Example of loading an existing homogeneous matrix from an XML file.
Example of writing an homogenoeus matrix in a XML file.
Definition at line 153 of file vpXmlParserHomogeneousMatrix.h.
Enumerator | |
---|---|
SEQUENCE_OK | |
SEQUENCE_ERROR |
Definition at line 156 of file vpXmlParserHomogeneousMatrix.h.
vpXmlParserHomogeneousMatrix::vpXmlParserHomogeneousMatrix | ( | ) |
Definition at line 500 of file vpXmlParserHomogeneousMatrix.cpp.
vpXmlParserHomogeneousMatrix::~vpXmlParserHomogeneousMatrix | ( | ) |
Definition at line 504 of file vpXmlParserHomogeneousMatrix.cpp.
vpHomogeneousMatrix vpXmlParserHomogeneousMatrix::getHomogeneousMatrix | ( | ) | const |
Definition at line 536 of file vpXmlParserHomogeneousMatrix.cpp.
std::string vpXmlParserHomogeneousMatrix::getHomogeneousMatrixName | ( | ) | const |
Definition at line 541 of file vpXmlParserHomogeneousMatrix.cpp.
int vpXmlParserHomogeneousMatrix::parse | ( | vpHomogeneousMatrix & | M, |
const std::string & | filename, | ||
const std::string & | name | ||
) |
Parse an xml file to load an homogeneous matrix
M | : homogeneous matrix to fill. |
filename | : name of the xml file to parse. |
name | : name of the homogeneous matrix to find in the xml file. |
Definition at line 517 of file vpXmlParserHomogeneousMatrix.cpp.
int vpXmlParserHomogeneousMatrix::save | ( | const vpHomogeneousMatrix & | M, |
const std::string & | filename, | ||
const std::string & | name | ||
) |
Save an homogeneous matrix in an xml file.
M | : homogeneous matrix to save. |
filename | : name of the xml file to fill. |
name | : name of the homogeneous matrix. |
Definition at line 530 of file vpXmlParserHomogeneousMatrix.cpp.
void vpXmlParserHomogeneousMatrix::setHomogeneousMatrixName | ( | const std::string & | name | ) |
Definition at line 546 of file vpXmlParserHomogeneousMatrix.cpp.