apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Add global variables into DreamView for visualization

Open ironsuperdev opened this issue 8 years ago • 5 comments

Is there a tutorial/way showing how to add global variables into DreamView for its visualization? Thanks

ironsuperdev avatar Aug 20 '18 00:08 ironsuperdev

Could you elaborate more about the request? What types of global variables, and how you want to visualize them?

vlin17 avatar Aug 20 '18 23:08 vlin17

@vlin17 For example, the input variables for control module are:

image

I would like to see the x, y, z values in format of time graph in Dreamview

ironsuperdev avatar Aug 21 '18 04:08 ironsuperdev

I think the easiest way is throw them to pnc monitor that can do same with another data

gladijos avatar Aug 21 '18 06:08 gladijos

Yes, the easiest way is to throw them to pnc monitor. Some graphs that have been provided for control module are: control_monitor

Trajectory graph shows ego-vehicle's x position, y position, heading, steer curve in the past 8 sec. If this not what you want, to add a desired graph, please

  1. construct/update graph data in dreamview/frontend/src/store/control_data.js
  2. config graph options/properties (e.g. line color, x-axis, y-axis) in dreamview/frontend/src/store/config/ControlGraph.yml
  3. add the graph to the monitor in dreamview/frontend/src/components/PNCMonitor/ControlMonitor.js
  4. compile frontend: bash apollo.sh build_fe. (Note: make sure all npm packages are installed first. if not, run "yarn install" under modules/dreamview/frontend directory)

vlin17 avatar Aug 22 '18 18:08 vlin17

Closed due to inactivity. If the problem persists, pls feel free to reopen it or create a new one and refer to it.

daohu527 avatar Aug 27 '22 13:08 daohu527