client.hpp
Go to the documentation of this file.
1 
2 
3 #ifndef _YOCS_AR_PAIR_TRACKING_CLIENT_HPP_
4 #define _YOCS_AR_PAIR_TRACKING_CLIENT_HPP_
5 
6 #include <ros/ros.h>
7 
8 #include <tf/tf.h>
11 
12 #include <ar_track_alvar_msgs/AlvarMarkers.h>
13 #include <yocs_msgs/ARPairList.h>
16 
17 
18 namespace yocs {
19 
21  public:
24  void globalMarkersCB(const ar_track_alvar_msgs::AlvarMarkers::ConstPtr& msg);
25  void broadcastMarkersTF();
26  protected:
27  void createMirrorMarkers();
28  void createTargets();
29  void notifyARPairTracker();
30  void publishMarkerTFs(const std::string prefix, const ar_track_alvar_msgs::AlvarMarkers& markers);
31  void publishTargetTFs(const std::string prefix, const ar_track_alvar_msgs::AlvarMarkers& markers);
32  private:
33  ar_track_alvar_msgs::AlvarMarkers global_markers_, global_markers_mirrors_;
36 
40 
41  std::string global_frame_;
42  std::string global_marker_prefix_;
43  std::string target_frame_postfix_;
44  double baseline_;
46 };
47 }
48 
49 #endif
void globalMarkersCB(const ar_track_alvar_msgs::AlvarMarkers::ConstPtr &msg)
Definition: client.cpp:27
ros::Publisher pub_update_ar_pair_
Definition: client.hpp:35
std::string target_frame_postfix_
Definition: client.hpp:43
void publishMarkerTFs(const std::string prefix, const ar_track_alvar_msgs::AlvarMarkers &markers)
Definition: client.cpp:121
ar_track_alvar_msgs::AlvarMarkers global_markers_mirrors_
Definition: client.hpp:33
std::string global_frame_
Definition: client.hpp:41
void publishTargetTFs(const std::string prefix, const ar_track_alvar_msgs::AlvarMarkers &markers)
Definition: client.cpp:101
ar_track_alvar_msgs::AlvarMarkers global_markers_
Definition: client.hpp:33
std::string global_marker_prefix_
Definition: client.hpp:42
tf::TransformListener tf_listener_
Definition: client.hpp:37
tf::TransformBroadcaster tf_brcaster_
Definition: client.hpp:38
ros::Subscriber sub_global_marker_
Definition: client.hpp:34


yocs_ar_pair_tracking
Author(s): Daniel Stonier, Jihoon Lee, Jorge Santos Simon
autogenerated on Mon Jun 10 2019 15:53:47