필터 지우기
필터 지우기

Update URDF Robot Model in Figure

조회 수: 5 (최근 30일)
Matthew Haahr
Matthew Haahr 2021년 9월 13일
이동: Remo Pillat 2023년 10월 15일
I'm importing a URDF using importrobot and I'm trying to add it to an already existing figure (which I can do using hold on) but I'm having issues updating that figure.
I use set to change the positions of the elements on the figure, is there an equivalent for show (with reference to robot model)
  댓글 수: 1
Matthew Haahr
Matthew Haahr 2021년 9월 14일
Hi Krash,
I figured out the issue, "show" automatically re-enables the 'PreservePlot' flag each time it is called and that was cause the persistant robot models in the figure. finding that flag resolved the issue.
I saw the 'FastUpdate' flag earlier, but I am collaborting with people using MATLAB R2020a which had issues setting that option.
Thanks,
Matthew

댓글을 달려면 로그인하십시오.

채택된 답변

Karsh Tharyani
Karsh Tharyani 2021년 9월 14일
이동: Remo Pillat 2023년 10월 15일
Hi Matthew,
Can you clarify what do you mean by updating the figure? Also, can you clarify which elements are you referring to in the figure?
I am not sure if this helps, but you can use show on the output rigidBodyTree object from importrobot. Given a joint configuration (a row/column vector of joint positions on the rigidBodyTree), the pose of the various visualized rigid bodies on the robot should update.
I would also like to draw your attention to the FastUpdate option of the "show" function on the robot; this shall fast update the pose of the bodies on the robot in the figure and is particularly useful for visualizing an array of joint configurations in a looping construct (say inside a "for" loop).
Best,
Karsh

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Manipulator Modeling에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by