-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add sensor test * sensor test * reverse * add test * vehicle panel to dashboard * Depth 3 channel * vis script * expose API * remove save image * fix semantic buffer * semantic camera test * sensor pipeline test * directly run * prepare opengl * prepare opengl * format * remove GPU test * Add docstring * remove display region * print fps * sensor channels * visualize cam * Add test for RGB camera * cudaimage size * ok * format * fix bug * add test for examples * format * Add to workflow * try use windows-latest * test fewer * disable some test
- Loading branch information
Showing
35 changed files
with
610 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
class BaseSensor: | ||
def perceive(self, *args, **kwargs): | ||
raise NotImplementedError | ||
# from metadrive.component.sensors.depth_camera import DepthCamera | ||
# from metadrive.component.sensors.rgb_camera import RGBCamera | ||
# from metadrive.component.sensors.semantic_camera import SemanticCamera | ||
# from metadrive.component.sensors.mini_map import MiniMap | ||
# from metadrive.component.sensors.lidar import Lidar | ||
# from metadrive.component.sensors.distance_detector import DistanceDetector, SideDetector, LaneLineDetector | ||
# from metadrive.component.sensors.dashboard import DashBoard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class BaseSensor: | ||
""" | ||
This is the base class of all sensors | ||
""" | ||
def perceive(self, *args, **kwargs): | ||
""" | ||
All sensors have to implement this API as the interface for accessing the sensor output | ||
Args: | ||
*args: varies according to sensor type | ||
**kwargs: varies according to sensor type | ||
Returns: sensor output. It could be matrices like images or other data structures | ||
""" | ||
raise NotImplementedError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from metadrive.component.sensors.depth_camera import DepthCamera | ||
|
||
|
||
class RGBDepthCamera(DepthCamera): | ||
""" | ||
(Deprecated) Same as RGBCamera, while the forth channel is for storing depth information | ||
""" | ||
raise DeprecationWarning("This one won't work currently") | ||
shader_name = "rgb_depth_cam" | ||
VIEW_GROUND = False |
Oops, something went wrong.