5 #ifndef __pinocchio_python_joints_models_hpp__ 6 #define __pinocchio_python_joints_models_hpp__ 8 #include <boost/python.hpp> 10 #include "pinocchio/multibody/joint/joint-collection.hpp" 11 #include "pinocchio/multibody/joint/joint-composite.hpp" 12 #include "pinocchio/multibody/joint/joint-generic.hpp" 35 .def(bp::init<double, double, double> (bp::args(
"self",
"x",
"y",
"z"),
36 "Init JointModelRevoluteUnaligned from the components x, y, z of the axis"))
37 .def(bp::init<Eigen::Vector3d> (bp::args(
"self",
"axis"),
38 "Init JointModelRevoluteUnaligned from an axis with x-y-z components"))
40 "Rotation axis of the JointModelRevoluteUnaligned.")
49 .def(bp::init<double, double, double> (bp::args(
"self",
"x",
"y",
"z"),
50 "Init JointModelPrismaticUnaligned from the components x, y, z of the axis"))
51 .def(bp::init<Eigen::Vector3d> (bp::args(
"self",
"axis"),
52 "Init JointModelPrismaticUnaligned from an axis with x-y-z components"))
54 "Translation axis of the JointModelPrismaticUnaligned.")
67 : m_joint_composite(joint_composite)
68 , m_joint_placement(joint_placement)
71 template <
typename Jo
intModelDerived>
74 return m_joint_composite.
addJoint(jmodel,m_joint_placement);
93 : m_joint_placement(joint_placement)
96 template <
typename Jo
intModelDerived>
97 JointModelComposite*
operator()(JointModelDerived & jmodel)
const 120 .def(bp::init<const size_t> (bp::args(
"self",
"size"),
121 "Init JointModelComposite with a defined size"))
124 bp::default_call_policies(),
125 bp::args(
"joint_model")
127 "Init JointModelComposite from a joint" 131 bp::default_call_policies(),
132 bp::args(
"joint_model",
"joint_placement")
134 "Init JointModelComposite from a joint and a placement" 137 .add_property(
"jointPlacements",&JointModelComposite::jointPlacements)
141 addJoint_proxy_overloads(bp::args(
"self",
"joint_model",
"joint_placement"),
142 "Add a joint to the vector of joints." 143 )[bp::return_internal_reference<>()]
146 .def(bp::self == bp::self)
147 .def(bp::self != bp::self)
154 #endif // ifndef __pinocchio_python_joint_models_hpp__ JointModelCompositeConstructorVisitor(const SE3 &joint_placement)
JointModelCompositeAddJointVisitor(JointModelComposite &joint_composite, const SE3 &joint_placement)
JointModelDerived & addJoint(const JointModelBase< JointModel > &jmodel, const SE3 &placement=SE3::Identity())
Add a joint to the vector of joints.
JointModelCompositeTpl< double > JointModelComposite
BOOST_PYTHON_FUNCTION_OVERLOADS(computeKKTContactDynamicMatrixInverse_overload, computeKKTContactDynamicMatrixInverse_proxy, 4, 5) static const Eigen
Vector3 axis
3d main axis of the joint.
JointModelVector joints
Vector of joints contained in the joint composite.
static JointModelComposite * init_proxy2(const JointModel &jmodel, const SE3 &joint_placement)
static JointModelComposite & addJoint_proxy(JointModelComposite &joint_composite, const JointModel &jmodel, const SE3 &joint_placement=SE3::Identity())
bp::class_< JointModelRevoluteUnaligned > & expose_joint_model< JointModelRevoluteUnaligned >(bp::class_< JointModelRevoluteUnaligned > &cl)
JointModelComposite & operator()(JointModelDerived &jmodel) const
JointModelComposite & m_joint_composite
int njoints
Number of joints contained in the JointModelComposite.
JointModelComposite * operator()(JointModelDerived &jmodel) const
Main pinocchio namespace.
static JointModelComposite * init_proxy1(const JointModel &jmodel)
JointModelVariant & toVariant()
const SE3 & m_joint_placement
Vector3 axis
3d main axis of the joint.
bp::class_< JointModelComposite > & expose_joint_model< JointModelComposite >(bp::class_< JointModelComposite > &cl)
const SE3 & m_joint_placement
bp::class_< JointModelPrismaticUnaligned > & expose_joint_model< JointModelPrismaticUnaligned >(bp::class_< JointModelPrismaticUnaligned > &cl)
bp::class_< T > & expose_joint_model(bp::class_< T > &cl)