Can't find show() function

4 ビュー (過去 30 日間)
ADRIAN Khor
ADRIAN Khor 2022 年 3 月 3 日
コメント済み: Cris LaPierre 2022 年 3 月 4 日
Hey
I installed the navigation toolbox, and am trying to use some stuff from the hybridAStar planner.
One of the functions used is
% Visualize the output path
show(planner)
when I open it I get this function, which doesn't seem right. Opening help, also opens up a different page from the one that I know the function relates to.
function show(o)
[SL: removing the MathWorks function show; it is not the one for planner objects]
This links to the function I want,
How do I find the actual code for the show() that I am looking for?
  1 件のコメント
Walter Roberson
Walter Roberson 2022 年 3 月 3 日
編集済み: Walter Roberson 2022 年 3 月 3 日
It was introduced in the release you are using so it should work, provided that planner is the correct object type. What shows up for class(planner) ?
The function appears to be an object method. I do not have that toolbox handy so I am not sure of the details at the moment.

サインインしてコメントする。

回答 (2 件)

Steven Lord
Steven Lord 2022 年 3 月 4 日
Can you confirm that your planner variable is a plannerHybridAStar object? What does this code display?
isa(planner, 'plannerHybridAStar')
class(planner)
  1 件のコメント
Cris LaPierre
Cris LaPierre 2022 年 3 月 4 日
I believe the code is from this doc example.

サインインしてコメントする。


Cris LaPierre
Cris LaPierre 2022 年 3 月 4 日
You are editing the show function, which is part of the Robotics System Toolbox, and not the class method. You would have to open the entire class .m file in order to view/edit the method.
edit plannerHybridAStar.m

カテゴリ

Help Center および File ExchangeMotion Planning についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by