how to obtain the tree from the manipulatorRRT function

3 次查看(过去 30 天)
I’d like to save and visualize the whole tree the function manipulatorRRT creates internally and not only the path connecting the starting point to the goal (interpPath). Can you please help me? Thank you in advance.
rrt = manipulatorRRT(robot, env);
rrt.SkippedSelfCollisions = "parent";
rrt.IgnoreSelfCollision = true;
rrt.MaxIterations = 5000;
start = homePosition;
goal = [2.3907 -1.8148 -1.3379 -3.0796 1.8761 2.3166];
path = rrt.plan(start, goal);
interpPath = interpolate(rrt,path);

采纳的回答

Karsh Tharyani
Karsh Tharyani 2023-8-15
Hi Bianca, thanks for posting your question. Unfortunately, there is no user facing API that will enable you to do so, and I have conveyed this enhancement request to the internal Development team at MathWorks.
I also suggest that you still reach out to Technical Support with more details around your question and to help us better investigate this issue and should there be a possible workaround.
You can reach them via https://www.mathworks.com/support/contact_us.html to create a service request.
Best,
Karsh

更多回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by