Extending Vrep OMPL API

Typically: "How do I... ", "How can I... " questions
Post Reply
e2718
Posts: 33
Joined: 15 Nov 2015, 05:39

Extending Vrep OMPL API

Post by e2718 »

Have been looking at VREP's OMPL API and was wondering how to extend it. What I want is to put in a custom cost function for my robot. At the moment this doesn't seem to be supported in the API (just checks for collisions as far as I can tell). Was wondering how to add a cost function or more generally how to extend the VREP-OMPL interface in VREP.

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

Re: Extending Vrep OMPL API

Post by coppelia »

Hello,

you can extend the OMPL plugin functionality by directly modifying the OMPL plugin source code, and recompiling it. The source code is located in programming/v_repExtOMPL.

What you can currently also do it set-up a callback routine that will be in charge of validating a given state (by default that state validation will check for collision detection, but you are free to check for other things (e.g. a minimum distance, a cost threashold, etc.)). Have a look at this demo scene, where a minimum distance is checked in the state validation callback, in order to have the item find a path along the wall.

Cheers

Post Reply