5 #ifndef __pinocchio_python_joints_variant_hpp__
6 #define __pinocchio_python_joints_variant_hpp__
8 #include <boost/algorithm/string/replace.hpp>
10 #include <boost/python.hpp>
26 std::string className = boost::replace_all_copy(T::classname(),
"<",
"_");
27 boost::replace_all(className,
">",
"");
31 template<
typename VariantType>
34 static result_type
convert(VariantType
const & jv)
42 return boost::python::incref(boost::python::object(
t).ptr());
53 sanitizedClassname<T>().c_str(), sanitizedClassname<T>().c_str(), bp::init<>())
56 bp::implicitly_convertible<T, context::JointData>();
65 expose_joint_model<T>(
67 sanitizedClassname<T>().c_str(), sanitizedClassname<T>().c_str(), bp::no_init)
70 bp::implicitly_convertible<T, context::JointModel>();
77 #endif // ifndef __pinocchio_python_joints_variant_hpp__