mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
mrs_lib::Vector3Converter Class Reference

Converter of Vector3 representations. Instantiate it with any type of vector3 in constructor and convert it by assigning it to any other type of vector3 variable. More...

#include <attitude_converter.h>

Public Member Functions

 Vector3Converter (const tf2::Vector3 &vector3)
 Constructor with tf2::Vector3. More...
 
 Vector3Converter (const Eigen::Vector3d &vector3)
 Constructor with Eigen::Vector3. More...
 
 Vector3Converter (const geometry_msgs::Vector3 &vector3)
 Constructor with geometry_msgs::Vector3. More...
 
 Vector3Converter (const double &x, const double &y, const double &z)
 Constructor with doubles: x, y, z. More...
 
 operator tf2::Vector3 () const
 typecast overloaded for tf2::Vector3 More...
 
 operator Eigen::Vector3d () const
 typecast overloaded for Eigen::Vector3 More...
 
 operator geometry_msgs::Vector3 () const
 typecast overloaded for geometry_msgs::Vector3 More...
 

Detailed Description

Converter of Vector3 representations. Instantiate it with any type of vector3 in constructor and convert it by assigning it to any other type of vector3 variable.

Constructor & Destructor Documentation

◆ Vector3Converter() [1/4]

mrs_lib::Vector3Converter::Vector3Converter ( const tf2::Vector3 &  vector3)
inline

Constructor with tf2::Vector3.

Parameters
vector3

◆ Vector3Converter() [2/4]

mrs_lib::Vector3Converter::Vector3Converter ( const Eigen::Vector3d &  vector3)

Constructor with Eigen::Vector3.

Parameters
vector3

◆ Vector3Converter() [3/4]

mrs_lib::Vector3Converter::Vector3Converter ( const geometry_msgs::Vector3 &  vector3)

Constructor with geometry_msgs::Vector3.

Parameters
vector3

◆ Vector3Converter() [4/4]

mrs_lib::Vector3Converter::Vector3Converter ( const double &  x,
const double &  y,
const double &  z 
)

Constructor with doubles: x, y, z.

Parameters
x
y
z

Member Function Documentation

◆ operator Eigen::Vector3d()

mrs_lib::Vector3Converter::operator Eigen::Vector3d ( ) const

typecast overloaded for Eigen::Vector3

Returns
vector3

◆ operator geometry_msgs::Vector3()

mrs_lib::Vector3Converter::operator geometry_msgs::Vector3 ( ) const

typecast overloaded for geometry_msgs::Vector3

Returns
vector3

◆ operator tf2::Vector3()

mrs_lib::Vector3Converter::operator tf2::Vector3 ( ) const

typecast overloaded for tf2::Vector3

Returns
vector3

The documentation for this class was generated from the following files: