Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
interactive_markers::SingleClient Class Reference

#include <single_client.h>

Public Member Functions

bool isInitialized ()
 
void process (const visualization_msgs::InteractiveMarkerUpdate::ConstPtr &msg, bool enable_autocomplete_transparency=true)
 
void process (const visualization_msgs::InteractiveMarkerInit::ConstPtr &msg, bool enable_autocomplete_transparency=true)
 
 SingleClient (const std::string &server_id, tf::Transformer &tf, const std::string &target_frame, const InteractiveMarkerClient::CbCollection &callbacks)
 
void update ()
 
 ~SingleClient ()
 

Private Types

typedef MessageContext< visualization_msgs::InteractiveMarkerInit > InitMessageContext
 
typedef std::deque< InitMessageContextM_InitMessageContext
 
typedef std::deque< UpdateMessageContextM_UpdateMessageContext
 
enum  StateT { INIT, RECEIVING, TF_ERROR }
 
typedef MessageContext< visualization_msgs::InteractiveMarkerUpdate > UpdateMessageContext
 

Private Member Functions

void checkInitFinished ()
 
void checkKeepAlive ()
 
void errorReset (std::string error_msg)
 
void pushUpdates ()
 
void transformInitMsgs ()
 
void transformUpdateMsgs ()
 

Private Attributes

const InteractiveMarkerClient::CbCollectioncallbacks_
 
uint64_t first_update_seq_num_
 
M_InitMessageContext init_queue_
 
uint64_t last_update_seq_num_
 
ros::Time last_update_time_
 
std::string server_id_
 
StateMachine< StateTstate_
 
std::string target_frame_
 
tf::Transformertf_
 
M_UpdateMessageContext update_queue_
 
bool update_time_ok_
 
bool warn_keepalive_
 

Detailed Description

Definition at line 62 of file single_client.h.

Member Typedef Documentation

typedef MessageContext<visualization_msgs::InteractiveMarkerInit> interactive_markers::SingleClient::InitMessageContext
private

Definition at line 122 of file single_client.h.

Definition at line 126 of file single_client.h.

Definition at line 125 of file single_client.h.

typedef MessageContext<visualization_msgs::InteractiveMarkerUpdate> interactive_markers::SingleClient::UpdateMessageContext
private

Definition at line 121 of file single_client.h.

Member Enumeration Documentation

Enumerator
INIT 
RECEIVING 
TF_ERROR 

Definition at line 93 of file single_client.h.

Constructor & Destructor Documentation

interactive_markers::SingleClient::SingleClient ( const std::string &  server_id,
tf::Transformer tf,
const std::string &  target_frame,
const InteractiveMarkerClient::CbCollection callbacks 
)

Definition at line 43 of file single_client.cpp.

interactive_markers::SingleClient::~SingleClient ( )

Definition at line 61 of file single_client.cpp.

Member Function Documentation

void interactive_markers::SingleClient::checkInitFinished ( )
private

Definition at line 190 of file single_client.cpp.

void interactive_markers::SingleClient::checkKeepAlive ( )
private

Definition at line 173 of file single_client.cpp.

void interactive_markers::SingleClient::errorReset ( std::string  error_msg)
private

Definition at line 280 of file single_client.cpp.

bool interactive_markers::SingleClient::isInitialized ( )

Definition at line 308 of file single_client.cpp.

void interactive_markers::SingleClient::process ( const visualization_msgs::InteractiveMarkerUpdate::ConstPtr &  msg,
bool  enable_autocomplete_transparency = true 
)

Definition at line 88 of file single_client.cpp.

void interactive_markers::SingleClient::process ( const visualization_msgs::InteractiveMarkerInit::ConstPtr &  msg,
bool  enable_autocomplete_transparency = true 
)

Definition at line 66 of file single_client.cpp.

void interactive_markers::SingleClient::pushUpdates ( )
private

Definition at line 294 of file single_client.cpp.

void interactive_markers::SingleClient::transformInitMsgs ( )
private

Definition at line 234 of file single_client.cpp.

void interactive_markers::SingleClient::transformUpdateMsgs ( )
private

Definition at line 255 of file single_client.cpp.

void interactive_markers::SingleClient::update ( )

Definition at line 143 of file single_client.cpp.

Member Data Documentation

const InteractiveMarkerClient::CbCollection& interactive_markers::SingleClient::callbacks_
private

Definition at line 137 of file single_client.h.

uint64_t interactive_markers::SingleClient::first_update_seq_num_
private

Definition at line 111 of file single_client.h.

M_InitMessageContext interactive_markers::SingleClient::init_queue_
private

Definition at line 132 of file single_client.h.

uint64_t interactive_markers::SingleClient::last_update_seq_num_
private

Definition at line 114 of file single_client.h.

ros::Time interactive_markers::SingleClient::last_update_time_
private

Definition at line 115 of file single_client.h.

std::string interactive_markers::SingleClient::server_id_
private

Definition at line 139 of file single_client.h.

StateMachine<StateT> interactive_markers::SingleClient::state_
private

Definition at line 100 of file single_client.h.

std::string interactive_markers::SingleClient::target_frame_
private

Definition at line 135 of file single_client.h.

tf::Transformer& interactive_markers::SingleClient::tf_
private

Definition at line 134 of file single_client.h.

M_UpdateMessageContext interactive_markers::SingleClient::update_queue_
private

Definition at line 129 of file single_client.h.

bool interactive_markers::SingleClient::update_time_ok_
private

Definition at line 119 of file single_client.h.

bool interactive_markers::SingleClient::warn_keepalive_
private

Definition at line 141 of file single_client.h.


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


interactive_markers
Author(s): David Gossow
autogenerated on Sun Feb 3 2019 03:24:09