vicon
Task.hpp
Go to the documentation of this file.
1 #ifndef VICON_TASK_TASK_HPP
2 #define VICON_TASK_TASK_HPP
3 
4 #include "vicon/TaskBase.hpp"
5 #include <ViconUncertainty.hpp>
6 #include <boost/shared_ptr.hpp>
7 
8 namespace vicon {
9  class TaskImpl;
10 
11  class Task : public TaskBase
12  {
13  friend class TaskBase;
14 
15  protected:
16  boost::shared_ptr<TaskImpl> impl;
17  boost::shared_ptr<vicon::ViconUncertainty <Eigen::Matrix4d> > uncertainty;
18 
19  virtual ::base::samples::RigidBodyState getZeroOrigin();
20 
21  public:
22  Task(std::string const& name = "vicon::Task");
23 
37  bool configureHook();
38 
44  bool startHook();
45 
62  void updateHook();
63 
64 
71  // void errorHook();
72 
76  void stopHook();
77 
82  // void cleanupHook();
83  };
84 }
85 
86 #endif
87 
virtual ::base::samples::RigidBodyState getZeroOrigin()
Definition: Task.cpp:21
Task(std::string const &name="vicon::Task")
Definition: Task.cpp:16
void updateHook()
Definition: Task.cpp:54
bool configureHook()
The following lines are template definitions for the various state machine.
Definition: Task.cpp:33
bool startHook()
Definition: Task.cpp:46
Definition: Task.cpp:8
boost::shared_ptr< TaskImpl > impl
Definition: Task.hpp:16
friend class TaskBase
Definition: Task.hpp:13
Definition: Task.hpp:11
void stopHook()
Definition: Task.cpp:115
boost::shared_ptr< vicon::ViconUncertainty< Eigen::Matrix4d > > uncertainty
Definition: Task.hpp:17