![]()  | 
  
    RobWorkProject
    23.9.11-
    
   | 
 
A Pose6D \( \mathbf{x}\in \mathbb{R}^6 \) describes a position and orientation in 3-dimensions. More...
#include <Pose6D.hpp>
Public Member Functions | |
| Pose6D () | |
| Creates an "identity" Pose6D. Position is zero vector and orientation is zero vector.  | |
| Pose6D (T x, T y, T z, T kx, T ky, T kz) | |
| Creates a Pose6D from 6 parameters. 3 defining the position and 3 defining the EAA orientation.  More... | |
| Pose6D (const rw::math::Vector3D< T > &v3d, const EAA< T > &eaa) | |
| Creates a Pose6D from a Vector3D and a EAA.  More... | |
| Pose6D (const rw::math::Transform3D< T > &t3d) | |
| Creates a Pose6D from a Transform3D.  More... | |
| T | get (size_t i) const | 
| Returns the \( i\)'th element in the pose.  More... | |
| const rw::math::Vector3D< T > & | getPos () const | 
| Get the position.  More... | |
| rw::math::Vector3D< T > & | getPos () | 
| Get the position.  More... | |
| const EAA< T > & | getEAA () const | 
| Get the orientation.  More... | |
| EAA< T > & | getEAA () | 
| Get the orientation.  More... | |
| T | operator() (size_t i) const | 
| Returns the \(i\)'th element in the pose.  More... | |
| T & | operator() (size_t i) | 
| Returns the \(i\)'th element in the pose.  More... | |
| T | operator[] (size_t i) const | 
| Returns the \(i\)'th element in the pose.  More... | |
| T & | operator[] (size_t i) | 
| Returns the \(i\)'th element in the pose.  More... | |
| const rw::math::Transform3D< T > | toTransform3D () const | 
| Converts the Pose6D into the corresponding Transform3D.  More... | |
Related Functions | |
(Note that these are not member functions.)  | |
| template<> | |
| void | write (const rw::math::Pose6D< double > &sobject, rw::common::OutputArchive &oarchive, const std::string &id) | 
| template<> | |
| void | write (const rw::math::Pose6D< float > &sobject, rw::common::OutputArchive &oarchive, const std::string &id) | 
| template<> | |
| void | read (rw::math::Pose6D< double > &sobject, rw::common::InputArchive &iarchive, const std::string &id) | 
| template<> | |
| void | read (rw::math::Pose6D< float > &sobject, rw::common::InputArchive &iarchive, const std::string &id) | 
A Pose6D \( \mathbf{x}\in \mathbb{R}^6 \) describes a position and orientation in 3-dimensions.
\( {\mathbf{x}} = \left[ \begin{array}{c} x \\ y \\ z \\ \theta k_x \\ \theta k_y \\ \theta k_z \end{array} \right] \)
where \( (x,y,z)\) is the 3d position and \( (\theta k_x, \theta k_y, \theta k_z)\) describes the orientation in equal angle axis (EAA) format.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inlineexplicit | 
Creates a Pose6D from a Transform3D.
| t3d | [in] A Transform3D | 
      
  | 
  inline | 
Returns the \( i\)'th element in the pose.
\( i\in\{0,1,2\} \) corresponds to \(\{x,y,z\}\) respectively. \( i\in\{3,4,5\}\) corresponds to the equivalent angle axis.
| i | [in] index to return | 
      
  | 
  inline | 
Get the orientation.
      
  | 
  inline | 
Get the orientation.
      
  | 
  inline | 
Get the position.
      
  | 
  inline | 
Get the position.
      
  | 
  inline | 
Returns the \(i\)'th element in the pose.
\(i\in\{0,1,2\} \) corresponds to \(\{x,y,z\}\) respectively. \(i\in\{3,4,5\}\) corresponds to the equivalent angle axis.
| i | [in] index to return | 
      
  | 
  inline | 
Returns the \(i\)'th element in the pose.
\(i\in\{0,1,2\} \) corresponds to \(\{x,y,z\}\) respectively. \(i\in\{3,4,5\}\) corresponds to the equivalent angle axis.
| i | [in] index to return | 
      
  | 
  inline | 
Returns the \(i\)'th element in the pose.
\(i\in\{0,1,2\} \) corresponds to \(\{x,y,z\}\) respectively. \(i\in\{3,4,5\}\) corresponds to the equivalent angle axis.
| i | [in] index to return | 
      
  | 
  inline | 
Returns the \(i\)'th element in the pose.
\(i\in\{0,1,2\} \) corresponds to \(\{x,y,z\}\) respectively. \(i\in\{3,4,5\}\) corresponds to the equivalent angle axis.
| i | [in] index to return | 
      
  | 
  inline | 
Converts the Pose6D into the corresponding Transform3D.
      
  | 
  related | 
Enable read-serialization of class T by overloading this method. Data is read from iarchive and filled into sobject.
| sobject | [out] the object in which the data should be streamed into | 
| iarchive | [in] the InputArchive from which to read data. | 
| id | [in] The id of the serialized sobject. | 
      
  | 
  related | 
Enable read-serialization of class T by overloading this method. Data is read from iarchive and filled into sobject.
| sobject | [out] the object in which the data should be streamed into | 
| iarchive | [in] the InputArchive from which to read data. | 
| id | [in] The id of the serialized sobject. | 
      
  | 
  related | 
Enable write-serialization of class T by overloading this method. Data is written to oarchive from the sobject.
| sobject | [in] the object from which the data should be streamed. | 
| oarchive | [out] the OutputArchive in which data should be written. | 
| id | [in] The id of the serialized sobject. | 
      
  | 
  related | 
Enable write-serialization of class T by overloading this method. Data is written to oarchive from the sobject.
| sobject | [in] the object from which the data should be streamed. | 
| oarchive | [out] the OutputArchive in which data should be written. | 
| id | [in] The id of the serialized sobject. |