File tree Expand file tree Collapse file tree 6 files changed +30
-18
lines changed Expand file tree Collapse file tree 6 files changed +30
-18
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,16 @@ This repo contains the following submodules:
13
13
14
14
- ` @xviz/builder ` - Node.js utilities for converting data to the XVIZ protocol.
15
15
- ` @xviz/cli ` - CLI utilities for the XVIZ protocol.
16
+ - ` @xviz/io ` - Library for loading, accessing, and manipiulating XVIZ data.
16
17
- ` @xviz/parser ` - Client-side decoder and synchronizer for consuming XVIZ data.
17
18
- ` @xviz/schema ` - Validation and schemas for the XVIZ protocol.
19
+ - ` @xviz/server ` - A complete server module supporting the full XVIZ protocol.
18
20
19
21
And examples:
20
22
21
23
- Sample converters that convert open datasets such as
22
24
[ KITTI] ( http://www.cvlibs.net/datasets/kitti/raw_data.php ) and [ Nutonomy] ( https://nuscenes.org ) to
23
25
the XVIZ protocol.
24
- - A minimal Node.js-based XVIZ stream server.
25
26
26
27
## Quick start
27
28
Original file line number Diff line number Diff line change @@ -29,6 +29,6 @@ relationships.
29
29
This tutorial will also cover some optional data generation to showcase some XVIZ features that are
30
30
not currently present in the KITTI data but are supported by XVIZ and streetscape.gl
31
31
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) .
Original file line number Diff line number Diff line change @@ -54,14 +54,22 @@ $ yarn start -d 2011_09_26/2011_09_26_drive_0005_sync --image-max-width=300 --di
54
54
Run the [ example XVIZ server] ( /docs/getting-started/xviz-server.md ) to serve your converted data:
55
55
56
56
```
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
60
59
```
61
60
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 ` .
63
63
64
64
# Start Client Application
65
65
66
66
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
+ ```
Original file line number Diff line number Diff line change @@ -6,24 +6,22 @@ This simple XVIZ Server will read XVIZ index and data files produced from the
6
6
[ XVIZBuilder] ( /docs/api-reference/xviz-builder.md ) and server them over a web socket. The server
7
7
supports the basic [ XVIZ Session] ( /docs/protocol-schema/session-protocol.md ) .
8
8
9
- A more capable server is planned in our [ Roadmap] ( /docs/overview/roadmap.md ) .
10
-
11
9
## Quick Start
12
10
13
- Change to the server directory
11
+ Run our bootstrap to install dependencies and build the modules if you have not already
14
12
15
13
```
16
- $ cd ./examples/server
14
+ $ yarn bootstrap
17
15
```
18
16
19
- Install dependencies
17
+ Change to the @ xviz/server module directory
20
18
21
19
```
22
- $ yarn
20
+ $ cd ./modules/server
23
21
```
24
22
25
23
Launch the server point it at your XVIZ data folder
26
24
27
25
```
28
- $ node index.js -d <XVIZ data folder>
26
+ $ ./bin/xvizserver -d <XVIZ data folder> --port 8081
29
27
```
Original file line number Diff line number Diff line change @@ -698,8 +698,13 @@ function packFrame({json, isBinary}) {
698
698
}
699
699
700
700
// Main
701
- /* eslint-disable complexity */
701
+ /* eslint-disable complexity, max-statements */
702
702
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 ( '!!!' ) ;
703
708
const runScenario = args . scenario . length > 0 ;
704
709
705
710
// Until scenarios generate data in a way that is compatible with
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ if [ "$force_xviz_conversion" = "true" ] || ([ ! -f "${OUTPUT_DIR}/1-frame.json"
66
66
fi
67
67
68
68
# 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 &
70
70
pids[1]=$!
71
71
72
72
echo " ##"
You can’t perform that action at this time.
0 commit comments