loadvehicle
R2026bSyntax
Description
Add-On Required: This feature requires the Robotics System Toolbox Offroad Autonomy Library add-on.
This function loads a predefined offroad vehicle model from the Offroad Vehicle Library as a rigidBodyTree object with attached visual and collision meshes. It also
returns vehicle parameters such as wheel base, track width, turning radius, and a kinematic
motion model. Use this function to get started with visualizing, simulating, and virtually
testing offroad vehicles.
loads an offroad vehicle model from the Offroad Vehicle Library as a
vehicle = loadvehicle(vehicleType)rigidBodyTree object specified by the vehicle type.
[
also returns additional information about the vehicle as a structure containing
kinematic parameters, performance limits, and a motion model.vehicle,vehicleData] = loadvehicle(vehicleType)
[
specifies additional options using one or more name-value arguments. For example,
vehicle,vehicleData] = loadvehicle(vehicleType,Name=Value)DataFormat="row" sets the data format for kinematics and
dynamics functions of the rigid body tree model.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Tips
If you customize the vehicle
rigidBodyTree, you can simulate the modified vehicle in Unreal Engine® using the corresponding Simulation 3D Offroad Vehicle block with the Simulation 3D Four-Wheel Ground Following block. Set the parameters of the Simulation 3D Four-Wheel Ground Following block using the fields invehicleDataand thevehiclerigid body tree.
Version History
Introduced in R2026b



