Vehicle To World
R2026bConvert actors from ego vehicle coordinates to world coordinates
Libraries:
Automated Driving Toolbox /
Driving Scenario and Sensor Modeling
Description
The Vehicle To World block converts actor poses from the vehicle coordinates of the input ego vehicle to world coordinates. Use this block to convert non-ego actor poses output by the Scenario Reader block into world coordinates for use with the 3D simulation environment. Before using these output poses to specify vehicle positions in the 3D environment, first convert them from the cuboid to the 3D simulation world coordinate system by using a Cuboid To 3D Simulation block. For an example of this workflow, see the Visualize Sensor Data from Unreal Engine Simulation Environment example.
Examples
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"drivingscenarioandsensors/Vehicle To World"
Example: add_block("drivingscenarioandsensors/Vehicle To World","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2020a
