Public Member Functions | Private Member Functions | Private Attributes | List of all members
RTPublisher Class Reference

#include <rt_publisher.h>

Inheritance diagram for RTPublisher:
Inheritance graph
[legend]

Public Member Functions

virtual bool consume (RTState_V1_6__7 &state)
 
virtual bool consume (RTState_V1_8 &state)
 
virtual bool consume (RTState_V3_0__1 &state)
 
virtual bool consume (RTState_V3_2__3 &state)
 
 RTPublisher (std::string &joint_prefix, std::string &base_frame, std::string &tool_frame, bool temp_only=false)
 
virtual void setupConsumer ()
 
virtual void stopConsumer ()
 
virtual void teardownConsumer ()
 
- Public Member Functions inherited from URRTPacketConsumer
virtual bool consume (shared_ptr< RTPacket > packet)
 
- Public Member Functions inherited from IConsumer< RTPacket >
virtual void onTimeout ()
 

Private Member Functions

bool publish (RTShared &packet)
 
bool publishJoints (RTShared &packet, Time &t)
 
bool publishTemperature (RTShared &packet, Time &t)
 
bool publishTool (RTShared &packet, Time &t)
 
bool publishTransform (RTShared &packet, Time &t)
 
bool publishWrench (RTShared &packet, Time &t)
 

Private Attributes

std::string base_frame_
 
std::vector< std::string > joint_names_
 
Publisher joint_pub_
 
Publisher joint_temperature_pub_
 
std::vector< std::string > link_names_
 
NodeHandle nh_
 
bool temp_only_
 
std::string tool_frame_
 
Publisher tool_vel_pub_
 
TransformBroadcaster transform_broadcaster_
 
Publisher wrench_pub_
 

Detailed Description

Definition at line 43 of file rt_publisher.h.

Constructor & Destructor Documentation

RTPublisher::RTPublisher ( std::string &  joint_prefix,
std::string &  base_frame,
std::string &  tool_frame,
bool  temp_only = false 
)
inline

Definition at line 67 of file rt_publisher.h.

Member Function Documentation

bool RTPublisher::consume ( RTState_V1_6__7 state)
virtual

Implements URRTPacketConsumer.

Definition at line 127 of file rt_publisher.cpp.

bool RTPublisher::consume ( RTState_V1_8 state)
virtual

Implements URRTPacketConsumer.

Definition at line 131 of file rt_publisher.cpp.

bool RTPublisher::consume ( RTState_V3_0__1 state)
virtual

Implements URRTPacketConsumer.

Definition at line 135 of file rt_publisher.cpp.

bool RTPublisher::consume ( RTState_V3_2__3 state)
virtual

Implements URRTPacketConsumer.

Definition at line 139 of file rt_publisher.cpp.

bool RTPublisher::publish ( RTShared packet)
private

Definition at line 115 of file rt_publisher.cpp.

bool RTPublisher::publishJoints ( RTShared packet,
Time t 
)
private

Definition at line 21 of file rt_publisher.cpp.

bool RTPublisher::publishTemperature ( RTShared packet,
Time t 
)
private

Definition at line 97 of file rt_publisher.cpp.

bool RTPublisher::publishTool ( RTShared packet,
Time t 
)
private

Definition at line 54 of file rt_publisher.cpp.

bool RTPublisher::publishTransform ( RTShared packet,
Time t 
)
private

Definition at line 70 of file rt_publisher.cpp.

bool RTPublisher::publishWrench ( RTShared packet,
Time t 
)
private

Definition at line 36 of file rt_publisher.cpp.

virtual void RTPublisher::setupConsumer ( )
inlinevirtual

Reimplemented from IConsumer< RTPacket >.

Definition at line 91 of file rt_publisher.h.

virtual void RTPublisher::stopConsumer ( )
inlinevirtual

Reimplemented from IConsumer< RTPacket >.

Definition at line 97 of file rt_publisher.h.

virtual void RTPublisher::teardownConsumer ( )
inlinevirtual

Reimplemented from IConsumer< RTPacket >.

Definition at line 94 of file rt_publisher.h.

Member Data Documentation

std::string RTPublisher::base_frame_
private

Definition at line 54 of file rt_publisher.h.

std::vector<std::string> RTPublisher::joint_names_
private

Definition at line 52 of file rt_publisher.h.

Publisher RTPublisher::joint_pub_
private

Definition at line 47 of file rt_publisher.h.

Publisher RTPublisher::joint_temperature_pub_
private

Definition at line 50 of file rt_publisher.h.

std::vector<std::string> RTPublisher::link_names_
private

Definition at line 53 of file rt_publisher.h.

NodeHandle RTPublisher::nh_
private

Definition at line 46 of file rt_publisher.h.

bool RTPublisher::temp_only_
private

Definition at line 56 of file rt_publisher.h.

std::string RTPublisher::tool_frame_
private

Definition at line 55 of file rt_publisher.h.

Publisher RTPublisher::tool_vel_pub_
private

Definition at line 49 of file rt_publisher.h.

TransformBroadcaster RTPublisher::transform_broadcaster_
private

Definition at line 51 of file rt_publisher.h.

Publisher RTPublisher::wrench_pub_
private

Definition at line 48 of file rt_publisher.h.


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


ur_modern_driver
Author(s): Thomas Timm Andersen, Simon Rasmussen
autogenerated on Fri Jun 26 2020 03:37:01