Main Content

Simulation 3D Physics Dump Truck

Dump truck physics model in 3D simulation environment

Since R2024a

  • Sim 3D Physics Dump Truck Block Icon

Libraries:
Robotics System Toolbox / Simulation 3D

Description

The Simulation 3D Physics Dump Truck block provides an interface to implement a dump truck using a pit-mining scene in a 3D simulation environment. It imports the DumpTruck asset for simulation in the Off-Road Mining Terrain scene using the Simulation 3D Scene Configuration block.

To use this block, ensure that the Simulation 3D Scene Configuration block is in your model. If you set the Sample time parameter of the Simulation 3D Physics Dump Truck block to -1, the block inherits the sample time specified in the Simulation 3D Scene Configuration block.

These illustrations provide insight into the dimensions and locations of the DumpTruck asset parameters relative to the coordinate axes, following the yaw(z), pitch(y), roll(x) sequence.

Unreal Engine Dump Truck Asset Dimensions

Unreal Engine Dump Truck Axle

Ports

Input

expand all

Velocity input to move the dump truck vehicle, specified as a positive or negative scalar value in the range of [-5 , 5]. Positive value of the Velocity input makes the vehicle move in forward direction whereas negative value makes it move in the reverse direction. Unit for the velocity input is meters per second (m/s).

To keep the input truck velocity steady, the system uses a P controller to internally estimate the required acceleration, taking feedback from the current truck velocity.

Data Types: double

Normalized input to drive dump truck, specified as a positive or negative scalar value in the range of [-1 , 1]. Positive value of the Throttle input makes the vehicle move in forward direction whereas negative value makes it move in the reverse direction.

The exact response is characterized by the vehicle powertrain. Maximum torque supported is 200 Newton-meters (Nm) and maximum RPM supported is 6000.

Dependencies

To enable this port, select the Enable throttle (disable velocity) input signal parameter. It replaces the Velocity input port with the Throttle input port.

Data Types: double

Steering angle input to provide direction to the dump truck vehicle, specified as a positive or negative scalar value in the range of [-0.7854 , 0.7854]​. Unit used is radian.

Data Types: double

Normalized deceleration torque input to reduce vehicle acceleration, specified as a nonnegative scalar value in the range of [0 , 1]. Maximum strength supported is 200 Newton-meters (Nm).

Dependencies

To enable this port, select the Enable foot brake input signal parameter.

Data Types: double

Truck bed angle input to raise truck bed up and lower it, specified as a nonnegative scalar value in the range of [0 , 0.7854]. Unit used is radian.

Dependencies

To enable this port, select the Enable lift angle input signal parameter.

Data Types: double

Output

expand all

Current ground truth world translation of dump truck, specified as a three-element row vector, in the form [x, y , z]. x, y , and z are the translations along the x, y, and z axes respectively. Units are in meters.

Dependencies

To enable this port, select the Enable ground truth world tranlsation output signal parameter under Dump Truck Outputs.

Data Types: double

Current ground truth world rotation of dump truck, specified as a three-element row vector, in the form [yaw, pitch, roll]. yaw, pitch, and roll are the rotations about the z, y, and x axes respectively. Units are in radians.

Dependencies

To enable this port, select the Enable ground truth world rotation output signal parameter under Dump Truck Outputs.

Data Types: double

Current dump truck velocity, specified as a positive or negative scalar value. Unit used is meters per second (m/s).

Dependencies

To enable this port, select the Enable velocity output signal parameter under Dump Truck Outputs.

Data Types: double

Current dump truck angular velocity, specified as a three-element row vector in the form [wx, wy, wz]. Unit used is radians per second.

Dependencies

To enable this port, select the Enable angular velocity output signal parameter under Dump Truck Outputs.

Data Types: double

Current ground truth world translation of truck bed, specified as a three-element row vector, in the form [x, y , z]. x, y , and z are the translations along the x, y, and z axes respectively. Units are in meters.

Dependencies

To enable this port, select the Enable ground truth world translation output signal parameter under Truck Bed Outputs.

Data Types: double

Current ground truth world rotation of dump truck, specified as a three-element row vector, in the form yaw, pitch, roll]. yaw, pitch, and roll are the rotations about the z, y, and x axes respectively. Units are in radian.

To enable this port, select the Enable ground truth world rotation output signal parameter under Truck Bed Outputs.

Data Types: double

Current truck bed current elevation, specified as a positive scalar value. Unit used is radian.

To enable this port, select the Enable current lift angle output signals parameter under Truck Bed Outputs.

Data Types: double

Parameters

expand all

To edit block parameters interactively, use the Property Inspector. From the Simulink® Toolstrip, on the Simulation tab, in the Prepare gallery, select Property Inspector.

Chassis

Dump truck chassis type, specified as Standard Dump Truck.

Dump truck body color, specified as one of these drop down options:

  • Red

  • Yellow

  • White

Dump truck identifier name, specified as a string scalar.

Initial Values

Dump Truck Initialization

Initial translation of dump truck vehicle, specified as a three-element row vector, in the form [x, y , z]. x, y , and z are the translations along the x, y, and z axes respectively. Units are in meters.

Initial rotation of dump truck vehicle, specified as a three-element row vector, in the form [yaw, pitch, roll]. yaw, pitch, and roll are the rotations about the z, y, and x axes respectively. Units are in radians.

Inputs

Dump Truck Inputs

Select this parameter to disable velocity and specify acceleration at input port to move the dump truck.

Specify foot brake torque at input port to de-accelerate the dump truck vehicle.

Truck Bed Inputs

Specify truck bed lift angle to enable TruckBedAngle signal at input port.

Outputs

Dump Truck Outputs

Select this parameter to output ground truth world translation of dump truck at DumpTruckTranslation output port.

Select this parameter to output ground truth world rotation of dump truck at DumpTruckRotation output port.

Select this parameter to output ground truth world rotation of dump truck at DumpTruckVelocity output port.

Select this parameter to output ground truth world rotation of dump truck at DumpTruckAngularVelocity output port.

Truck Bed Outputs

Select this parameter to output ground truth world translation of truck bed at TruckBedTranslation output port.

Select this parameter to output ground truth world rotation of truck bed at TruckBedRotation output port.

Select this parameter to output ground truth world rotation of truck bed at CurrentTruckBedAngle output port.

Version History

Introduced in R2024a