The performance of the plannerBiRRT can be influenced by various parameters. You can try increasing the value of the "MaxConnectionDistance" parameter, this could resolve the issue you are encountering. I confirmed this through testing the provided example within the plannerBiRRT package, which is accessible here: Create bidirectional RRT planner for geometric planning - MATLAB - MathWorks By default, the generated path tends to be longer. However, upon adjusting the "MaxConnectionDistance" value to 0.3, a shorter path was successfully obtained.
Path generated with default parameters:
Path generated after increasing “MaxConnectionDistance” from 0.1 to 0.3:
Hope this helps.