5 #ifndef __pinocchio_python_joints_variant_hpp__ 6 #define __pinocchio_python_joints_variant_hpp__ 8 #include <boost/python.hpp> 10 #include "pinocchio/multibody/joint/joint-collection.hpp" 21 template<
typename VariantType>
24 static result_type
convert(VariantType
const & jv)
32 return boost::python::incref(boost::python::object(t).ptr());
42 bp::class_<T>(T::classname().c_str(),
43 T::classname().c_str(),
48 bp::implicitly_convertible<T,pinocchio::JointData>();
57 expose_joint_model<T>(
58 bp::class_<T>(T::classname().c_str(),
59 T::classname().c_str(),
64 bp::implicitly_convertible<T,pinocchio::JointModel>();
72 #endif // ifndef __pinocchio_python_joints_variant_hpp__
static result_type convert(VariantType const &jv)
Set the Python method str and repr to use the overloading operator<<.
result_type operator()(T const &t) const
Main pinocchio namespace.