6 #ifndef __sot_torque_control_free_flyer_locator_H__
7 #define __sot_torque_control_free_flyer_locator_H__
14 #if defined(free_flyer_locator_EXPORTS)
15 #define SOTFREEFLYERLOCATOR_EXPORT __declspec(dllexport)
17 #define SOTFREEFLYERLOCATOR_EXPORT __declspec(dllimport)
20 #define SOTFREEFLYERLOCATOR_EXPORT
28 #include "boost/assign.hpp"
31 #include <pinocchio/algorithm/kinematics.hpp>
32 #include <pinocchio/multibody/model.hpp>
33 #include <pinocchio/parsers/urdf.hpp>
37 #include <dynamic-graph/linear-algebra.h>
39 #include <dynamic-graph/signal-helper.h>
41 #include <sot/core/matrix-geometry.hh>
42 #include <sot/core/robot-utils.hh>
54 :
public ::dynamicgraph::Entity {
56 DYNAMIC_GRAPH_ENTITY_DECL();
59 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
65 void init(
const std::string& robotRef);
79 void displayRobotUtil();
82 virtual void display(std::ostream& os)
const;
84 void sendMsg(
const std::string& msg, MsgType t = MSG_TYPE_INFO,
85 const char* =
"",
int = 0) {
86 logger_.stream(t) << (
"[FreeFlyerLocator-" + name +
"] " + msg) <<
'\n';
DECLARE_SIGNAL_OUT(base6dFromFoot_encoders, dynamicgraph::Vector)
base6d_encoders with base6d in RPY
void sendMsg(const std::string &msg, MsgType t=MSG_TYPE_INFO, const char *="", int=0)
Eigen::VectorXd m_v_pin
robot configuration according to SoT convention
pinocchio::SE3 m_Mff
Pinocchio robot data.
RobotUtilShrPtr m_robot_util
robot velocities according to SoT convention
long unsigned int m_left_foot_id
pinocchio::Data * m_data
Pinocchio robot model.
pinocchio::Model * m_model
true if the entity has been successfully initialized
pinocchio::SE3 m_w_M_lf
SE3 Transform from center of feet to base.
DECLARE_SIGNAL_OUT(v, dynamicgraph::Vector)
n+6 robot velocities
DECLARE_SIGNAL_OUT(freeflyer_aa, dynamicgraph::Vector)
freeflyer position with angle axis format
DECLARE_SIGNAL_IN(joint_velocities, dynamicgraph::Vector)
long unsigned int m_right_foot_id
DECLARE_SIGNAL_INNER(kinematics_computations, dynamicgraph::Vector)
Eigen::VectorXd m_v_sot
robot velocities according to pinocchio convention
Eigen::VectorXd m_q_sot
robot configuration according to pinocchio convention
DECLARE_SIGNAL_IN(base6d_encoders, dynamicgraph::Vector)
#define SOTFREEFLYERLOCATOR_EXPORT
AdmittanceController EntityClassName