How to use simOMPL in python remote API?

Typically: "How do I... ", "How can I... " questions
Post Reply
t2chiang
Posts: 3
Joined: 23 Mar 2024, 23:10

How to use simOMPL in python remote API?

Post 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?

coppelia
Site Admin
Posts: 10375
Joined: 14 Dec 2012, 00:25

Re: How to use simOMPL in python remote API?

Post 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

Post Reply