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::InteractiveMarkerInit::ConstPtr &msg, bool enable_autocomplete_transparency=true)
 
void process (const visualization_msgs::InteractiveMarkerUpdate::ConstPtr &msg, bool enable_autocomplete_transparency=true)
 
 SingleClient (const std::string &server_id, tf2_ros::Buffer &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_
 
tf2_ros::Buffertf_
 
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

◆ InitMessageContext

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

Definition at line 122 of file single_client.h.

◆ M_InitMessageContext

Definition at line 126 of file single_client.h.

◆ M_UpdateMessageContext

Definition at line 125 of file single_client.h.

◆ UpdateMessageContext

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

Definition at line 121 of file single_client.h.

Member Enumeration Documentation

◆ StateT

Enumerator
INIT 
RECEIVING 
TF_ERROR 

Definition at line 93 of file single_client.h.

Constructor & Destructor Documentation

◆ SingleClient()

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

Definition at line 43 of file single_client.cpp.

◆ ~SingleClient()

interactive_markers::SingleClient::~SingleClient ( )

Definition at line 61 of file single_client.cpp.

Member Function Documentation

◆ checkInitFinished()

void interactive_markers::SingleClient::checkInitFinished ( )
private

Definition at line 190 of file single_client.cpp.

◆ checkKeepAlive()

void interactive_markers::SingleClient::checkKeepAlive ( )
private

Definition at line 173 of file single_client.cpp.

◆ errorReset()

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

Definition at line 281 of file single_client.cpp.

◆ isInitialized()

bool interactive_markers::SingleClient::isInitialized ( )

Definition at line 309 of file single_client.cpp.

◆ process() [1/2]

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.

◆ process() [2/2]

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.

◆ pushUpdates()

void interactive_markers::SingleClient::pushUpdates ( )
private

Definition at line 295 of file single_client.cpp.

◆ transformInitMsgs()

void interactive_markers::SingleClient::transformInitMsgs ( )
private

Definition at line 235 of file single_client.cpp.

◆ transformUpdateMsgs()

void interactive_markers::SingleClient::transformUpdateMsgs ( )
private

Definition at line 256 of file single_client.cpp.

◆ update()

void interactive_markers::SingleClient::update ( )

Definition at line 143 of file single_client.cpp.

Member Data Documentation

◆ callbacks_

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

Definition at line 137 of file single_client.h.

◆ first_update_seq_num_

uint64_t interactive_markers::SingleClient::first_update_seq_num_
private

Definition at line 111 of file single_client.h.

◆ init_queue_

M_InitMessageContext interactive_markers::SingleClient::init_queue_
private

Definition at line 132 of file single_client.h.

◆ last_update_seq_num_

uint64_t interactive_markers::SingleClient::last_update_seq_num_
private

Definition at line 114 of file single_client.h.

◆ last_update_time_

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

Definition at line 115 of file single_client.h.

◆ server_id_

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

Definition at line 139 of file single_client.h.

◆ state_

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

Definition at line 100 of file single_client.h.

◆ target_frame_

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

Definition at line 135 of file single_client.h.

◆ tf_

tf2_ros::Buffer& interactive_markers::SingleClient::tf_
private

Definition at line 134 of file single_client.h.

◆ update_queue_

M_UpdateMessageContext interactive_markers::SingleClient::update_queue_
private

Definition at line 129 of file single_client.h.

◆ update_time_ok_

bool interactive_markers::SingleClient::update_time_ok_
private

Definition at line 119 of file single_client.h.

◆ warn_keepalive_

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, William Woodall
autogenerated on Fri Oct 27 2023 02:31:54