Docs menu

// Command reference

simforge import

Generated from the CLI's own help (CLI 0.2.0-rc.5). Global flags and exit codes are on the reference index.

All commands

simforge import log

A recording (simforge.recording/v1 or log-scene/v1) as a scenario package: scenario, recording, trace, import report

simforge import log [OPTIONS] --map <DIR|NAME@VERSION> --out <DIR> <RECORDING>

Runs on: local runtime, or hosted with --cloud

Argument / flagNotesWhat
<recording>requiredThe recording (JSON, optionally gzipped). With --cloud: The log: a recording (JSON, optionally gzipped) or a ROS 2 MCAP lidar log
--map DIR|NAME@VERSIONrequiredThe installed map: a map directory, or name[@version] under the maps cache (semantic profile)
--out DIRrequiredThe package directory to write (created; must be empty if it exists)
--report REPORT.JSONThe register step's import report (simforge.import-report/v1 fields: methods, registration, laneMatch, droppedActors), merged into the package's
--cache-root DIRMap cache root to search for NAME@VERSION. Default: SIMFORGE_MAPS_CACHE_ROOT, then $XDG_DATA_HOME/simforge/maps
--assets-root DIRActor-asset root whose closure restricts catalog binding to renderable models. Default: SIMFORGE_ACTOR_ASSETS_ROOT, then $XDG_DATA_HOME/simforge/actor-assets
--actor-closure SHA256The actor closure the package pins (default: this CLI's pinned public closure)
--allow-no-collidersSimulate without map colliders when the map publishes none (recorded; the default refuses)
--name NAMEThe scenario's name. Default: the file's name
--max-cost CENTSExplicit maximum cloud cost in cents
--lidar-topic TOPICMCAP only: the lidar topic, when the log has several
--gnss-topic TOPICMCAP only: the GNSS topic, when the log has several
--ego-dims L,W,HrepeatableMCAP only: the ego's box in metres, length,width,height (perceive's default otherwise)
--ego-rear-axle-to-centre METRESMCAP only: how far the ego box's centre is ahead of base_link (the rear axle), metres

simforge import openscenario

An OpenSCENARIO 1.x XML file as a scenario package; its map is found by the OpenDRIVE's sha256, and every element it cannot represent is refused by name

simforge import openscenario [OPTIONS] --out <DIR> <FILE.xosc>

Runs on: local runtime

Argument / flagNotesWhat
<file.xosc>requiredThe OpenSCENARIO 1.x XML file; its catalogs and OpenDRIVE are read beside it
--out DIRrequiredThe package directory to write (created; must be empty if it exists)
--map-version DIR|NAME@VERSIONThe map version: a map directory, or name[@version] under the maps cache. It must hold the file's OpenDRIVE. Default: the installed map whose OpenDRIVE has the file's sha256
--ego ENTITYThe ego entity (default: one named ego or hero, else the first vehicle)
--clip-seconds SThe clip, when the storyboard does not stop at a simulation time
--cache-root DIRMap cache root to search. Default: SIMFORGE_MAPS_CACHE_ROOT, then $XDG_DATA_HOME/simforge/maps
--assets-root DIRActor-asset root whose closure restricts catalog binding to renderable models. Default: SIMFORGE_ACTOR_ASSETS_ROOT, then $XDG_DATA_HOME/simforge/actor-assets
--actor-closure SHA256The actor closure the package pins (default: this CLI's pinned public closure)
--allow-no-collidersSimulate without map colliders when the map publishes none (recorded; the default refuses)