5 #ifndef __pinocchio_jacobian_hpp__ 6 #define __pinocchio_jacobian_hpp__ 8 #include "pinocchio/multibody/fwd.hpp" 9 #include "pinocchio/multibody/model.hpp" 10 #include "pinocchio/multibody/data.hpp" 29 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl,
typename ConfigVectorType>
32 DataTpl<Scalar,Options,JointCollectionTpl> & data,
33 const Eigen::MatrixBase<ConfigVectorType> & q);
53 const Eigen::VectorXd & q)
69 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
106 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl,
typename Matrix6Like>
109 const typename ModelTpl<Scalar,Options,JointCollectionTpl>::JointIndex jointId,
110 const ReferenceFrame rf,
111 const Eigen::MatrixBase<Matrix6Like> & J);
125 template<ReferenceFrame rf>
129 const Model::JointIndex jointId,
147 template<ReferenceFrame rf>
151 const Model::JointIndex jointId,
153 { getJointJacobian<rf>(model,data,jointId,J); }
175 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl,
typename ConfigVectorType,
typename Matrix6Like>
178 const Eigen::MatrixBase<ConfigVectorType> & q,
179 const JointIndex jointId,
180 const Eigen::MatrixBase<Matrix6Like> & J);
203 const Eigen::VectorXd & q,
204 const Model::JointIndex jointId,
222 const Eigen::VectorXd & q,
223 const Model::JointIndex jointId)
246 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl,
typename ConfigVectorType,
typename TangentVectorType>
250 const Eigen::MatrixBase<ConfigVectorType> & q,
251 const Eigen::MatrixBase<TangentVectorType> & v);
270 const Eigen::VectorXd & q,
271 const Eigen::VectorXd & v)
287 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl,
typename Matrix6Like>
290 const JointIndex jointId,
291 const ReferenceFrame rf,
292 const Eigen::MatrixBase<Matrix6Like> & dJ);
308 template<ReferenceFrame rf>
312 const Model::JointIndex jointId,
331 template<ReferenceFrame rf>
335 const Model::JointIndex jointId,
337 { getJointJacobianTimeVariation<rf>(model,data,jointId,dJ); }
345 #include "pinocchio/algorithm/jacobian.hxx" 347 #endif // ifndef __pinocchio_jacobian_hpp__
void jointJacobian(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q, const JointIndex jointId, const Eigen::MatrixBase< Matrix6Like > &J)
Computes the Jacobian of a specific joint frame expressed in the local frame of the joint and store t...
PINOCCHIO_DEPRECATED const Data::Matrix6x & computeJacobians(const Model &model, Data &data, const Eigen::VectorXd &q)
Computes the full model Jacobian, i.e. the stack of all motion subspace expressed in the world frame...
void getJointJacobian(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const DataTpl< Scalar, Options, JointCollectionTpl > &data, const typename ModelTpl< Scalar, Options, JointCollectionTpl >::JointIndex jointId, const ReferenceFrame rf, const Eigen::MatrixBase< Matrix6Like > &J)
Computes the Jacobian of a specific joint frame expressed either in the world (rf = WORLD) frame or i...
PINOCCHIO_DEPRECATED void jacobian(const Model &model, Data &data, const Eigen::VectorXd &q, const Model::JointIndex jointId, Data::Matrix6x &J)
Computes the Jacobian of a specific joint frame expressed in the local frame of the joint and store t...
PINOCCHIO_DEPRECATED void getJacobianTimeVariation(const Model &model, const Data &data, const Model::JointIndex jointId, Data::Matrix6x &dJ)
Computes the Jacobian time variation of a specific joint frame expressed either in the world frame (r...
Eigen::Matrix< Scalar, 6, Eigen::Dynamic, Options > Matrix6x
The 6d jacobian type (temporary)
PINOCCHIO_DEPRECATED const Data::Matrix6x & computeJacobiansTimeVariation(const Model &model, Data &data, const Eigen::VectorXd &q, const Eigen::VectorXd &v)
Computes the full model Jacobian variations with respect to time. It corresponds to dJ/dt which depen...
PINOCCHIO_DEPRECATED void getJacobian(const Model &model, const Data &data, const Model::JointIndex jointId, Data::Matrix6x &J)
Computes the Jacobian of a specific joint frame expressed either in the world (rf = WORLD) frame or i...
const DataTpl< Scalar, Options, JointCollectionTpl >::Matrix6x & computeJointJacobiansTimeVariation(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q, const Eigen::MatrixBase< TangentVectorType > &v)
Computes the full model Jacobian variations with respect to time. It corresponds to dJ/dt which depen...
Matrix6x J
Jacobian of joint placements.
void getJointJacobianTimeVariation(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const DataTpl< Scalar, Options, JointCollectionTpl > &data, const JointIndex jointId, const ReferenceFrame rf, const Eigen::MatrixBase< Matrix6Like > &dJ)
Computes the Jacobian time variation of a specific joint frame expressed either in the world frame (r...
Main pinocchio namespace.
const DataTpl< Scalar, Options, JointCollectionTpl >::Matrix6x & computeJointJacobians(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q)
Computes the full model Jacobian, i.e. the stack of all motion subspace expressed in the world frame...