Skip to content

Recorded tracks visualization plugin built on Unreal Engine. Airsim compatible.

License

Notifications You must be signed in to change notification settings

BrainGardenAI/TrackViz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TrackViz

A simple UE4 plugin to visualize AirSim track records. Just clone this repo into Plugins\TrackViz directory in your UE4 project and load the level you want to visualize tracks in.

default

Key Features

  • Airsim recorded tracks visualization
  • Camera view for the selected point of the track
  • Showing orientation vector
  • Connecting corresponding points of the track s

How to Start It

Use TrackVizGameMode as a default game mode to use this plugin. Track records are searched by default in FPaths::ProjectDir() + TEXT("tracks"). FPaths::ProjectDir() is a root directory in the case of UE4 project and <project name> directory in the case of packaged project (right next to Binaries, Content and Saved directories). This directory is searched for .txt files with CSV layout. POS_X, POS_Y and POS_Z fields are used as data for track visualization. PlayerStart actor is used as a starting point for all tracks. Track colors can be specified right in the name of the .txt file (make sure they are either in the beginning or the end of the file name, not counting the extension). Available colors can be found in UE4 documentation on the FColor class in the "Constants" section. If colors are not specified, they will be assigned automatically. The legend is displayed in the app.

Track directory path and start tracks position is customizable by modifying TrackVizGameMode class or by subclassing it with a Blueprint game mode and changing startPosition, tracksDir and isRelativePath properties in the UE4 editor.

How to Use It

Use WSAD + mouse to navigate through the scene. Left-click on the cone to put the camera to the point position. Right-click to show the point orientation vector and connection with the corresponding points of the other tracks (if available).