odometry
LatOdom.hpp
Go to the documentation of this file.
1 /* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2 
3 #ifndef ODOMETRY_SKIDLATERAL_TASK_HPP
4 #define ODOMETRY_SKIDLATERAL_TASK_HPP
5 
6 #include "odometry/LatOdomBase.hpp"
7 #include <odometry/Odometry.hpp>
8 
9 namespace odometry{
10 
25  class LatOdom : public LatOdomBase
26  {
27  friend class LatOdomBase;
28  protected:
29 
31  boost::shared_ptr<odometry::SkidOdometry> odometry;
32 
33  /* time_stamp of last measurement */
34  base::Time prev_ts;
35 
36  base::samples::Joints currentActuatorSample;
39 
40 
41  std::vector<std::string> leftWheelNames;
42  std::vector<std::string> rightWheelNames;
43  std::vector<std::string> leftSteeringNames;
44  std::vector<std::string> rightSteeringNames;
45 
46  void printInvalidSample();
47  double wheelRadius;
48 
49  virtual void actuator_samplesTransformerCallback(const base::Time &ts, const ::base::samples::Joints &actuator_samples_sample);
50 
51  public:
56  LatOdom(std::string const& name = "odometry::LatOdom");
57 
63  LatOdom(std::string const& name, RTT::ExecutionEngine* engine);
64 
67  ~LatOdom();
68 
83  bool configureHook();
84 
90  bool startHook();
91 
106  void updateHook();
107 
114  void errorHook();
115 
119  void stopHook();
120 
125  void cleanupHook();
126  };
127 }
128 
129 #endif
130 
The task context provides and requires services. It uses an ExecutionEngine to perform its functions...
Definition: LatOdom.hpp:25
friend class LatOdomBase
Definition: LatOdom.hpp:27
void cleanupHook()
Definition: LatOdom.cpp:119
double wheelRadius
Definition: LatOdom.hpp:47
base::samples::Joints currentActuatorSample
Definition: LatOdom.hpp:36
std::vector< std::string > leftSteeringNames
Definition: LatOdom.hpp:43
void updateHook()
Definition: LatOdom.cpp:107
bool configureHook()
The following lines are template definitions for the various state machine.
Definition: LatOdom.cpp:75
bool actuatorUpdated
Definition: LatOdom.hpp:37
std::vector< std::string > leftWheelNames
Definition: LatOdom.hpp:41
void errorHook()
Definition: LatOdom.cpp:111
boost::shared_ptr< odometry::SkidOdometry > odometry
Definition: LatOdom.hpp:31
virtual void actuator_samplesTransformerCallback(const base::Time &ts, const ::base::samples::Joints &actuator_samples_sample)
Definition: LatOdom.cpp:38
bool gotSteeringActuatorReading
Definition: LatOdom.hpp:38
~LatOdom()
Definition: LatOdom.cpp:18
bool startHook()
Definition: LatOdom.cpp:97
void printInvalidSample()
Definition: LatOdom.cpp:22
std::vector< std::string > rightSteeringNames
Definition: LatOdom.hpp:44
LatOdom(std::string const &name="odometry::LatOdom")
Definition: LatOdom.cpp:8
base::Time prev_ts
Definition: LatOdom.hpp:34
Definition: ContactPointTask.hpp:8
void stopHook()
Definition: LatOdom.cpp:115
std::vector< std::string > rightWheelNames
Definition: LatOdom.hpp:42