Roads Sensor
Provides information about nearby road segments including lane positions, road edges, speed limits, and surface types. Used for autonomous driving research.
Provides information about nearby road segments including lane positions, road edges, speed limits, and surface types. Used for autonomous driving and ADAS research where the vehicle needs awareness of road geometry.
Public API
| Function | Signature | Description |
|---|---|---|
create | (data) | Creates a new roads sensor instance with specified detection range and update rate. |
Usage Example
-- Create a roads sensor
extensions.tech_roadsSensor.create({
updateTime = 0.1,
})See Also
Powertrain Sensor
Exposes powertrain device data (RPM, torque, gear, temperatures) as a pollable sensor. Provides structured access to engine and transmission state for external tools.
TechCore Module Reference
Extension defined in `lua/vehicle/extensions/tech/techCore.lua`. This is the **vehicle-side socket server** for BeamNG.tech's external research API. It opens a TCP connection that allows external tool