52 namespace mira {
namespace robot {
63 template<
typename Reflector>
68 r.method(
"setPan", &
IPTU::setPan,
this,
"Set the pan angle.",
69 "pan",
"pan angle", 0.);
70 r.method(
"getPan", &
IPTU::getPan,
this,
"Get the current pan angle.");
71 r.method(
"addPan", &
IPTU::addPan,
this,
"Adds value to current pan angle.",
72 "dPan",
"pan angle increment", 0.);
74 r.method(
"setTilt", &
IPTU::setTilt,
this,
"Set the tilt angle.",
75 "tilt",
"tilt angle", 0.);
76 r.method(
"getTilt", &
IPTU::getTilt,
this,
"Get the current tilt angle.");
77 r.method(
"addTilt", &
IPTU::addTilt,
this,
"Adds value to current tilt angle.",
78 "dTilt",
"tilt angle increment", 0.);
81 "Moves the PTU to look at the specified target in the given target frame.",
82 "target",
"target position", Eigen::Vector3f(1., 2., 3.),
83 "targetFrame",
"transformation frame id for target position",
"/maps/MapFrame",
84 "tolerance",
"tolerance in deg. If difference between current view direction " 85 "and desired direction is closer than this threshold, the PTU is not moved.", 30);
87 r.method(
"halt", &
IPTU::halt,
this,
"Stops all movement.");
97 virtual void setPan(
double pan) = 0;
98 virtual double getPan() = 0;
99 virtual void addPan(
double dPan) = 0;
101 virtual void setTilt(
double tilt) = 0;
103 virtual void addTilt(
double dTilt) = 0;
105 virtual void lookAt(
const Eigen::Vector3f& target,
const std::string& targetFrame,
double tol) = 0;
107 virtual void halt() = 0;
virtual void addTilt(double dTilt)=0
An interface class for objects with a PTU.
Definition: IPTU.h:57
virtual void setTilt(double tilt)=0
virtual void setPan(double pan)=0
virtual ~IPTU()
Definition: IPTU.h:90
virtual double getPan()=0
virtual void lookAt(const Eigen::Vector3f &target, const std::string &targetFrame, double tol)=0
void reflect(Reflector &r)
Definition: IPTU.h:64
virtual double getTilt()=0
virtual void addPan(double dPan)=0