29 #ifndef HPP_CONSTRAINTS_EXPLICIT_RELATIVE_TRANSFORMATION_HH
30 #define HPP_CONSTRAINTS_EXPLICIT_RELATIVE_TRANSFORMATION_HH
37 namespace constraints {
95 size_type index1 = (j1 ? j1->index() : 0);
96 size_type index2 = (j2 ? j2->index() : 0);
97 if (index1 <= index2) {
98 return std::pair<JointConstPtr_t, JointConstPtr_t>(j1, j2);
100 return std::pair<JointConstPtr_t, JointConstPtr_t>(j2, j1);
115 std::vector<bool> mask = std::vector<bool>(6,
true));
119 robot_(other.robot_),
120 parentJoint_(other.parentJoint_),
121 inConf_(other.inConf_),
122 inVel_(other.inVel_),
123 outConf_(other.outConf_),
124 outVel_(other.outVel_),
125 F1inJ1_invF2inJ2_(other.F1inJ1_invF2inJ2_) {}
128 void init(
const RelativeTransformationWkPtr_t& weak) { weak_ = weak; }
145 if (robot_ != castother.robot_)
return false;
146 if (parentJoint_ != castother.parentJoint_)
return false;
147 if (joint1_ != castother.joint1_)
return false;
148 if (joint2_ != castother.joint2_)
return false;
149 if (frame1_ != castother.frame1_)
return false;
150 if (frame2_ != castother.frame2_)
return false;
151 if (inConf_.rows() != castother.inConf_.
rows())
return false;
152 if (inVel_.cols() != castother.inVel_.
cols())
return false;
153 if (outConf_.rows() != castother.outConf_.
rows())
return false;
154 if (outVel_.rows() != castother.outVel_.
rows())
return false;
155 if (F1inJ1_invF2inJ2_ != castother.F1inJ1_invF2inJ2_)
return false;
173 RelativeTransformationWkPtr_t weak_;
177 mutable matrix_t tmpJac_, J2_parent_minus_J1_;
const RowIndices_t & rows() const
Definition: matrix-view.hh:675
const ColIndices_t & cols() const
Definition: matrix-view.hh:679
Definition: differentiable-function.hh:63
virtual bool isEqual(const DifferentiableFunction &other) const
Definition: differentiable-function.hh:206
#define HPP_CONSTRAINTS_DLLAPI
Definition: config.hh:88
shared_ptr< RelativeTransformation > RelativeTransformationPtr_t
Definition: fwd.hh:197
pinocchio::Transform3s Transform3s
Definition: fwd.hh:64
pinocchio::DevicePtr_t DevicePtr_t
Definition: fwd.hh:109
shared_ptr< RelativeTransformation > RelativeTransformationPtr_t
Definition: fwd.hh:168
pinocchio::DeviceConstPtr_t DeviceConstPtr_t
Definition: fwd.hh:110
pinocchio::size_type size_type
Definition: fwd.hh:47
pinocchio::vectorIn_t vectorIn_t
Definition: fwd.hh:60
pinocchio::matrix_t matrix_t
Definition: fwd.hh:56
Eigen::Ref< matrix_t > matrixOut_t
Definition: fwd.hh:58
std::vector< segment_t > segments_t
Definition: fwd.hh:84
pinocchio::vector_t vector_t
Definition: fwd.hh:59
pinocchio::LiegroupElementRef LiegroupElementRef
Definition: fwd.hh:66
GenericTransformation< RelativeBit|PositionBit|OrientationBit > RelativeTransformation
Definition: fwd.hh:151
pinocchio::JointConstPtr_t JointConstPtr_t
Definition: fwd.hh:50
Definition: active-set-differentiable-function.hh:36
Definition: matrix-view.hh:49