cruise-automation / webviz

web-based visualization libraries
https://webviz.io/
Apache License 2.0
2.05k stars 415 forks source link

How to visualize PointCloud2 data in Worldview (not just webviz) #187

Closed lizamurdoch closed 5 years ago

lizamurdoch commented 5 years ago

Hi, I know Webviz supports visualization of PointCloud2 data in the online tool, but I would really like to be able to view that data in Worldview as well. Is there a way to make the non-default types (like OccupancyGrids and PointClouds) usable in Worldview specifically?

jtbandes commented 5 years ago

We haven't set these up as separate packages, but it should still be possible just import (or copy) the renderers we wrote in webviz-core to your project:

https://github.robot.car/cruise/webviz/blob/master/webviz-core/src/panels/ThreeDimensionalViz/commands/Pointclouds/index.js https://github.robot.car/cruise/webviz/blob/master/webviz-core/src/panels/ThreeDimensionalViz/commands/OccupancyGrids.js

Then you can use them in Worldview like normal commands: https://github.robot.car/cruise/webviz/blob/20dbccc5a84fea45b8ebc57debdeabf385eb2fed/client/panels/ThreeDimensionalViz/World.js#L166

lizamurdoch commented 5 years ago

Thanks!