Demonstration scenes using the agxTerrain API

agxTerrain is a library consisting of classes that implement a deformable terrain model based a symmetric 3D grid data structure with an overlapping surface heightfield that can be deformed by interacting Shovel objects performing digging motions, converting solid mass to dynamic mass which can be moved.

For more details, we refer to the technical report.

All Python based tutorials can be found in <agxDir>/data/python/tutorials. Most of the scripts can be started both with the python executable and agxViewer.
To run these tutorials, AGX needs to be installed on the computer. The .agxScene, .agxPy file suffix is associated to the application agxViewer which will be executed for the links below.

If you want to start one of the scripts manually in a command window, just write:

agxviewer agxTerrain\excavator_terrain.agxPy

When starting agxViewer via this page, it starts by default in paused mode. Remember to press 'e' to start simulation.

Press '1' to reload the scenes.

Keybindings and arguments for agxViewer

Basic excavator

Required licenses: AGXTerrain, AGXGranular

This script demonstrates the basic setup of an excavator controlled using the keyboard. Keyboard control:

  • Left/Right - Rotate arm
  • Up/Down - Control first link
  • 'a'/'z' - Control second link
  • 'd'/'c' - Control third link (bucket)
This demo show you how to:
  • Setup and configure a terrain
  • Build and configure a shovel

basic excavator terrain

Excavator demonstration

Required licenses: AGXTerrain, AGXGranular, AGXTracks

This script demonstrates a scene with an excavator and a deformable soil simulation.

An automatic digging sequence can be started by pressing '2'

The control of the tracks are done using the keyboard:

  • Left Forward: Home
  • Left Reverse: End
  • Right Forward: PageUp
  • Right Reverse: PageDown

Controlling the Cabin/Arm/Bucket:

Keyboard:

  • Arm down: 'z'
  • Arm up: 'a'
  • Bucket down: 's'
  • Bucket up: 'x'
  • Boom down: Down
  • Boom up: Up

Gamepad (Xbox like):

  • Arm: Left_Vertical
  • Bucket: Left_Horizontal
  • Boom: Right_Vertical
  • Cabin: Right_Horizontal
excavator terrain

Algoryx Wheel Loader

Required licenses: AGXTerrain, AGXGranular, AGXTires, AGXDriveTrain

This script demonstrates a custom Algoryx wheel loader and a deformable soil simulation.

The control of the vehicle is done using the keyboard (or a Gamepad):

  • Forward: 'a'
  • Reverse: 'b'
  • Turn Left: Left
  • Turn Right: Right

Control the Bucket:

  • Arm down: Down
  • Arm up: Up
  • Bucket down: 'x'
  • Bucket up: 'a'

Control the Camera:

  • PageUp: Lift the camera
  • PageDown: Lower the camera
algoryx_wheel_loader_terrain

Wheel loader demonstration

Required licenses: AGXTerrain, AGXGranular, AGXTires, AGXDriveTrain

This script demonstrates a scene with an wheel loader and a deformable soil simulation.

The control of the vehicle is done using the keyboard (or a Gamepad):

  • Forward: 'a'
  • Reverse: 'b'
  • Turn Left: Left
  • Turn Right: Right

Controlling the Bucket:

  • Arm up: Up
  • Arm down: Down
  • Bucket up: 's'
  • Bucket down: 'x'
wheel loader terrain

Various wheel loader scenarios

Required licenses: AGXTerrain, AGXGranular, AGXTires, AGXDriveTrain

This script show various wheel loader scenarios including one and two different wheel loaders

The control of the vehicle is done using the keyboard:

  • Forward: Up
  • Reverse: Down
  • Turn Left: Left
  • Turn Right: Right

Controlling the Bucket:

  • Arm down: 'z'
  • Arm up: 'a'
  • Bucket down: 'x'
  • Bucket up: 's'
wheel loader scenes

Bulldozer demonstration

Required licenses: AGXTerrain, AGXGranular, AGXTracks

This script demonstrates a scene with a bulldozer and a deformable soil simulation.

Control the tracks using:

  • Forward: Up
  • Reverse: Down
  • Turn left: Left
  • Turn Right: Right

Control blade with:

  • Up/down: 'a'/'z':
  • Tilt forward/backward: 's'/'x':
bulldozer terrain