Visualization
This module is still under development
Visualizer
¤
__init__(self, agent)
special
¤
Source code in ROAR_simulation/roar_autonomous_system/visualization_module/visualizer.py
12 13 14 |
|
calculate_img_pos(self, waypoint_transform, camera)
¤
Calculate the 2D image coordinate from 3D world space
Parameters:
Name | Type | Description | Default |
---|---|---|---|
camera |
Camera |
required | |
waypoint_transform |
Transform |
Desired point in 3D world space |
required |
Returns:
Type | Description |
---|---|
ndarray |
Array if integers [X, Y, depth] |
Source code in ROAR_simulation/roar_autonomous_system/visualization_module/visualizer.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|
visualize(self, next_waypoint_transform)
¤
This function will allow multiple objects to be drawn on here.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
next_waypoint_transform |
Transform |
Next Waypoint's Transform information |
required |
Returns:
Type | Description |
---|---|
None |
None |
Source code in ROAR_simulation/roar_autonomous_system/visualization_module/visualizer.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
|
visualize_semantic_segmentation(semantic_segmetation)
classmethod
¤
Parameters:
Name | Type | Description | Default |
---|---|---|---|
semantic_segmetation |
|
Width x Height x 3 array with white = obstacles, black = ground, blue = sky |
required |
Returns:
Type | Description |
---|---|
None |
None |
Source code in ROAR_simulation/roar_autonomous_system/visualization_module/visualizer.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
|
visualize_waypoint(self, waypoint_transform)
¤
Source code in ROAR_simulation/roar_autonomous_system/visualization_module/visualizer.py
16 17 18 19 20 21 22 23 24 25 26 27 28 |
|