machines-in-motion / kino_dynamic_opt

Kino-dynamic optimization algorithm for multiped robots
BSD 3-Clause "New" or "Revised" License
39 stars 9 forks source link

The Demo doesn't work #51

Closed Kwach00 closed 1 year ago

Kwach00 commented 1 year ago

Hello,

I encountered this issue while running the demo (the error occurs in the file 'kino_dyn_planner.py'):

from pymomentum import *
ImportError: Cannot overload existing non-function object "value" with a function of the same name

I saw that pymomentum includes a series of Python wrappers for C++ files, but I couldn't find any included function that would overload any existing non-function object. Has anyone else experienced a similar problem?

wangdefo commented 1 year ago

Hello, I meet the same problem, have you find any way that solved this problem? thank you

Kwach00 commented 1 year ago

Hi!

Sorry for late response!

But yeah, I managed to workaround. In repository pybind11 there is an implementation of error that forbids from using functions starting with one uderscore - _ . You can find it here: link. So I just commented these three lines and it works just fine.

I hope it would help you, good luck!