aurora-opensource / streetscape.gl

Visualization framework for autonomy and robotics data encoded in XVIZ

Home Page:http://www.streetscape.gl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get-Started example not working

YashKhorja opened this issue · comments

I have followed the instructions and started with example:get-started but it's not working. I am getting below error
Screenshot 2022-01-05 at 12 08 49 PM

According to the error I am getting, the problem is with the methods using with [XVIZFileLoader](https://github.com/uber/streetscape.gl/blob/master/examples/get-started/src/log-from-file.js#:~:text=export%20default%20new-,XVIZFileLoader,-(%7B), i.e. on and connect. It is not considering the methods of XVIZFileLoader.
Screenshot 2022-01-05 at 12 21 36 PM

seem like data error.

onXVIZMessage = message => {
    switch (message.type) {
      case LOG_STREAM_MESSAGE.METADATA:
        this._onXVIZMetadata(message);
        this.emit('ready', message);
        break;

      case LOG_STREAM_MESSAGE.TIMESLICE:
        this._onXVIZTimeslice(message);
        this.emit('update', message);
        break;

      case LOG_STREAM_MESSAGE.DONE:
        this.emit('finish', message);
        break;

      default:
        this.emit('error', message);
    }
  };

you can find it in xviz-loader-interface, the message is null, it leads this crash.

Yeah but I have just cloned and started the app and didn't make any changes. So it should be working right?

Yeah but I have just cloned and started the app and didn't make any changes. So it should be working right?

I think so, you can try other data bag

Yeah but I have just cloned and started the app and didn't make any changes. So it should be working right?

The problem comes from the new update of loaders.gl package. Follow this fix for the temporary fix.

aurora-opensource/xviz#663

This should be fixed in @xviz/*@1.0.11.

You can see commits and published version commits at
https://github.com/aurora-opensource/xviz/commits/master