#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< 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_ |
tf2_ros::Buffer & | tf_ |
M_UpdateMessageContext | update_queue_ |
bool | update_time_ok_ |
bool | warn_keepalive_ |
Definition at line 62 of file single_client.h.
|
private |
Definition at line 122 of file single_client.h.
|
private |
Definition at line 126 of file single_client.h.
|
private |
Definition at line 125 of file single_client.h.
|
private |
Definition at line 121 of file single_client.h.
|
private |
Enumerator | |
---|---|
INIT | |
RECEIVING | |
TF_ERROR |
Definition at line 93 of file single_client.h.
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.
interactive_markers::SingleClient::~SingleClient | ( | ) |
Definition at line 61 of file single_client.cpp.
|
private |
Definition at line 190 of file single_client.cpp.
|
private |
Definition at line 173 of file single_client.cpp.
|
private |
Definition at line 281 of file single_client.cpp.
bool interactive_markers::SingleClient::isInitialized | ( | ) |
Definition at line 309 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::process | ( | const visualization_msgs::InteractiveMarkerUpdate::ConstPtr & | msg, |
bool | enable_autocomplete_transparency = true |
||
) |
Definition at line 88 of file single_client.cpp.
|
private |
Definition at line 295 of file single_client.cpp.
|
private |
Definition at line 235 of file single_client.cpp.
|
private |
Definition at line 256 of file single_client.cpp.
void interactive_markers::SingleClient::update | ( | ) |
Definition at line 143 of file single_client.cpp.
|
private |
Definition at line 137 of file single_client.h.
|
private |
Definition at line 111 of file single_client.h.
|
private |
Definition at line 132 of file single_client.h.
|
private |
Definition at line 114 of file single_client.h.
|
private |
Definition at line 115 of file single_client.h.
|
private |
Definition at line 139 of file single_client.h.
|
private |
Definition at line 100 of file single_client.h.
|
private |
Definition at line 135 of file single_client.h.
|
private |
Definition at line 134 of file single_client.h.
|
private |
Definition at line 129 of file single_client.h.
|
private |
Definition at line 119 of file single_client.h.
|
private |
Definition at line 141 of file single_client.h.