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

#include <mb_publisher.h>

Inheritance diagram for MBPublisher:
Inheritance graph
[legend]

Public Member Functions

virtual bool consume (MasterBoardData_V1_X &data)
 
virtual bool consume (MasterBoardData_V3_0__1 &data)
 
virtual bool consume (MasterBoardData_V3_2 &data)
 
virtual bool consume (RobotModeData_V1_X &data)
 
virtual bool consume (RobotModeData_V3_0__1 &data)
 
virtual bool consume (RobotModeData_V3_2 &data)
 
 MBPublisher ()
 
virtual void setupConsumer ()
 
virtual void stopConsumer ()
 
virtual void teardownConsumer ()
 
- Public Member Functions inherited from URStatePacketConsumer
virtual bool consume (shared_ptr< StatePacket > packet)
 
- Public Member Functions inherited from IConsumer< StatePacket >
virtual void onTimeout ()
 

Private Member Functions

template<size_t N>
void appendDigital (std::vector< ur_msgs::Digital > &vec, std::bitset< N > bits)
 
void publishIOStates (ur_msgs::IOStates &io_msg, SharedMasterBoardData &data)
 
void publishMasterboardData (ur_msgs::MasterboardDataMsg &msg, const SharedMasterBoardData &data) const
 
void publishMasterboardData (const MasterBoardData_V1_X &data) const
 
void publishMasterboardData (const MasterBoardData_V3_0__1 &data) const
 
void publishRobotModeData (ur_msgs::RobotModeDataMsg &msg, const SharedRobotModeData &data) const
 
void publishRobotModeData (const RobotModeData_V1_X &data) const
 
void publishRobotModeData (const RobotModeData_V3_0__1 &data) const
 
void publishRobotStatus (industrial_msgs::RobotStatus &status, const SharedRobotModeData &data) const
 
void publishRobotStatus (const RobotModeData_V1_X &data) const
 
void publishRobotStatus (const RobotModeData_V3_0__1 &data) const
 

Private Attributes

Publisher io_pub_
 
Publisher masterboard_state_pub_
 
NodeHandle nh_
 
Publisher robot_mode_state_pub_
 
Publisher status_pub_
 

Detailed Description

Definition at line 33 of file mb_publisher.h.

Constructor & Destructor Documentation

MBPublisher::MBPublisher ( )
inline

Definition at line 71 of file mb_publisher.h.

Member Function Documentation

template<size_t N>
void MBPublisher::appendDigital ( std::vector< ur_msgs::Digital > &  vec,
std::bitset< N >  bits 
)
inlineprivate

Definition at line 43 of file mb_publisher.h.

bool MBPublisher::consume ( MasterBoardData_V1_X data)
virtual

Implements URStatePacketConsumer.

Definition at line 185 of file mb_publisher.cpp.

bool MBPublisher::consume ( MasterBoardData_V3_0__1 data)
virtual

Implements URStatePacketConsumer.

Definition at line 197 of file mb_publisher.cpp.

bool MBPublisher::consume ( MasterBoardData_V3_2 data)
virtual

Implements URStatePacketConsumer.

Definition at line 209 of file mb_publisher.cpp.

bool MBPublisher::consume ( RobotModeData_V1_X data)
virtual

Implements URStatePacketConsumer.

Definition at line 215 of file mb_publisher.cpp.

bool MBPublisher::consume ( RobotModeData_V3_0__1 data)
virtual

Implements URStatePacketConsumer.

Definition at line 222 of file mb_publisher.cpp.

bool MBPublisher::consume ( RobotModeData_V3_2 data)
virtual

Implements URStatePacketConsumer.

Definition at line 229 of file mb_publisher.cpp.

void MBPublisher::publishIOStates ( ur_msgs::IOStates &  io_msg,
SharedMasterBoardData data 
)
private

Definition at line 29 of file mb_publisher.cpp.

void MBPublisher::publishMasterboardData ( ur_msgs::MasterboardDataMsg &  msg,
const SharedMasterBoardData data 
) const
private

Definition at line 102 of file mb_publisher.cpp.

void MBPublisher::publishMasterboardData ( const MasterBoardData_V1_X data) const
private

Definition at line 121 of file mb_publisher.cpp.

void MBPublisher::publishMasterboardData ( const MasterBoardData_V3_0__1 data) const
private

Definition at line 138 of file mb_publisher.cpp.

void MBPublisher::publishRobotModeData ( ur_msgs::RobotModeDataMsg &  msg,
const SharedRobotModeData data 
) const
private

Definition at line 155 of file mb_publisher.cpp.

void MBPublisher::publishRobotModeData ( const RobotModeData_V1_X data) const
private

Definition at line 171 of file mb_publisher.cpp.

void MBPublisher::publishRobotModeData ( const RobotModeData_V3_0__1 data) const
private

Definition at line 177 of file mb_publisher.cpp.

void MBPublisher::publishRobotStatus ( industrial_msgs::RobotStatus &  status,
const SharedRobotModeData data 
) const
private

Definition at line 39 of file mb_publisher.cpp.

void MBPublisher::publishRobotStatus ( const RobotModeData_V1_X data) const
private

Definition at line 71 of file mb_publisher.cpp.

void MBPublisher::publishRobotStatus ( const RobotModeData_V3_0__1 data) const
private

Definition at line 87 of file mb_publisher.cpp.

virtual void MBPublisher::setupConsumer ( )
inlinevirtual

Reimplemented from IConsumer< StatePacket >.

Definition at line 87 of file mb_publisher.h.

virtual void MBPublisher::stopConsumer ( )
inlinevirtual

Reimplemented from IConsumer< StatePacket >.

Definition at line 93 of file mb_publisher.h.

virtual void MBPublisher::teardownConsumer ( )
inlinevirtual

Reimplemented from IConsumer< StatePacket >.

Definition at line 90 of file mb_publisher.h.

Member Data Documentation

Publisher MBPublisher::io_pub_
private

Definition at line 37 of file mb_publisher.h.

Publisher MBPublisher::masterboard_state_pub_
private

Definition at line 39 of file mb_publisher.h.

NodeHandle MBPublisher::nh_
private

Definition at line 36 of file mb_publisher.h.

Publisher MBPublisher::robot_mode_state_pub_
private

Definition at line 40 of file mb_publisher.h.

Publisher MBPublisher::status_pub_
private

Definition at line 38 of file mb_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