Showing robot in app designer UIAxes

7 ビュー (過去 30 日間)
Robert Pastor
Robert Pastor 2022 年 1 月 9 日
コメント済み: Hagyong Kihm 2025 年 10 月 21 日 4:52
I want to draw a robot using the show() function from Robotics System Toolbox in App designer UIAxes.
However, the function does not work if I put app.UIAxes in the first argument nor if I specify Axes as a Name-Value argument:
show(app.UIAxes, robot);
show(robot, 'Parent',app.UIAxes);
I'm getting:
Undefined function 'show' for input arguments of type 'matlab.ui.control.UIAxes'.
or:
The value of 'Parent' is invalid. Functionality not supported with UIAxes.
Is there any other way to get the show() function into app designer?

回答 (1 件)

Cris LaPierre
Cris LaPierre 2022 年 1 月 9 日
編集済み: Cris LaPierre 2022 年 1 月 9 日
Do you have the Robotics System Toolbox installed? Type ver in the command window to see. If not, and you have access to it, you can install it using the Add-Ons Explorer.
Once that toolbox is added, the correct syntax is option 2: 'Parent'.
  6 件のコメント
Lluís Ros
Lluís Ros 2023 年 10 月 5 日
Is there any progress on solving this issue? In the latest Matlab version, 2023b, rigidBodyTree.show() is still unable to plot the results on app.UIaxes ...
Hagyong Kihm
Hagyong Kihm 2025 年 10 月 21 日 4:52
I also want to use 'interactiveRigidBodyTree' and 'showFigure' in a uiaxes of an app designer in the future release to use interactive marker in an appdesigner.

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

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by