Simulation-Animation-Deployment-for-Simulink-Compiler

版本 1.0.0 (7.1 MB) 作者: Weiwu Li
Example to demonstrate how to deploy simulation animation with Simulink Compiler and Simulink 3D Animation
164.0 次下载
更新时间 2020/11/11

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 (https://www.mathworks.com/help/slcompiler/ug/simulation-callbacks-for-deployable-applications.html) 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 (2024). Simulation-Animation-Deployment-for-Simulink-Compiler (https://github.com/mathworks/Simulation-Animation-Deployment-for-Simulink-Compiler/releases/tag/v1.0.0), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Robotics 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库