VR-Link is distributed with a number of examples.
These examples can be useful as test federates, or just starting points for VR-Link development.
Simple Examples Connecting to an Exercise
- Simple Talk/Listen - A simple example showing how to use VR-Link's API to publish an object to the network (Talk) and to subscribe and listen to updates from the Talk application via the Listen application.
More Complex Examples
- F18 - A complex F18 example that shows interactions and emitter systems in a full federate.
- Embark - A simple example which embarks a helicopter on an aircraft carrier.
Specific Functionality Examples
- ListenC - Listen for the C language. Shows how to use VR-Link with C++ wrappers.
- Articulated Parts - A simple function which manipulates Articulated Parts.
- Performance Measuring - A simple function which uses a high resolution timer to measure performance for some code.
- Link 16 Helper Classes - Functions that demonstrate how to use the Link 16 helper classes for Radio Transmitter and Signal classes.
- Replacing the dead-reckoner/smoother - Functions that demonstrate how to replace the dead-reckoner or smoother for reflected entities.
- Threading - A simple program to show VR-Link threading classes.
- Multithreading publishers - an example that creates multiple F18 entities and demonstrates how to parallelize the simulation.
- Data Interactions - a simple example that demonstrates how to use data interactions to encode and decode any arbitrary information.
- Launcher - a simple example that demonstrates how command-line/MTL parameters could be added to a VR-Link application.
Object Publisher Examples
HLA Examples
Simple examples using Special HLA features:
- Data Distribution Management(DDM) Talk/Listen - Shows how to use VR-Link's API to activate the HLA DDM services to perform geographic filtering. The DDM Listen application will only see updates from the DDM Talk example when the Talk update region and Listen subscribe region overlap.
- Time Managed Talk/Listen - A modified version of the talk/listen example that uses Time Management.
- MC02 Talk/Listen - A modified version of the talk/listen example that uses MC02 standard DDM.
- Extended RPR FOM Talk/Listen - An example that demonstrates how to extend the RPR FOM from an existing RPR FOM Class Object.
- Evolved Talk/Listen - A simple example that demonstrates the use of Create and Join FOM Modules specific to HLA1516Evolved. The Listen application adds a join FOM module to the FDD that contains an Update Rate entry. It subscribes to Entities at that reduced Update Rate. ListenEvolved prints out information about the first Entity it discovers, including the Name of the producing Federate if provided by the RTI.
- Ownership Handler - an example that demonstrates ownership management in HLA
HLA Extension Examples
HLA FOM Mapping Examples
Tools For Debugging
- HLA Netdump - Prints out HLA interactions and object updates.