Page 1 of 1

How to use simOMPL in python remote API?

Posted: 25 Mar 2024, 19:20
by t2chiang
Now I want to integrate OMPL in my current project with python API plugin. I know the coppeliasim support for build-in OMPL plugin called simOMPL, but can I use in my python IDE such as VScode?

Re: How to use simOMPL in python remote API?

Posted: 26 Mar 2024, 17:24
by coppelia
Hello,

best would be to not use any of the simOMPL API functions in an external client: wrap all OMPL functionality inside of child script functions, that you can call from your external client via the ZeroMQ remote API via sim.callScriptFunction. Something like:

Code: Select all

function findPath(inputArg1, inputArg2, ...)
    ... here you can call simOMPL-API functions
    return outputArg1, outputArg2, ...
end
Cheers