Go to the documentation of this file.
35 return bp::make_tuple(J0, J1);
58 int ncols = Jin.cols();
73 return bp::make_tuple(J0, J1);
99 "integrate", &integrate<Scalar, Options, JointCollectionDefaultTpl, VectorXs, VectorXs>,
100 bp::args(
"model",
"q",
"v"),
101 "Integrate the joint configuration vector q with a tangent vector v during one unit time.\n"
102 "This is the canonical integrator of a Configuration Space composed of Lie groups, such as "
105 "\tmodel: model of the kinematic tree\n"
106 "\tq: the joint configuration vector (size model.nq)\n"
107 "\tv: the joint velocity vector (size model.nv)\n");
111 "Computes the partial derivatives of the integrate function with respect to the first "
112 "and the second argument, and returns the two Jacobians as a tuple.\n\n"
114 "\tmodel: model of the kinematic tree\n"
115 "\tq: the joint configuration vector (size model.nq)\n"
116 "\tv: the joint velocity vector (size model.nv)\n");
120 "Computes the partial derivatives of the integrate function with respect to the "
121 "first (arg == ARG0) "
122 "or the second argument (arg == ARG1).\n\n"
124 "\tmodel: model of the kinematic tree\n"
125 "\tq: the joint configuration vector (size model.nq)\n"
126 "\tv: the joint velocity vector (size model.nv)\n"
127 "\targument_position: either pinocchio.ArgumentPosition.ARG0 or "
128 "pinocchio.ArgumentPosition.ARG1, depending on the desired Jacobian value.\n");
132 bp::args(
"model",
"q",
"v",
"Jin",
"argument_position"),
133 "Takes a matrix expressed at q (+) v and uses parallel transport to express it in "
134 "the tangent space at q."
135 "\tThis operation does the product of the matrix by the Jacobian of the integration "
136 "operation, but more efficiently."
138 "\tmodel: model of the kinematic tree\n"
139 "\tq: the joint configuration vector (size model.nq)\n"
140 "\tv: the joint velocity vector (size model.nv)\n"
141 "\tJin: the input matrix (row size model.nv)"
142 "\targument_position: either pinocchio.ArgumentPosition.ARG0 (q) or "
143 "pinocchio.ArgumentPosition.ARG1 (v), depending on the desired Jacobian value.\n");
146 "interpolate", &interpolate<Scalar, Options, JointCollectionDefaultTpl, VectorXs, VectorXs>,
147 bp::args(
"model",
"q1",
"q2",
"alpha"),
148 "Interpolate between two given joint configuration vectors q1 and q2.\n\n"
150 "\tmodel: model of the kinematic tree\n"
151 "\tq1: the initial joint configuration vector (size model.nq)\n"
152 "\tq2: the terminal joint configuration vector (size model.nq)\n"
153 "\talpha: the interpolation coefficient in [0,1]\n");
156 "difference", &difference<Scalar, Options, JointCollectionDefaultTpl, VectorXs, VectorXs>,
157 bp::args(
"model",
"q1",
"q2"),
158 "Difference between two joint configuration vectors, i.e. the tangent vector that "
159 "must be integrated during one unit time"
160 "to go from q1 to q2.\n\n"
162 "\tmodel: model of the kinematic tree\n"
163 "\tq1: the initial joint configuration vector (size model.nq)\n"
164 "\tq2: the terminal joint configuration vector (size model.nq)\n");
168 &squaredDistance<Scalar, Options, JointCollectionDefaultTpl, VectorXs, VectorXs>,
169 bp::args(
"model",
"q1",
"q2"),
170 "Squared distance vector between two joint configuration vectors.\n\n"
172 "\tmodel: model of the kinematic tree\n"
173 "\tq1: the initial joint configuration vector (size model.nq)\n"
174 "\tq2: the terminal joint configuration vector (size model.nq)\n");
177 "distance", &distance<Scalar, Options, JointCollectionDefaultTpl, VectorXs, VectorXs>,
178 bp::args(
"model",
"q1",
"q2"),
179 "Distance between two joint configuration vectors.\n\n"
181 "\tmodel: model of the kinematic tree\n"
182 "\tq1: the initial joint configuration vector (size model.nq)\n"
183 "\tq2: the terminal joint configuration vector (size model.nq)\n");
187 "Computes the partial derivatives of the difference function with respect to the first "
188 "and the second argument, and returns the two Jacobians as a tuple.\n\n"
190 "\tmodel: model of the kinematic tree\n"
191 "\tq1: the initial joint configuration vector (size model.nq)\n"
192 "\tq2: the terminal joint configuration vector (size model.nq)\n");
196 "Computes the partial derivatives of the difference function with respect to the "
197 "first (arg == ARG0) "
198 "or the second argument (arg == ARG1).\n\n"
200 "\tmodel: model of the kinematic tree\n"
201 "\tq1: the initial joint configuration vector (size model.nq)\n"
202 "\tq2: the terminal joint configuration vector (size model.nq)\n"
203 "\targument_position: either pinocchio.ArgumentPosition.ARG0 or "
204 "pinocchio.ArgumentPosition.ARG1, depending on the desired Jacobian value.\n");
208 "Generate a random configuration in the bounds given by the lower and upper limits "
209 "contained in model.\n\n"
211 "\tmodel: model of the kinematic tree\n");
214 "randomConfiguration",
215 &randomConfiguration<Scalar, Options, JointCollectionDefaultTpl, VectorXs, VectorXs>,
216 bp::args(
"model",
"lower_bound",
"upper_bound"),
217 "Generate a random configuration in the bounds given by the Joint lower and upper limits "
220 "\tmodel: model of the kinematic tree\n"
221 "\tlower_bound: the lower bound on the joint configuration vectors (size model.nq)\n"
222 "\tupper_bound: the upper bound on the joint configuration vectors (size model.nq)\n");
225 "neutral", &neutral<Scalar, Options, JointCollectionDefaultTpl>, bp::arg(
"model"),
226 "Returns the neutral configuration vector associated to the model.\n\n"
228 "\tmodel: model of the kinematic tree\n");
232 "Returns the configuration normalized.\n"
233 "For instance, when the configuration vectors contains some quaternion values, it must be "
234 "required to renormalize these components to keep orthonormal rotation values.\n\n"
236 "\tmodel: model of the kinematic tree\n"
237 "\tq: a joint configuration vector to normalize (size model.nq)\n");
239 #ifndef PINOCCHIO_PYTHON_SKIP_COMPARISON_OPERATIONS
241 static const Scalar dummy_precision = Eigen::NumTraits<Scalar>::dummy_precision();
243 "isSameConfiguration",
244 &isSameConfiguration<Scalar, Options, JointCollectionDefaultTpl, VectorXs, VectorXs>,
245 bp::args(
"model",
"q1",
"q2",
"prec"),
246 "Return true if two configurations are equivalent within the given precision "
247 "provided by prec.\n\n"
249 "\tmodel: model of the kinematic tree\n"
250 "\tq1: a joint configuration vector (size model.nq)\n"
251 "\tq2: a joint configuration vector (size model.nq)\n"
252 "\tprec: requested accuracy for the comparison\n");
255 "isNormalized", &isNormalized<Scalar, Options, JointCollectionDefaultTpl, VectorXs>,
256 (bp::arg(
"model"), bp::arg(
"q"), bp::arg(
"prec") = dummy_precision),
257 "Check whether a configuration vector is normalized within the given precision "
258 "provided by prec.\n\n"
260 "\tmodel: model of the kinematic tree\n"
261 "\tq: a joint configuration vector (size model.nq)\n"
262 "\tprec: requested accuracy for the check\n");
bp::tuple dDifference_proxy(const context::Model &model, const context::VectorXs &q1, const context::VectorXs &q2)
void dIntegrate(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const Eigen::MatrixBase< ConfigVectorType > &q, const Eigen::MatrixBase< TangentVectorType > &v, const Eigen::MatrixBase< JacobianMatrixType > &J, const ArgumentPosition arg, const AssignmentOperatorType op=SETTO)
Computes the Jacobian of a small variation of the configuration vector or the tangent vector into the...
ArgumentPosition
Argument position. Used as template parameter to refer to an argument.
void dIntegrateTransport(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const Eigen::MatrixBase< ConfigVectorType > &q, const Eigen::MatrixBase< TangentVectorType > &v, const Eigen::MatrixBase< JacobianMatrixType1 > &Jin, const Eigen::MatrixBase< JacobianMatrixType2 > &Jout, const ArgumentPosition arg)
Transport a matrix from the terminal to the initial tangent space of the integrate operation,...
context::VectorXs VectorXs
void randomConfiguration(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const Eigen::MatrixBase< ConfigVectorIn1 > &lowerLimits, const Eigen::MatrixBase< ConfigVectorIn2 > &upperLimits, const Eigen::MatrixBase< ReturnType > &qout)
Generate a configuration vector uniformly sampled among provided limits.
context::MatrixXs dDifference_arg_proxy(const context::Model &model, const context::VectorXs &q1, const context::VectorXs &q2, const ArgumentPosition arg)
Eigen::Matrix< Scalar, Eigen::Dynamic, 1, Options > VectorXs
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic, Options > MatrixXs
static context::VectorXs normalize_proxy(const context::Model &model, const context::VectorXs &config)
bp::tuple dIntegrate_proxy(const context::Model &model, const context::VectorXs &q, const context::VectorXs &v)
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > & q
static context::VectorXs randomConfiguration_proxy(const context::Model &model)
context::MatrixXs dIntegrateTransport_proxy(const context::Model &model, const context::VectorXs &q, const context::VectorXs &v, const context::MatrixXs &Jin, const ArgumentPosition arg)
context::MatrixXs dIntegrate_arg_proxy(const context::Model &model, const context::VectorXs &q, const context::VectorXs &v, const ArgumentPosition arg)
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorIn1 > const Eigen::MatrixBase< ConfigVectorIn2 > & q1
void dDifference(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const Eigen::MatrixBase< ConfigVector1 > &q0, const Eigen::MatrixBase< ConfigVector2 > &q1, const Eigen::MatrixBase< JacobianMatrix > &J, const ArgumentPosition arg)
Computes the Jacobian of a small variation of the configuration vector into the tangent space at iden...
PINOCCHIO_PYTHON_SCALAR_TYPE Scalar
void normalize(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const Eigen::MatrixBase< ConfigVectorType > &qout)
Normalize a configuration vector.
JointCollectionTpl & model
Main pinocchio namespace.
pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:09