Skip to content

Commit d231983

Browse files
authored
Update server references to point to new @xviz/server and add deprecation notice to old script (#473)
1 parent 4e862a7 commit d231983

File tree

6 files changed

+30
-18
lines changed

6 files changed

+30
-18
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ This repo contains the following submodules:
1313

1414
- `@xviz/builder` - Node.js utilities for converting data to the XVIZ protocol.
1515
- `@xviz/cli` - CLI utilities for the XVIZ protocol.
16+
- `@xviz/io` - Library for loading, accessing, and manipiulating XVIZ data.
1617
- `@xviz/parser` - Client-side decoder and synchronizer for consuming XVIZ data.
1718
- `@xviz/schema` - Validation and schemas for the XVIZ protocol.
19+
- `@xviz/server` - A complete server module supporting the full XVIZ protocol.
1820

1921
And examples:
2022

2123
- Sample converters that convert open datasets such as
2224
[KITTI](http://www.cvlibs.net/datasets/kitti/raw_data.php) and [Nutonomy](https://nuscenes.org) to
2325
the XVIZ protocol.
24-
- A minimal Node.js-based XVIZ stream server.
2526

2627
## Quick start
2728

docs/getting-started/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ relationships.
2929
This tutorial will also cover some optional data generation to showcase some XVIZ features that are
3030
not currently present in the KITTI data but are supported by XVIZ and streetscape.gl
3131

32-
Once the XVIZ data has been generated we will cover how to server up the XVIZ data using our simple
33-
[XVIZ Server](/docs/getting-started/xviz-server.md) and view it using the example
34-
[XVIZ Viewer](/docs/example-guide/xviz-viewer.md) web application.
32+
Once the XVIZ data has been generated we will cover how to server up the XVIZ data using our
33+
[XVIZ Server](/docs/getting-started/xviz-server.md) and view it using the
34+
[streetscape.gl starter kit](https://github.com/uber/streetscape.gl/blob/master/docs/get-started/starter-kit.md).

docs/getting-started/running-the-example.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,22 @@ $ yarn start -d 2011_09_26/2011_09_26_drive_0005_sync --image-max-width=300 --di
5454
Run the [example XVIZ server](/docs/getting-started/xviz-server.md) to serve your converted data:
5555

5656
```
57-
$ cd examples/server
58-
$ yarn # install dependencies
59-
$ yarn start -d kitti/2011_09_26/2011_09_26_drive_0005_sync
57+
$ yarn bootstrap # Install deps and build modules
58+
$ ./modules/server/bin/babel-xvizserver -d data/generated/kitti/2011_09_26/2011_09_26_drive_0005_sync --port 8081
6059
```
6160

62-
To see a full list of options of the stream server, run `yarn start --help`.
61+
To see a full list of options of the stream server, run
62+
`./modules/server/bin/babel-xvizserver --help`.
6363

6464
# Start Client Application
6565

6666
See
67-
[streetscape.gl starter kit](https://github.com/uber/streetscape.gl/blob/master/docs/get-started/starter-kit.md).
67+
[streetscape.gl starter kit](https://github.com/uber/streetscape.gl/blob/master/docs/get-started/starter-kit.md)
68+
to get the web application setup.
69+
70+
Once you have finished the setup the only change to run against the local server you started above
71+
is the following:
72+
73+
```
74+
streetscape.gl/examples/get-started$ yarn start-streaming-local
75+
```

docs/getting-started/xviz-server.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,22 @@ This simple XVIZ Server will read XVIZ index and data files produced from the
66
[XVIZBuilder](/docs/api-reference/xviz-builder.md) and server them over a web socket. The server
77
supports the basic [XVIZ Session](/docs/protocol-schema/session-protocol.md).
88

9-
A more capable server is planned in our [Roadmap](/docs/overview/roadmap.md).
10-
119
## Quick Start
1210

13-
Change to the server directory
11+
Run our bootstrap to install dependencies and build the modules if you have not already
1412

1513
```
16-
$ cd ./examples/server
14+
$ yarn bootstrap
1715
```
1816

19-
Install dependencies
17+
Change to the @xviz/server module directory
2018

2119
```
22-
$ yarn
20+
$ cd ./modules/server
2321
```
2422

2523
Launch the server point it at your XVIZ data folder
2624

2725
```
28-
$ node index.js -d <XVIZ data folder>
26+
$ ./bin/xvizserver -d <XVIZ data folder> --port 8081
2927
```

examples/server/xviz-serve-data.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,13 @@ function packFrame({json, isBinary}) {
698698
}
699699

700700
// Main
701-
/* eslint-disable complexity */
701+
/* eslint-disable complexity, max-statements */
702702
module.exports = function main(args) {
703+
console.warn('!!!');
704+
console.warn(
705+
'!!! NOTE: This script has been deprecated and will eventually be removed. Please switch to the @xviz/server module and scripts as a replacement'
706+
);
707+
console.warn('!!!');
703708
const runScenario = args.scenario.length > 0;
704709

705710
// Until scenarios generate data in a way that is compatible with

scripts/run-kitti-example.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if [ "$force_xviz_conversion" = "true" ] || ([ ! -f "${OUTPUT_DIR}/1-frame.json"
6666
fi
6767

6868
# Start server & web app
69-
cd "${SCRIPT_DIR}/../examples/server" && node ./index.js -d "${OUTPUT_DIR}" &
69+
cd "${SCRIPT_DIR}/../modules/server" && ./bin/xvizserver -d "${OUTPUT_DIR}" --port 8081 &
7070
pids[1]=$!
7171

7272
echo "##"

0 commit comments

Comments
 (0)