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
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);
DECLARE_SIGNAL_OUT(wrenchLeft, dynamicgraph::Vector)
DECLARE_SIGNAL_OUT(wrenchRef, dynamicgraph::Vector)
pinocchio::FrameIndex m_left_foot_id
ankle to sole transformation
DECLARE_SIGNAL_IN(wrenchDes, dynamicgraph::Vector)
RobotUtilShrPtr m_robot_util
Pinocchio robot data.
DECLARE_SIGNAL_OUT(copLeft, dynamicgraph::Vector)
DECLARE_SIGNAL_OUT(copRight, dynamicgraph::Vector)
Eigen::Matrix< double, 6, 1 > m_wrenchLeft
DECLARE_SIGNAL_OUT(ankleWrenchRight, dynamicgraph::Vector)
DECLARE_SIGNAL_INNER(kinematics_computations, int)
pinocchio::SE3 m_contactLeft
DECLARE_SIGNAL_OUT(wrenchRight, dynamicgraph::Vector)
pinocchio::SE3 m_contactRight
DECLARE_SIGNAL_IN(phase, int)
pinocchio::Model m_model
true if the entity has been successfully initialized
Eigen::Matrix< double, 6, 1 > m_wrenchRight
DECLARE_SIGNAL_OUT(ankleWrenchLeft, dynamicgraph::Vector)
DECLARE_SIGNAL_INNER(wrenches, int)
DECLARE_SIGNAL_IN(q, dynamicgraph::Vector)
pinocchio::SE3 m_ankle_M_sole
DECLARE_SIGNAL_OUT(emergencyStop, bool)
DECLARE_SIGNAL_IN(rho, double)
DECLARE_SIGNAL_OUT(zmpRef, dynamicgraph::Vector)
bool m_emergency_stop_triggered
pinocchio::FrameIndex m_right_foot_id
pinocchio::Data m_data
Pinocchio robot model.
DECLARE_SIGNAL_OUT(surfaceWrenchRight, dynamicgraph::Vector)
DECLARE_SIGNAL_OUT(surfaceWrenchLeft, dynamicgraph::Vector)
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
#define SIMPLE_DISTRIBUTE_WRENCH_EXPORT