Closed kekeblom closed 5 years ago
Confirmed the issue. The current version only works with raisimLib v0.3.0. I am working on updating raisimpy
Sent a PR #4. This should work. and this PR fixes a major bug in raisimpy so don't use an old version
Yep, this bug is due to the following recent commit in raisimLib "experimental mesh collision body added": https://github.com/leggedrobotics/raisimLib/commit/0fe98b2479595412fdc2f70c01b052ce8391142b
The signature of init_collision_bodies
(initCollisionBodies
in C++) has changed in that version of raisim (v0.4.0), where the dxTriMeshData
structure is now being used. Pybind11 is complaining because it has no idea of what type it is. I just merged the PR sent by @jhwangbo where the init_collision_bodies
function has been removed from raisimpy
, so it shouldn't raise that error anymore. The other solution would have been to wrap dxTriMeshData
, include the file containing its definition in the src/articulated_system.cpp
, and change the signature of init_collision_bodies
, but I suppose @jhwangbo deleted that method because it is used internally by raisimLib
, and was not needed to be exposed in Python.
@kekeblom Let us know how the installation goes.
Now it installs fine. Thank you for the fast response.
Tried to install the package but the install fails while compiling.
I'm running pybind11 version 2.3.0, python 3, Ubuntu 18.04.
I can successfully compile and install
raisimLib
,raisimOgre
andpybind11
. The raisimOgre examples run just fine on my system.The error when running
make install
is:It seems pybind11 is not able to deal with the
dxTriMeshData
struct.