17 #ifndef __sot_talos_balance_simple_distribute_wrench_H__
18 #define __sot_talos_balance_simple_distribute_wrench_H__
25 #if defined(position_controller_EXPORTS)
26 #define SIMPLE_DISTRIBUTE_WRENCH_EXPORT __declspec(dllexport)
28 #define SIMPLE_DISTRIBUTE_WRENCH_EXPORT __declspec(dllimport)
31 #define SIMPLE_DISTRIBUTE_WRENCH_EXPORT
38 #include <pinocchio/fwd.hpp>
40 #include <dynamic-graph/signal-helper.h>
43 #include <pinocchio/multibody/data.hpp>
44 #include <pinocchio/multibody/model.hpp>
45 #include <sot/core/robot-utils.hh>
47 #include "boost/assign.hpp"
51 namespace talos_balance {
58 :
public ::dynamicgraph::Entity {
59 DYNAMIC_GRAPH_ENTITY_DECL();
62 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
72 DECLARE_SIGNAL_IN(rho,
double);
73 DECLARE_SIGNAL_IN(phase,
int);
75 DECLARE_SIGNAL_INNER(kinematics_computations,
int);
76 DECLARE_SIGNAL_INNER(wrenches,
int);
89 DECLARE_SIGNAL_OUT(emergencyStop,
bool);
94 virtual void display(std::ostream& os)
const;
97 const pinocchio::SE3& pose)
const;
119 void distributeWrench(
const Eigen::VectorXd& wrenchDes,
const double rho);
120 void saturateWrench(
const Eigen::VectorXd& wrenchDes,
const int phase);
129 #endif // #ifndef __sot_talos_balance_simple_distribute_wrench_H__