Main Content

Offroad Pit Mining Scene

Offroad pit mining scene in Unreal Engine environment

Since R2024a

Description

The Offroad pit mining scene is an Unreal Engine® environment of an open-pit mining environment situated off the road, that consists of these following elements:

  • Excavation area – Central focus of mining operations within the scene.

  • Haul roads – Engineered pathways facilitating the movement of dump trucks and other heavy machinery.

  • Terraced levels – Levels enabling resource extraction at varying depths.

  • Safety berms – Elevated barriers located along the edges of haul roads and between terraces to ensure operational safety.

The scene is rendered using the Unreal Engine from Epic Games®.

Dump truck in pit mining scene

Setup

To visualize the offroad pit mining scene:

  1. Download the Offroad pit mining scene from the server.

  2. Add a Simulation 3D Scene Configuration block to your Simulink® model.

  3. In this block, set the Scene source parameter to Default Scenes.

  4. Set the enabled Scene name parameter to Offroad pit mining scene.

Layout

The layout follows Unreal Engine co-ordinate system which follows the left-hand rule world coordinate system. For more information, see Coordinate Systems for Unreal Engine Simulation in Robotics System Toolbox.

Top ViewSide View

Top view of pit mining site

Side view of pit mining site

Examples

expand all

This example shows how to download and access the Offroad pit mining scene map from the Simulation 3D Scene Configuration block, and use it to simulate a mining scenario in the Unreal Engine® simulation environment.

To use Simulation 3D Physics Dump Truck block, you must download and install the Robotics System Toolbox Offroad Autonomy Library support package from Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.

Download Offroad Pit Mining Scene

To begin, check the maps available in the server.

sim3d.maps.Map.server
             MapName                                   Description                          Version
    __________________________    ______________________________________________________    _______

    "Suburban scene"              "a suburban area beyond the city's border"                  "1"  
    "Offroad pit mining scene"    "An open pit mine with haul roads and terraced levels"      "1"  

Download the Offroad pit mining scene from the server.

sim3d.maps.Map.download("Offroad pit mining scene")
Map is successfully downloaded and is up-to-date

Check if the downloaded map is available in your local machine.

sim3d.maps.Map.local
             MapName                                   Description                          Version
    __________________________    ______________________________________________________    _______

    "Suburban scene"              "a suburban area beyond the city's border"                  "1"  
    "Offroad pit mining scene"    "An open pit mine with haul roads and terraced levels"      "1"  

Add Offroad Pit Mining Scene Map to Simulink Model

Open the Simulink model.

open_system("openPitMineScene");

Open the Simulation 3D Scene Configuration block mask and set the Scene name parameter to Offroad pit mining scene.

set_param("openPitMineScene/Simulation 3D Scene Configuration block", "SceneDesc", "Offroad pit mining scene");
open_system("openPitMineScene/Simulation 3D Scene Configuration block");

Add Dump Truck Vehicle

Open the Simulation 3D Physics Dump Truck block mask and set the Color parameter to Yellow or any other color of your choice. Specify the Name parameter as DumpTruck1.

open_system("openPitMineScene/Simulation 3D Physics Dump Truck block");

To change the perspective of the scene to follow behind the dump truck, set Scene view to DumpTruck1 in Simulation 3D Scene Configuration block.

Simulate Model

When the simulation begins, it can take a few seconds for the visualization engine to initialize, especially when you are running it for the first time.

sim("openPitMineScene","StopTime","10");

pitMineTruckExampleTrimmedGIF.gif

Version History

Introduced in R2024a