Skip to main content

Play back recordings

RemotiveTopology includes tooling to work with recordings in an easy way.

Run​

In order to playback a recording you need to start a topology instance that supports the platform used by the recording. The instantiated platform must have all channels that are used by the recording mapping! Of course the instance may have channels that aren't used by the recording, i.e. the recording can be from a subset of channels.

Notice that you don't need to create a unique instance for every recording session! If several recordings are done using the same platform, then you can reuse the same instance for playback.

To create a simple instance using default settings and without any behavioral models you can use the following command:

remotive topology recording-session instantiate <source.recordingsession.yaml> <target.instance.yaml>

Then build and run the instance:

remotive topology build -f <target.instance.yaml> build
docker compose -f build/<instance>/docker-compose.yml

When building you can also add settings by adding more instance.yaml files. For example a can_over_udp.instance.yaml:

remotive topology build -f <target.instance.yaml> -f can_over_udp.instance.yaml build

Advanced​

Custom data​

It can be useful to playback data that aren't part of the vehicle platform, for example to emulate sensor data such as GPS locations. To achieve this you have to:

  • create CSV file
  • describe your custom signals in a signal database (for example using VSS vspec)
  • create a .platform.yaml that adds a channel with your custom database

Adding a VSS channel and connecting your ECU to that channel:

schema: remotive-topology-platform:0.18
channels:
VSS:
type: can
database: ./databases/vss_rel_4.2.yaml

ecus:
YOUR_ECU:
channels:
VSS:

Notice that this example create a CAN channel called VSS. The reason for using CAN is that it provides broadcast to all connected ECUs with very little configuration, everything is handled automatically by RemotiveTopology.

See RemotiveCar Android example for more details.