mars
ForceApplier.hpp
Go to the documentation of this file.
1 /* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2 
3 #ifndef SIMULATION_FORCE_APPLIER_TASK_HPP
4 #define SIMULATION_FORCE_APPLIER_TASK_HPP
5 
6 #include "Task.hpp"
7 #include "mars/ForceApplierBase.hpp"
8 #include <base/commands/Joints.hpp>
9 
10 namespace mars {
11 
12  class ForceApplier : public ForceApplierBase
13  {
14  friend class ForceApplierBase;
15 
16  protected:
17  unsigned long vehicle_id;
18  unsigned int amount_of_actuators;
19  std::vector <double> maximum_thruster_force;
20  std::vector <mars::utils::Vector> thruster_position;
21  std::vector <mars::utils::Vector> thruster_direction;
22  std::vector <mars::interfaces::sReal> thruster_force;
23  pthread_mutex_t node_update_mutex;
24 
25  unsigned int RATE;
26 
27  void update( double time );
28  base::commands::Joints command;
29 
30  public:
31  ForceApplier(std::string const& name = "mars::ForceApplier");
32  ForceApplier(std::string const& name, RTT::ExecutionEngine* engine);
33 
34  ~ForceApplier();
35 
36 
42  bool startHook();
43 
58  void updateHook();
59 
66  void errorHook();
67  };
68 }
69 
70 #endif
bool startHook()
The following lines are template definitions for the various state machine.
Definition: ForceApplier.cpp:29
void updateHook()
Definition: ForceApplier.cpp:73
std::vector< mars::utils::Vector > thruster_position
Definition: ForceApplier.hpp:20
Definition: ForceApplier.hpp:12
void update(double time)
Definition: ForceApplier.cpp:127
unsigned int amount_of_actuators
Definition: ForceApplier.hpp:18
std::vector< mars::utils::Vector > thruster_direction
Definition: ForceApplier.hpp:21
unsigned int RATE
Definition: ForceApplier.hpp:25
std::vector< double > maximum_thruster_force
Definition: ForceApplier.hpp:19
void errorHook()
Definition: ForceApplier.cpp:120
Definition: jointTypes.hpp:9
~ForceApplier()
Definition: ForceApplier.cpp:23
std::vector< mars::interfaces::sReal > thruster_force
Definition: ForceApplier.hpp:22
ForceApplier(std::string const &name="mars::ForceApplier")
Definition: ForceApplier.cpp:11
pthread_mutex_t node_update_mutex
Definition: ForceApplier.hpp:23
unsigned long vehicle_id
Definition: ForceApplier.hpp:17
friend class ForceApplierBase
Definition: ForceApplier.hpp:14
base::commands::Joints command
Definition: ForceApplier.hpp:28