Example Code

Create the Manifest File for a Robotics Module Simulation

Code and Documents

Attachment

Download All

Overview
This VI will create a manifest file for a scene containing a robot and an obstacle.


Description
The Robotics Module requires a manifest file in order to start a simulation. This file contains information regarding the robots, scene and obstacles that will be simulated; while it may be created from a wizard, a new scene may be created or modified with the Offline Configuration Vis.


This VI creates a manifest file to be used in a simulation that includes a starter kit robot as well as a sphere. The properties of the robot and obstacle may be modified from their respective property nodes.


Additionally, if more obstacles or robots are required, it would be a matter of building them into an array before the Simulator Engine property node. This example also contains a small VI similar to the one that is created when using the wizard. Use it to load a simple simulation with the manifest file.


Steps to Execute

  1. Chose a location for the new manifest file.
  2. Run the VI
  3. Open the Simulation Viewer VI
  4. Enter the name of the manifest file that was just created. Ensure that this VI is in the same location as the manifest file.
  5. Run the Simulation Viewer VI.


Requirements
Software
LabVIEW 2012 with the Robotics Module


VI Snippet

Create_Simulation_Manifest_Snippet.png

National Instruments
Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors