Base class for Transform implementations. More...
#include <transform.h>
Public Member Functions | |
virtual tf::Quaternion | GetOrientation () const |
Get the orientation of this transform. | |
virtual boost::shared_ptr < TransformImpl > | Inverse () const =0 |
virtual void | Transform (const tf::Vector3 &v_in, tf::Vector3 &v_out) const =0 |
Apply this transform to a 3D vector. | |
TransformImpl () | |
virtual | ~TransformImpl () |
Public Attributes | |
ros::Time | stamp_ |
Time stamp for this transform. |
Base class for Transform implementations.
swri_transform_util::Transform uses a "pointer to implementation" design pattern. Extend this class to create new implementations of Transform. TransformImpl and its descendants should not be used bare, only as part of a swri_transform_util::Transform.
Definition at line 49 of file transform.h.
swri_transform_util::TransformImpl::TransformImpl | ( | ) | [inline] |
Definition at line 52 of file transform.h.
virtual swri_transform_util::TransformImpl::~TransformImpl | ( | ) | [inline, virtual] |
Definition at line 53 of file transform.h.
virtual tf::Quaternion swri_transform_util::TransformImpl::GetOrientation | ( | ) | const [inline, virtual] |
Get the orientation of this transform.
Get the orientation of this transform by getting the vector between the origin point and a point offset 1 on the x axis.
Reimplemented in swri_transform_util::TfTransform, swri_transform_util::Wgs84ToTfTransform, swri_transform_util::TfToUtmTransform, swri_transform_util::TfToWgs84Transform, and swri_transform_util::UtmToTfTransform.
Definition at line 71 of file transform.h.
virtual boost::shared_ptr<TransformImpl> swri_transform_util::TransformImpl::Inverse | ( | ) | const [pure virtual] |
Implemented in swri_transform_util::TfTransform, swri_transform_util::IdentityTransform, swri_transform_util::Wgs84ToUtmTransform, swri_transform_util::Wgs84ToTfTransform, swri_transform_util::UtmToWgs84Transform, swri_transform_util::TfToUtmTransform, swri_transform_util::TfToWgs84Transform, and swri_transform_util::UtmToTfTransform.
virtual void swri_transform_util::TransformImpl::Transform | ( | const tf::Vector3 & | v_in, |
tf::Vector3 & | v_out | ||
) | const [pure virtual] |
Apply this transform to a 3D vector.
[in] | v_in | Input vector |
[out] | v_out | Transformed vector |
Implemented in swri_transform_util::TfTransform, swri_transform_util::IdentityTransform, swri_transform_util::Wgs84ToUtmTransform, swri_transform_util::Wgs84ToTfTransform, swri_transform_util::UtmToWgs84Transform, swri_transform_util::TfToUtmTransform, swri_transform_util::TfToWgs84Transform, and swri_transform_util::UtmToTfTransform.
Time stamp for this transform.
Definition at line 93 of file transform.h.