I am trying to use V-REP's OMPL to motion plan for a robot. I am finding that simOMPL.solve() returns true despite the "solution" returned by simOMPL.getPath() not reaching the goal state. I don't know what is going wrong, as far as I can tell everything I am doing is correct.

I'm not sure wether OMPL would return the last state corresponding to goal.

Can you double-check that the last state in the path returned by OMPL cannot be connected (i.e. by linear interpolation) to the goal state? (you may want to add some obstacles to your example to have a realistic testcase)

Not returning a path to the goal would be very surprising behavior, if that is the case it should be documented.

Edit: I tried adding an obstacle preventing straightline solutions and the strange behavior persists, specifically the last state in the path is clearly not connectable to the specified goal (I put a table in the way).