Go to the documentation of this file.
32 #ifndef INTERACTIVE_MARKER_CLIENT
33 #define INTERACTIVE_MARKER_CLIENT
35 #include <boost/shared_ptr.hpp>
36 #include <boost/thread/mutex.hpp>
37 #include <boost/thread/recursive_mutex.hpp>
38 #include <boost/function.hpp>
39 #include <boost/unordered_map.hpp>
48 #include <visualization_msgs/InteractiveMarkerInit.h>
49 #include <visualization_msgs/InteractiveMarkerUpdate.h>
80 typedef visualization_msgs::InteractiveMarkerInitConstPtr
InitConstPtr;
93 const std::string &topic_ns =
"" );
137 template<
class MsgConstPtrT>
138 void process(
const MsgConstPtrT& msg );
162 void statusCb(
StatusT status,
const std::string& server_id,
const std::string& msg );
INTERACTIVE_MARKERS_PUBLIC void setResetCb(const ResetCallback &cb)
Set callback for resetting one server connection.
boost::function< void(StatusT, const std::string &, const std::string &) > StatusCallback
StatusCallback status_cb_
void statusCb(StatusT s, const std::string &id, const std::string &m) const
INTERACTIVE_MARKERS_PUBLIC void setEnableAutocompleteTransparency(bool enable)
boost::shared_ptr< SingleClient > SingleClientPtr
visualization_msgs::InteractiveMarkerInitConstPtr InitConstPtr
bool enable_autocomplete_transparency_
UpdateCallback update_cb_
INTERACTIVE_MARKERS_PUBLIC void setInitCb(const InitCallback &cb)
Set callback for init messages.
void processInit(const InitConstPtr &msg)
boost::function< void(const UpdateConstPtr &) > UpdateCallback
void setInitCb(InitCallback init_cb)
INTERACTIVE_MARKERS_PUBLIC ~InteractiveMarkerClient()
Will cause a 'reset' call for all server ids.
INTERACTIVE_MARKERS_PUBLIC void setTargetFrame(std::string target_frame)
Change the target frame and reset the connection.
void setStatusCb(StatusCallback status_cb)
INTERACTIVE_MARKERS_PUBLIC void subscribe(std::string topic_ns)
Subscribe to the topics topic_ns/update and topic_ns/init.
#define INTERACTIVE_MARKERS_PUBLIC
void resetCb(const std::string &s) const
INTERACTIVE_MARKERS_PUBLIC void update()
Update tf info, call callbacks.
boost::recursive_mutex publisher_contexts_mutex_
void updateCb(const UpdateConstPtr &u) const
boost::function< void(const std::string &) > ResetCallback
StatusCallback status_cb_
void setResetCb(ResetCallback reset_cb)
INTERACTIVE_MARKERS_PUBLIC void setUpdateCb(const UpdateCallback &cb)
Set callback for update messages.
void initCb(const InitConstPtr &i) const
INTERACTIVE_MARKERS_PUBLIC void setStatusCb(const StatusCallback &cb)
Set callback for status updates.
void statusCb(StatusT status, const std::string &server_id, const std::string &msg)
INTERACTIVE_MARKERS_PUBLIC void shutdown()
Unsubscribe, clear queues & call reset callbacks.
void setUpdateCb(UpdateCallback update_cb)
void process(const MsgConstPtrT &msg)
boost::function< void(const InitConstPtr &) > InitCallback
INTERACTIVE_MARKERS_PUBLIC InteractiveMarkerClient(tf2_ros::Buffer &tf, const std::string &target_frame="", const std::string &topic_ns="")
visualization_msgs::InteractiveMarkerUpdateConstPtr UpdateConstPtr
ros::Subscriber init_sub_
ros::Subscriber update_sub_
uint32_t last_num_publishers_
boost::unordered_map< std::string, SingleClientPtr > M_SingleClient
M_SingleClient publisher_contexts_
std::string target_frame_
StateMachine< StateT > state_
void processUpdate(const UpdateConstPtr &msg)
interactive_markers
Author(s): David Gossow, William Woodall
autogenerated on Fri Oct 27 2023 02:31:54