streetscape.gl icon indicating copy to clipboard operation
streetscape.gl copied to clipboard

Cant visualize XViz generated data

Open MatthiasThDs opened this issue 6 years ago • 14 comments

Hello, I get the following errors with a fresh install from today. errors

I installed XViz using get started tutorial: download-kitti-data.sh run-kitti-example.sh

After that i installed streetscrape.gl using get started tutorial

I copied the generated "2011_09_26_drive_0005_sync" files (0-frame.json and xxx-frame.glb) from xviz/data/generated to streetscape.gl\examples\get-started\ and changed the examples/get-started/...file.js to:

export default new XVIZFileLoader({
  timingsFilePath:
    './2011_09_26_drive_0005_sync/0-frame.json',
  getFilePath: index =>
    `./2011_09_26_drive_0005_sync/${index + 1}-frame.glb`,
  worker: true,
  maxConcurrency: 4
});

Whats wrong? :) Best regards Matthias

MatthiasThDs avatar May 09 '19 14:05 MatthiasThDs

I just did a clean reinstall and it is working. Can you document the commands you used to install the dependencies?

Pessimistress avatar May 09 '19 16:05 Pessimistress

Hi,

I realized that the problem might be that I generated the glb files on a linux machine and then copied them over to windows. On Windows then i get the error documented above. If i use the original glb files from the website (avs.auto) everything works fine.

I'll ask in the xviz project how to generate the files on windows. Best regards Matthias

MatthiasThDs avatar May 13 '19 08:05 MatthiasThDs

@MatthiasThDs You should not have to copy the files over if you are using the instruction for the quick start. The script ./scripts/run-kitti-example.sh should run the conversion and then start the XVIZ server.

Then in streetscape.gl you do have to run yarn start-streaming-local. Running yarn start` won't connect to the local server i believe which is why you probably copied them over. I will make this clearer in the docs.

Also curious on the linux <-> windows and if that was a problem or not

twojtasz avatar Jun 05 '19 05:06 twojtasz

First, you have to signup in https://www.mapbox.com/ Then go https://account.mapbox.com/access-tokens/ and create a token. Copy and add it in the constants.js file or directly pass to LogViewer like below.

<LogViewer {other_props} mapboxApiAccessToken="generated_token" />

Hope this will help you. Thank you

srikanth-kuriyala avatar Jun 13 '19 10:06 srikanth-kuriyala

In contstants.js file where to add the access token?

VijeetBenni avatar Sep 13 '19 10:09 VijeetBenni

With out the mapbox,

First, you have to signup in https://www.mapbox.com/ Then go https://account.mapbox.com/access-tokens/ and create a token. Copy and add it in the constants.js file or directly pass to LogViewer like below.

<LogViewer {other_props} mapboxApiAccessToken="generated_token" />

Hope this will help you. Thank you

In contstants.js file where to add the access token?

VijeetBenni avatar Sep 13 '19 10:09 VijeetBenni

First, you have to signup in https://www.mapbox.com/ Then go https://account.mapbox.com/access-tokens/ and create a token. Copy and add it in the constants.js file or directly pass to LogViewer like below.

<LogViewer {other_props} mapboxApiAccessToken="generated_token" />

Hope this will help you. Thank you

Even if Mapbox isnt available , streetscape should visualize the lidar points and the bounding boxes right? I am not able to see them. But I am able to see acceleration, velocity, wheel values changing when streaming.

VijeetBenni avatar Sep 13 '19 10:09 VijeetBenni

WIthout map box token streetscape won't show map and lidar data. You can find constants.js file in /streetscape/examples/get-started/src/

srikanth-kuriyala avatar Sep 14 '19 09:09 srikanth-kuriyala

WIthout map box token streetscape won't show map and lidar data. You can find constants.js file in /streetscape/examples/get-started/src/

Thanks.

Does Kitti dataset providing the geo coordinates to mapbox? I am running the kitti converter to convert kitti data into XVIZ format and using it display in streetscape.

For mapbox token I just set the environment variable instead of adding it in constants.js file, will it work?

VijeetBenni avatar Sep 16 '19 07:09 VijeetBenni

Tried providing token in constants.js, no luck yet.

VijeetBenni avatar Sep 16 '19 08:09 VijeetBenni

First, you have to signup in https://www.mapbox.com/ Then go https://account.mapbox.com/access-tokens/ and create a token. Copy and add it in the constants.js file or directly pass to LogViewer like below. <LogViewer {other_props} mapboxApiAccessToken="generated_token" /> Hope this will help you. Thank you

Even if Mapbox isnt available , streetscape should visualize the lidar points and the bounding boxes right? I am not able to see them. But I am able to see acceleration, velocity, wheel values changing when streaming.

While creating the token, what all scopes need to select in secret?

VijeetBenni avatar Sep 16 '19 08:09 VijeetBenni

Hi,

I realized that the problem might be that I generated the glb files on a linux machine and then copied them over to windows. On Windows then i get the error documented above. If i use the original glb files from the website (avs.auto) everything works fine.

I'll ask in the xviz project how to generate the files on windows. Best regards Matthias

Hi,

I realized that the problem might be that I generated the glb files on a linux machine and then copied them over to windows. On Windows then i get the error documented above. If i use the original glb files from the website (avs.auto) everything works fine.

I'll ask in the xviz project how to generate the files on windows. Best regards Matthias

i have the same question. it can not find local file . this is my config 图片 and the bower show: 图片

How to do ?

afei26579 avatar Oct 25 '19 09:10 afei26579

Anyone got the solution?

srikanth-kuriyala avatar Mar 17 '20 13:03 srikanth-kuriyala

Anyone got the solution?

I placed the "data" folder inside the public folder and I tried in the below way, It's working.

import { resolve } from 'path';

const DATA_DIR = resolve(__dirname, "./data");

export default new XVIZFileLoader({
  timingsFilePath: `${DATA_DIR}/0-frame.json`,
  getFilePath: index =>`${DATA_DIR}/${index + 1}-frame.glb`,
  worker: true,
  maxConcurrency: 4
});

srikanth-kuriyala avatar Mar 18 '20 11:03 srikanth-kuriyala