Skip to content

Commit

Permalink
SoTTalosDevice inherits from Device
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Sep 2, 2020
1 parent 9e1ac69 commit 4bad0d9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ INSTALL(TARGETS ${DEVICE_NAME} EXPORT ${TARGETS_EXPORT_NAME} DESTINATION lib)
STRING(REPLACE - _ PYTHON_LIBRARY_NAME ${DEVICE_NAME})
DYNAMIC_GRAPH_PYTHON_MODULE("sot/talos/${PYTHON_LIBRARY_NAME}"
${DEVICE_NAME} sot-talos-${PYTHON_LIBRARY_NAME}-wrap
MODULE_HEADER "${CMAKE_CURRENT_SOURCE_DIR}/${DEVICE_NAME}-python.hh")
SOURCE_PYTHON_MODULE "${CMAKE_CURRENT_SOURCE_DIR}/${DEVICE_NAME}-python-module-py.cc")

# Add the library to wrap the controller of Pyrene.
SET(CONTROLLER_NAME sot-pyrene-controller)
Expand Down
11 changes: 11 additions & 0 deletions src/sot-talos-device-python-module-py.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <dynamic-graph/python/module.hh>
#include "sot-talos-device.hh"

namespace dg = dynamicgraph;

BOOST_PYTHON_MODULE(wrap)
{
bp::import("dynamic_graph.sot.core.wrap");

dg::python::exposeEntity<SoTTalosDevice, bp::bases<dg::sot::Device> >();
}
3 changes: 0 additions & 3 deletions src/sot-talos-device-python.hh

This file was deleted.

0 comments on commit 4bad0d9

Please sign in to comment.