#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 < InitMessageContext > | M_InitMessageContext |
typedef std::deque < UpdateMessageContext > | M_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::CbCollection & | callbacks_ |
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< StateT > | state_ |
std::string | target_frame_ |
tf::Transformer & | tf_ |
M_UpdateMessageContext | update_queue_ |
bool | update_time_ok_ |
bool | warn_keepalive_ |
Definition at line 62 of file single_client.h.
typedef MessageContext<visualization_msgs::InteractiveMarkerInit> interactive_markers::SingleClient::InitMessageContext [private] |
Definition at line 122 of file single_client.h.
typedef std::deque< InitMessageContext > interactive_markers::SingleClient::M_InitMessageContext [private] |
Definition at line 126 of file single_client.h.
typedef std::deque< UpdateMessageContext > interactive_markers::SingleClient::M_UpdateMessageContext [private] |
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.
enum interactive_markers::SingleClient::StateT [private] |
Definition at line 93 of file single_client.h.
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.
Definition at line 61 of file single_client.cpp.
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.
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.
Definition at line 143 of file single_client.cpp.
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.
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.
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.
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.
Definition at line 134 of file single_client.h.
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.