Main Page
Namespaces
Classes
Files
File List
File Members
src
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
13
#include "
yocs_ar_pair_tracking/tracking.hpp
"
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
}
ros::NodeHandle
yocs::ARPairTrackingDefaultParams::AR_PAIR_BASELINE
const double AR_PAIR_BASELINE
Definition:
tracking.hpp:42
yocs::ARPairTrackingDefaultParams::AR_PAIR_RIGHT_ID
const int AR_PAIR_RIGHT_ID
Definition:
tracking.hpp:41
main
int main(int argc, char **argv)
Definition:
main.cpp:15
yocs::ARPairTrackingDefaultParams::AR_PAIR_LEFT_ID
const int AR_PAIR_LEFT_ID
Definition:
tracking.hpp:40
yocs::ARPairTrackingDefaultParams::AR_PAIR_TARGET_POSE_OFFSET
const double AR_PAIR_TARGET_POSE_OFFSET
Definition:
tracking.hpp:43
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
yocs::ARPairTracking
Definition:
tracking.hpp:60
ROS_INFO
#define ROS_INFO(...)
yocs::ARMarkerTracking::spin
void spin()
ros::NodeHandle::param
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
yocs::ARPairTracking::addPair
void addPair(const yocs_msgs::ARPair &p)
Definition:
tracking.cpp:38
tracking.hpp
yocs_ar_pair_tracking
Author(s): Daniel Stonier, Jihoon Lee, Jorge Santos Simon
autogenerated on Mon Jun 10 2019 15:53:47