Skip to content

Commit

Permalink
Add SWIG bindings for scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Mar 12, 2020
1 parent 8a213ff commit 1b715c8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ target_link_libraries(${swig_name} PUBLIC
GazeboEnvironment
RobotSingleton
GazeboWrapper
ScenarioGazebo
${PYTHON_LIBRARIES})

set_property(TARGET ${swig_name} PROPERTY
Expand Down
14 changes: 14 additions & 0 deletions bindings/gympp_bindings.i
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#include "gympp/gazebo/GymFactory.h"
#include "gympp/gazebo/Metadata.h"
#include "gympp/gazebo/RobotSingleton.h"
#include "scenario/gazebo/Joint.h"
#include "scenario/gazebo/Link.h"
#include "scenario/gazebo/Model.h"
#include "scenario/gazebo/World.h"
#include <cstdint>
%}

Expand Down Expand Up @@ -105,3 +109,13 @@
%include "gympp/gazebo/Metadata.h"
%include "gympp/gazebo/GymFactory.h"
%include "gympp/gazebo/RobotSingleton.h"

%shared_ptr(scenario::gazebo::Joint)
%shared_ptr(scenario::gazebo::Link)
%shared_ptr(scenario::gazebo::Model)
%shared_ptr(scenario::gazebo::World)

%include "scenario/gazebo/Joint.h"
%include "scenario/gazebo/Link.h"
%include "scenario/gazebo/Model.h"
%include "scenario/gazebo/World.h"

0 comments on commit 1b715c8

Please sign in to comment.