MATLAB Answers

Importing Robot Model in MATLAB

39 views (last 30 days)
I am trying to import the Franka Emika Panda robot in matlab for some simulation. However when I use robot = importrobot('frankaEmikaPanda'); it complains about invalid input argument. Can someone please let me know if it is possible or I have to design it myself ?

  1 Comment

Rik
Rik on 8 May 2020
[release information copied from duplicate]

Sign in to comment.

Accepted Answer

Cam Salzberger
Cam Salzberger on 8 May 2020
Hello Riddhiman,
The importrobot function is looking for the input argument to be either a URDF file or the URDF-formatted text. I believe the file extension is required. Ensure that there is a "frankaEmikaPanda.urdf" file in your current directory, and try:
robot = importrobot('frankaEmikaPanda.urdf');
-Cam

  1 Comment

Riddhiman Laha
Riddhiman Laha on 12 May 2020
Thank you Cam ! That worked.

Sign in to comment.

More Answers (0)

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!