console-bridge.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 INRIA
3 //
4 
5 #include <boost/python.hpp>
8 
9 #ifdef PINOCCHIO_WITH_URDFDOM
10  #include <console_bridge/console.h>
11 #endif
12 
13 namespace pinocchio
14 {
15  namespace python
16  {
18  {
19  namespace bp = boost::python;
20 
21 #ifdef PINOCCHIO_WITH_URDFDOM
22 
23  // fix CONSOLE_BRIDGE warning level
24  ::console_bridge::setLogLevel(::console_bridge::CONSOLE_BRIDGE_LOG_ERROR);
25 
26  typedef ::console_bridge::LogLevel LogLevel;
27  if (!register_symbolic_link_to_registered_type<LogLevel>())
28  {
29  bp::enum_<LogLevel>("LogLevel")
30  .value("CONSOLE_BRIDGE_LOG_DEBUG", ::console_bridge::CONSOLE_BRIDGE_LOG_DEBUG)
31  .value("CONSOLE_BRIDGE_LOG_INFO", ::console_bridge::CONSOLE_BRIDGE_LOG_INFO)
32  .value("CONSOLE_BRIDGE_LOG_WARN", ::console_bridge::CONSOLE_BRIDGE_LOG_WARN)
33  .value("CONSOLE_BRIDGE_LOG_ERROR", ::console_bridge::CONSOLE_BRIDGE_LOG_ERROR)
34  .value("CONSOLE_BRIDGE_LOG_NONE", ::console_bridge::CONSOLE_BRIDGE_LOG_NONE);
35  }
36 
37 #endif
38  }
39  } // namespace python
40 } // namespace pinocchio
boost::python
registration.hpp
pinocchio::python::exposeConsoleBridge
void exposeConsoleBridge()
Definition: console-bridge.cpp:17
python
urdf.hpp
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


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