orogen/ctrl_lib
CartesianRadialPotentialFields.hpp
Go to the documentation of this file.
1/* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2
3#ifndef CTRL_LIB_CARTESIANRADIALPOTENTIALFIELDS_TASK_HPP
4#define CTRL_LIB_CARTESIANRADIALPOTENTIALFIELDS_TASK_HPP
5
6#include "ctrl_lib/CartesianRadialPotentialFieldsBase.hpp"
7#include <base/samples/RigidBodyStateSE3.hpp>
8#include <wbc/controllers/PotentialFieldsController.hpp>
9
10namespace ctrl_lib {
11
12class PotentialFieldsController;
13
16class CartesianRadialPotentialFields : public CartesianRadialPotentialFieldsBase
17{
18 friend class CartesianRadialPotentialFieldsBase;
19
20public:
21 CartesianRadialPotentialFields(std::string const& name = "ctrl_lib::CartesianRadialPotentialFields");
22 CartesianRadialPotentialFields(std::string const& name, RTT::ExecutionEngine* engine);
24 bool configureHook();
25 bool startHook();
26 void updateHook();
27 void errorHook();
28 void stopHook();
29 void cleanupHook();
30
31protected:
33 virtual bool readFeedback();
35 virtual bool readSetpoint();
37 virtual void updateController();
39 virtual const base::VectorXd& computeActivation(wbc::ActivationFunction& activation_function);
40
42 base::samples::RigidBodyStateSE3 control_output, feedback;
43 std::vector<base::samples::RigidBodyState> pot_field_centers;
44 wbc::PotentialFieldsController* controller;
45 std::vector<wbc::PotentialFieldInfo> field_infos;
46};
47}
48
49#endif
50
Definition CartesianRadialPotentialFields.hpp:17
std::vector< base::samples::RigidBodyState > pot_field_centers
Definition CartesianRadialPotentialFields.hpp:43
CartesianRadialPotentialFields(std::string const &name="ctrl_lib::CartesianRadialPotentialFields")
Definition CartesianRadialPotentialFields.cpp:10
std::vector< wbc::PotentialFieldInfo > field_infos
Definition CartesianRadialPotentialFields.hpp:45
base::samples::RigidBodyStateSE3 control_output
Definition CartesianRadialPotentialFields.hpp:42
~CartesianRadialPotentialFields()
Definition CartesianRadialPotentialFields.hpp:23
void cleanupHook()
Definition CartesianRadialPotentialFields.cpp:54
void errorHook()
Definition CartesianRadialPotentialFields.cpp:45
void updateHook()
Definition CartesianRadialPotentialFields.cpp:41
virtual void updateController()
Definition CartesianRadialPotentialFields.cpp:75
bool startHook()
Definition CartesianRadialPotentialFields.cpp:30
virtual const base::VectorXd & computeActivation(wbc::ActivationFunction &activation_function)
Definition CartesianRadialPotentialFields.cpp:96
virtual bool readFeedback()
Definition CartesianRadialPotentialFields.cpp:59
virtual bool readSetpoint()
Definition CartesianRadialPotentialFields.cpp:68
void stopHook()
Definition CartesianRadialPotentialFields.cpp:49
bool configureHook()
Definition CartesianRadialPotentialFields.cpp:18
double influence_distance
Definition CartesianRadialPotentialFields.hpp:41
wbc::PotentialFieldsController * controller
Definition CartesianRadialPotentialFields.hpp:44
base::samples::RigidBodyStateSE3 feedback
Definition CartesianRadialPotentialFields.hpp:42
Definition CartesianForceController.hpp:12