Public Slots | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
TransformBroadcaster Class Reference

#include <TransformBroadcaster.h>

Inheritance diagram for TransformBroadcaster:
Inheritance graph
[legend]

Public Slots

void setChildFrame (const QString &frame)
 
void setDisabled (bool bDisabled=true)
 
void setEnabled (bool bEnabled=true)
 
void setParentFrame (const QString &frame)
 
void setPosition (const Eigen::Vector3d &p)
 
void setPosition (double x, double y, double z)
 
void setQuaternion (const Eigen::Quaterniond &q)
 
void setQuaternion (double x, double y, double z, double w)
 

Public Member Functions

bool enabled () const
 
void setPose (const geometry_msgs::Pose &pose)
 
void setValue (const geometry_msgs::TransformStamped &tf)
 
 TransformBroadcaster (const QString &parent_frame="", const QString &child_frame="", QObject *parent=nullptr)
 
const geometry_msgs::TransformStamped & value () const
 

Protected Member Functions

void check ()
 
void send ()
 

Private Attributes

std::shared_ptr< tf2_ros::StaticTransformBroadcasterbroadcaster_
 
bool enabled_
 
geometry_msgs::TransformStamped msg_
 
bool valid_
 

Detailed Description

QObject wrapper for tf2_ros::StaticTransformBroadcaster to allow for signal-slot interaction

Definition at line 42 of file TransformBroadcaster.h.

Constructor & Destructor Documentation

TransformBroadcaster::TransformBroadcaster ( const QString &  parent_frame = "",
const QString &  child_frame = "",
QObject *  parent = nullptr 
)
explicit

Definition at line 51 of file TransformBroadcaster.cpp.

Member Function Documentation

void TransformBroadcaster::check ( )
protected

Definition at line 148 of file TransformBroadcaster.cpp.

bool TransformBroadcaster::enabled ( ) const

Definition at line 90 of file TransformBroadcaster.cpp.

void TransformBroadcaster::send ( )
protected

Definition at line 139 of file TransformBroadcaster.cpp.

void TransformBroadcaster::setChildFrame ( const QString &  frame)
slot

Definition at line 110 of file TransformBroadcaster.cpp.

void TransformBroadcaster::setDisabled ( bool  bDisabled = true)
slot

Definition at line 100 of file TransformBroadcaster.cpp.

void TransformBroadcaster::setEnabled ( bool  bEnabled = true)
slot

Definition at line 94 of file TransformBroadcaster.cpp.

void TransformBroadcaster::setParentFrame ( const QString &  frame)
slot

Definition at line 104 of file TransformBroadcaster.cpp.

void TransformBroadcaster::setPose ( const geometry_msgs::Pose pose)

Definition at line 76 of file TransformBroadcaster.cpp.

void TransformBroadcaster::setPosition ( const Eigen::Vector3d &  p)
slot

Definition at line 116 of file TransformBroadcaster.cpp.

void TransformBroadcaster::setPosition ( double  x,
double  y,
double  z 
)
slot

Definition at line 124 of file TransformBroadcaster.cpp.

void TransformBroadcaster::setQuaternion ( const Eigen::Quaterniond &  q)
slot

Definition at line 120 of file TransformBroadcaster.cpp.

void TransformBroadcaster::setQuaternion ( double  x,
double  y,
double  z,
double  w 
)
slot

Definition at line 131 of file TransformBroadcaster.cpp.

void TransformBroadcaster::setValue ( const geometry_msgs::TransformStamped &  tf)

Definition at line 70 of file TransformBroadcaster.cpp.

const geometry_msgs::TransformStamped & TransformBroadcaster::value ( ) const

Definition at line 66 of file TransformBroadcaster.cpp.

Member Data Documentation

std::shared_ptr<tf2_ros::StaticTransformBroadcaster> TransformBroadcaster::broadcaster_
private

Definition at line 74 of file TransformBroadcaster.h.

bool TransformBroadcaster::enabled_
private

Definition at line 77 of file TransformBroadcaster.h.

geometry_msgs::TransformStamped TransformBroadcaster::msg_
private

Definition at line 75 of file TransformBroadcaster.h.

bool TransformBroadcaster::valid_
private

Definition at line 76 of file TransformBroadcaster.h.


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


agni_tf_tools
Author(s): Robert Haschke
autogenerated on Tue Apr 13 2021 02:29:55