registration.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2019-2020 INRIA
3 //
4 
5 #ifndef __pinocchio_python_utils_registration_hpp__
6 #define __pinocchio_python_utils_registration_hpp__
7 
9 
10 namespace pinocchio
11 {
12  namespace python
13  {
14 
15  template<typename T>
17  {
18  namespace bp = boost::python;
19  if (eigenpy::check_registration<T>())
20  {
21  const bp::type_info info = bp::type_id<T>();
22  const bp::converter::registration * reg = bp::converter::registry::query(info);
23  bp::handle<> class_obj(bp::borrowed(reg->get_class_object()));
24  bp::scope().attr(reg->get_class_object()->tp_name) = bp::object(class_obj);
25  return true;
26  }
27 
28  return false;
29  }
30 
31  } // namespace python
32 } // namespace pinocchio
33 
34 #endif // ifndef __pinocchio_python_utils_registration_hpp__
boost::python
pinocchio::python::register_symbolic_link_to_registered_type
bool register_symbolic_link_to_registered_type()
Definition: registration.hpp:16
ocp.info
info
Definition: ocp.py:80
python
registration.hpp
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Thu Dec 19 2024 03:41:32