main.cpp
Go to the documentation of this file.
1 /*
2  * ar_marker_processor
3  * main.cpp
4  *
5  * LICENSE : BSD - https://raw.github.com/yujinrobot/yujin_ocs/license/LICENSE
6  *
7  * Created on: Apr 6, 2013
8  * Author: jorge
9  * Modified on: Dec, 2013
10  * Jihoon Lee
11  */
12 
14 
15 int main(int argc, char** argv)
16 {
17  ros::init(argc, argv, "ar_marker_processor");
18  yocs::ARPairTracking tracking;
19 
20  ros::NodeHandle pnh("~");
21 
22  int left_id, right_id;
23  double baseline, target_offset;
24  yocs_msgs::ARPair p;
25 
26  // Parameters
27  pnh.param("ar_pair_left_id", left_id, yocs::ARPairTrackingDefaultParams::AR_PAIR_LEFT_ID);
28  pnh.param("ar_pair_right_id", right_id, yocs::ARPairTrackingDefaultParams::AR_PAIR_RIGHT_ID);
29  pnh.param("ar_pair_baseline", baseline, yocs::ARPairTrackingDefaultParams::AR_PAIR_BASELINE);
30  pnh.param("ar_pair_target_pose_offset", target_offset, yocs::ARPairTrackingDefaultParams::AR_PAIR_TARGET_POSE_OFFSET);
31 
32  p.left_id = left_id;
33  p.right_id = right_id;
34  p.baseline = baseline;
35  p.target_offset = target_offset;
36  p.target_frame = "global_marker_3_target";
37 
38  tracking.addPair(p);
39 
40  ROS_INFO("AR Pair Tracking : initialised");
41  tracking.spin();
42 
43  return 0;
44 }
int main(int argc, char **argv)
Definition: main.cpp:15
const double AR_PAIR_TARGET_POSE_OFFSET
Definition: tracking.hpp:43
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
#define ROS_INFO(...)
bool param(const std::string &param_name, T &param_val, const T &default_val) const
void addPair(const yocs_msgs::ARPair &p)
Definition: tracking.cpp:38


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