Public Member Functions | Private Attributes | List of all members
warehouse_ros::LiveTransformSource Class Reference

#include <transform_collection.h>

Inheritance diagram for warehouse_ros::LiveTransformSource:
Inheritance graph
[legend]

Public Member Functions

 LiveTransformSource (double timeout=0)
 
tf::StampedTransform lookupTransform (const std::string &target, const std::string &source, double t) const override
 

Private Attributes

ros::NodeHandle nh_
 
boost::shared_ptr< tf::TransformListenertf_
 
ros::Duration timeout_
 

Detailed Description

This wraps a tf transform listener so it can be used interchangeably with a TransformCollection.

Definition at line 91 of file transform_collection.h.

Constructor & Destructor Documentation

◆ LiveTransformSource()

warehouse_ros::LiveTransformSource::LiveTransformSource ( double  timeout = 0)
inline
Parameters
timeoutMaximum timeout

ros::init must be called before creating an instance

Definition at line 97 of file transform_collection.h.

Member Function Documentation

◆ lookupTransform()

tf::StampedTransform warehouse_ros::LiveTransformSource::lookupTransform ( const std::string &  target,
const std::string &  source,
double  t 
) const
inlineoverridevirtual

Will return the transform if it becomes available before the timeout expires, else throw a tf exception

Implements warehouse_ros::TransformSource.

Definition at line 103 of file transform_collection.h.

Member Data Documentation

◆ nh_

ros::NodeHandle warehouse_ros::LiveTransformSource::nh_
private

Definition at line 113 of file transform_collection.h.

◆ tf_

boost::shared_ptr<tf::TransformListener> warehouse_ros::LiveTransformSource::tf_
private

Definition at line 114 of file transform_collection.h.

◆ timeout_

ros::Duration warehouse_ros::LiveTransformSource::timeout_
private

Definition at line 115 of file transform_collection.h.


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


warehouse_ros
Author(s): Bhaskara Marthi , Connor Brew
autogenerated on Wed Oct 16 2024 02:42:07