Go to the documentation of this file.
8 #include <boost/python/overloads.hpp>
19 bool computeSubtreeComs =
true)
29 bool computeSubtreeComs =
true)
40 bool computeSubtreeComs =
true)
49 bool computeSubtreeComs =
true)
105 const context::Model &))&computeTotalMass<Scalar, Options, JointCollectionDefaultTpl>,
106 bp::args(
"model"),
"Compute the total mass of the model and return it.");
112 context::Data &))&computeTotalMass<Scalar, Options, JointCollectionDefaultTpl>,
113 bp::args(
"model",
"data"),
114 "Compute the total mass of the model, put it in data.mass[0] and return it.");
117 "computeSubtreeMasses",
120 context::Data &))&computeSubtreeMasses<Scalar, Options, JointCollectionDefaultTpl>,
121 bp::args(
"model",
"data"),
122 "Compute the mass of each kinematic subtree and store it in the vector data.mass.");
126 (bp::arg(
"model"), bp::arg(
"data"), bp::arg(
"q"), bp::arg(
"compute_subtree_coms") =
true),
127 "Compute the center of mass, putting the result in context::Data and return it."
128 "If compute_subtree_coms is True, the algorithm also computes the center of mass of the "
130 bp::return_value_policy<bp::return_by_value>());
134 (bp::arg(
"model"), bp::arg(
"data"), bp::arg(
"q"), bp::arg(
"v"),
135 bp::arg(
"compute_subtree_coms") =
true),
136 "Computes the center of mass position and velocity by storing the result in context::Data. "
137 "It returns the center of mass position expressed in the WORLD frame.\n"
138 "If compute_subtree_coms is True, the algorithm also computes the center of mass of the "
140 bp::return_value_policy<bp::return_by_value>());
144 (bp::arg(
"model"), bp::arg(
"data"), bp::arg(
"q"), bp::arg(
"v"), bp::arg(
"a"),
145 bp::arg(
"compute_subtree_coms") =
true),
146 "Computes the center of mass position, velocity and acceleration by storing the result in "
147 "context::Data. It returns the center of mass position expressed in the WORLD frame.\n"
148 "If compute_subtree_coms is True, the algorithm also computes the center of mass of the "
150 bp::return_value_policy<bp::return_by_value>());
154 (bp::arg(
"model"), bp::arg(
"data"), bp::arg(
"kinematic_level"),
155 bp::arg(
"compute_subtree_coms") =
true),
156 "Computes the center of mass position, velocity or acceleration of a given model according "
157 "to the current kinematic values contained in data and the requested kinematic_level.\n"
158 "If kinematic_level = POSITION, computes the CoM position, if kinematic_level = VELOCITY, "
159 "also computes the CoM velocity and if kinematic_level = ACCELERATION, it also computes "
160 "the CoM acceleration.\n"
161 "If compute_subtree_coms is True, the algorithm also computes the center of mass of the "
163 bp::return_value_policy<bp::return_by_value>());
167 (bp::arg(
"model"), bp::arg(
"data"), bp::arg(
"compute_subtree_coms") =
true),
168 "Computes the center of mass position, velocity and acceleration of a given model "
169 "according to the current kinematic values contained in data.\n"
170 "If compute_subtree_coms is True, the algorithm also computes the center of mass of "
172 bp::return_value_policy<bp::return_by_value>());
175 "jacobianCenterOfMass",
177 const Eigen::MatrixBase<VectorXs> &,
bool))
178 & jacobianCenterOfMass<Scalar, Options, JointCollectionDefaultTpl, VectorXs>,
179 (bp::arg(
"model"), bp::arg(
"data"), bp::arg(
"q"), bp::arg(
"compute_subtree_coms") =
true),
180 "Computes the Jacobian of the center of mass, puts the result in context::Data and return "
182 "If compute_subtree_coms is True, the algorithm also computes the center of mass of the "
184 bp::return_value_policy<bp::return_by_value>());
187 "jacobianCenterOfMass",
189 & jacobianCenterOfMass<Scalar, Options, JointCollectionDefaultTpl>,
190 (bp::arg(
"model"), bp::arg(
"data"), bp::arg(
"compute_subtree_coms") =
true),
191 "Computes the Jacobian of the center of mass, puts the result in context::Data and "
193 "If compute_subtree_coms is True, the algorithm also computes the center of mass of "
195 bp::return_value_policy<bp::return_by_value>());
199 bp::args(
"model",
"data",
"q",
"subtree_root_joint_id"),
200 "Computes the Jacobian of the CoM of the given subtree (subtree_root_joint_id) "
201 "expressed in the WORLD frame, according to the given joint configuration.");
205 bp::args(
"model",
"data",
"subtree_root_joint_id"),
206 "Computes the Jacobian of the CoM of the given subtree (subtree_root_joint_id) "
207 "expressed in the WORLD frame, according to the given entries in data.");
211 bp::args(
"model",
"data",
"subtree_root_joint_id"),
212 "Get the Jacobian of the CoM of the given subtree expressed in the world frame, "
213 "according to the given entries in data. It assumes that jacobianCenterOfMass has "
214 "been called first.");
traits< SE3Tpl >::Vector3 Vector3
static context::SE3::Vector3 com_0_proxy(const context::Model &model, context::Data &data, const context::VectorXs &q, bool computeSubtreeComs=true)
KinematicLevel
List of Kinematics Level supported by Pinocchio.
static context::SE3::Vector3 com_1_proxy(const context::Model &model, context::Data &data, const context::VectorXs &q, const context::VectorXs &v, bool computeSubtreeComs=true)
static const context::Data::Vector3 & com_default_proxy(const context::Model &model, context::Data &data, bool computeSubtreeComs=true)
context::VectorXs VectorXs
static context::Data::Matrix3x jacobian_subtree_com_proxy(const context::Model &model, context::Data &data, context::Model::JointIndex jointId)
pinocchio::JointIndex JointIndex
Eigen::Matrix< Scalar, Eigen::Dynamic, 1, Options > VectorXs
Eigen::Matrix< Scalar, 3, Eigen::Dynamic, Options > Matrix3x
The 3d jacobian type (temporary)
static context::Data::Matrix3x get_jacobian_subtree_com_proxy(const context::Model &model, context::Data &data, context::Model::JointIndex jointId)
Eigen::Matrix< Scalar, 3, 1, Options > Vector3
void getJacobianSubtreeCenterOfMass(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const DataTpl< Scalar, Options, JointCollectionTpl > &data, const JointIndex &rootSubtreeId, const Eigen::MatrixBase< Matrix3xLike > &res)
Retrieves the Jacobian of the center of mass of the given subtree according to the current value stor...
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > & q
static const context::Data::Vector3 & com_level_proxy(const context::Model &model, context::Data &data, KinematicLevel kinematic_level, bool computeSubtreeComs=true)
static context::Data::Matrix3x jacobian_subtree_com_kinematics_proxy(const context::Model &model, context::Data &data, const context::VectorXs &q, context::Model::JointIndex jointId)
static context::SE3::Vector3 com_2_proxy(const context::Model &model, context::Data &data, const context::VectorXs &q, const context::VectorXs &v, const context::VectorXs &a, bool computeSubtreeComs=true)
void jacobianSubtreeCenterOfMass(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q, const JointIndex &rootSubtreeId, const Eigen::MatrixBase< Matrix3xLike > &res)
Computes the Jacobian of the center of mass of the given subtree according to a particular joint conf...
PINOCCHIO_PYTHON_SCALAR_TYPE Scalar
JointCollectionTpl & model
Main pinocchio namespace.
const DataTpl< Scalar, Options, JointCollectionTpl >::Vector3 & centerOfMass(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q, const bool computeSubtreeComs=true)
Computes the center of mass position of a given model according to a particular joint configuration....
pinocchio
Author(s):
autogenerated on Thu Dec 19 2024 03:41:29