5 #ifndef __pinocchio_python_utils_registration_hpp__
6 #define __pinocchio_python_utils_registration_hpp__
8 #include <boost/python.hpp>
9 #include <boost/python/scope.hpp>
22 if(eigenpy::check_registration<T>())
24 const bp::type_info
info = bp::type_id<T>();
25 const bp::converter::registration* reg = bp::converter::registry::query(
info);
26 bp::handle<> class_obj(reg->get_class_object());
27 bp::scope().attr(reg->get_class_object()->tp_name) = bp::object(class_obj);
37 #endif // ifndef __pinocchio_python_utils_registration_hpp__