image thumbnail


버전 1.0.0 (6.83 MB) 작성자: Weiwu Li
Example to demonstrate how to deploy simulation animation with Simulink Compiler and Simulink 3D Animation

다운로드 수: 130

업데이트 날짜: 2020/11/11

GitHub에서 호스트

GitHub에서 라이선스 보기

Simulation animation deployment with Simulink Compiler and Simulink 3d Animation

Joint Space Manipulator Trajectory Following Example Copyright 2012-2020 The MathWorks, Inc.

This example shows users how to simulate trajectory tracking and visualize it in the deployed standalone executable using Simulink 3D Animation and Simulink Compiler. This example includes the following files/folder:

myrobot.slx: This file uses the polynomial trajectory block to interpolate five discrete sets of configurations and create continuous trajectories in the configuration space. The Joint Space Motion Model simulates the behavior of a robot under motion control and executes the trajectories. To visualize the simulation with animation while the simulation is running, the signal of the desired trajectory, actual trajectory, and the position are connected to different outports.

myrobotapp.mlapp : this file is the MATLAB App Designer App file, with which we can visualize the manipulator trajectory tracking in the MATLAB App and the deployed App. It utilizes the callback function simulink.compiler.setExternalOutputsFcn to process and visualize trajectory tracking data at each simulation step.You can refer to Simulation Callbacks ( for more information.

trajectories.mat: this file contains the pre-defined data of three trajectories; workcell_kinova.wrl: this is the VRML model for the animation of the simulation. workcell_textures folder: this includes all the graphics used by the WRML model.

To use this example, open the myrobotapp.mlapp file; click the run button in MATLAB to bring up the MATLAB App. Start the MATLAB App (it may take a couple of minutes to build) and you should see the MATLAB figures and the Simulink 3D Animation Viewer are updating while the simulation is running.

To compile the simulation as a standalone executable, in MATLAB command window use mcc -e myrobotapp.mlapp to generate a standalone executable. For this step, Simulink Compiler is required. To use this standalone executable, your machine must have MATLAB R2020b or MATLAB Runtime R2020b installed.

Products needed for using this example :

MATLAB; Simulink; Robotics System Toolbox; MATLAB Compiler; Simulink Compiler; Simulink 3D Animation

인용 양식

Weiwu Li (2022). Simulation-Animation-Deployment-for-Simulink-Compiler (, GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2020b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가

Community Treasure Hunt

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

Start Hunting!
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.