@xviz/server

XVIZ Server module

Usage no npm install needed!

<script type="module">
  import xvizServer from 'https://cdn.skypack.dev/@xviz/server';
</script>

README

@xviz/server Overview

A server to handle hosting XVIZ data from multiple data sources.

The server operates by defining a middleware stack and options will control how that stack is structured and how requests and data are processed through the stack.

The server tries to preserve a no-touch data flow, but does allow conversions and mutation of data.

Examples

For a list of all options type ./bin/babel-xvizserver --help.

KITTI data

This example shows how to server the KITTI data once converted.

$ cd modules/server
$ ./bin/babel-xvizserver -d ../../data/generated/kitti/2011_09_26/2011_09_26_drive_0005_sync

Test Scenarios

The default server supports test XVIZ scenarios that can be accessed at the following URL's:

  • /scenario-circle
  • /scenario-straight

Try this example with a local server running.

The scenarios support a few query parameters you can play with:

common options

  • hz (Number) - number of frames per second
  • duration (Number) - length of the scenario generated in seconds
  • speed (Number) - meters per second of the vehicle
  • live (Boolean) - Treat the data stream as 'live' which means no start/end time in the metadata

scenario-circle

  • radius (Number) - size of the circle the vehicle traverse in meters