%% Import Simscape™ Multibody™ model to RigidBodyTree Object
% Import an existing Simscape™ Multibody™ robot model into the Robotics System Toolbox™ as a rigidBodyTree object.
% Open the Simscape™ Multibody™ model. This is a model for a humanoid robot.

open_system('example_smhumanoidrobot.slx')

%
% Import the model.

[robot,importInfo] = importrobot(gcs)

%
% Display details about the created rigidBodyTree object.

showdetails(importInfo)

% Copyright 2018 The MathWorks, Inc.