stulp / dmpbbo

Python/C++ library for Dynamical Movement Primitives and Black-Box Optimization
GNU Lesser General Public License v2.1
225 stars 89 forks source link

Issues with Demos and Tests #31

Closed jenskober closed 5 years ago

jenskober commented 5 years ago

It would be nice to add some instructions on how to call the demos. This is mentioned for demoDynamicalSystems in the tutorial, however the corresponding plotDynamicalSystem.py does not seem to exist. The Python Wrappers are nice, but it is also not 100% clear how to call them. You need to "make install" and then call them from the original source directory, which I didn't find very intuitive.

The help for semoDynamicalSystems is quite nice, for the dmp demos I'd suggest changing it to the same format (with a complete example of a call)

If you call demoDmpChangeGoal or similar with a relative path for the output, the python files don't work if called from a different location then from which they were generated. E.g. ./demoDmpChangeGoal output/ and then going to the directory where the Python script resides and trying to call is there

Some of the demos cause a core dump if they don't find the correct file rather than existing nicely I found demoDmpTrainFromTrajFile and demoOptimizationDmp

related note demoFunctionApproxTrainingWrapper.py crashes if lwpr is not installed while the C++ handles that correctly

I also got core dumps for functionapproximator/tests/testTrainingCompareCppPython and dmp_bbo/tests/testTaskViapoint

stulp commented 5 years ago

Hello Jens, Thank you for your detailed analysis! They will certainly help improve the quality of the code. I've taken the liberty of splitting your issue into smaller ones (#32 to #40), so that we can assign & conquer. As the other ones are now open, I'm closing this issue. Cheers, Freek