-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9c8457
commit 0319b7a
Showing
25 changed files
with
683 additions
and
62 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
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,97 @@ | ||
#! https://app.rerun.io/examples/nuscenes_dataset.rrd | ||
|
||
#@yaml/text-templated-strings | ||
|
||
#@ inputs = [ | ||
#@ 'nuscenes', | ||
#@ ] | ||
|
||
#@ camera_entities = { | ||
#@ 'CAM_FRONT_LEFT': '/world/ego_vehicle/CAM_FRONT_LEFT', | ||
#@ 'CAM_FRONT': '/world/ego_vehicle/CAM_FRONT', | ||
#@ 'CAM_FRONT_RIGHT': '/world/ego_vehicle/CAM_FRONT_RIGHT', | ||
#@ } | ||
--- | ||
_target_: rbyte.Dataset | ||
_convert_: all | ||
_recursive_: false | ||
inputs: | ||
#@ for input_id in inputs: | ||
(@=input_id@): | ||
frame: | ||
#@ for camera, entity in camera_entities.items(): | ||
(@=camera@): | ||
index_column: (@=entity@)/_idx_ | ||
reader: | ||
_target_: rbyte.io.frame.RrdFrameReader | ||
path: "${data_dir}/(@=input_id@).rrd" | ||
index: timestamp | ||
entity_path: (@=entity@) | ||
frame_decoders: | ||
image/jpeg: | ||
_target_: simplejpeg.decode_jpeg | ||
_partial_: true | ||
colorspace: rgb | ||
fastdct: true | ||
fastupsample: true | ||
#@ end | ||
|
||
table: | ||
builder: | ||
_target_: rbyte.io.table.TableBuilder | ||
_convert_: all | ||
readers: | ||
- path: "${data_dir}/(@=input_id@).rrd" | ||
reader: | ||
_target_: rbyte.io.table.RrdTableReader | ||
_recursive_: false | ||
index: timestamp | ||
contents: | ||
#@ for entity in camera_entities.values(): | ||
(@=entity@): | ||
- _idx_ | ||
#@ end | ||
|
||
/world/ego_vehicle/LIDAR_TOP: | ||
- Position3D | ||
|
||
merger: | ||
_target_: rbyte.io.table.TableAligner | ||
separator: / | ||
merge: | ||
#@ entity = camera_entities.values()[0] | ||
(@=entity@): | ||
timestamp: | ||
method: ref | ||
|
||
#@ for entity in camera_entities.values()[1:]: | ||
(@=entity@): | ||
timestamp: | ||
method: ref | ||
|
||
_idx_: | ||
method: asof | ||
strategy: nearest | ||
tolerance: 20ms | ||
#@ end | ||
|
||
/world/ego_vehicle/LIDAR_TOP: | ||
timestamp: | ||
method: ref | ||
|
||
Position3D: | ||
method: asof | ||
strategy: nearest | ||
tolerance: 20ms | ||
|
||
filter: | | ||
`/world/ego_vehicle/CAM_FRONT/timestamp` between '2018-07-24 03:28:48' and '2018-07-24 03:28:50' | ||
#@ end | ||
|
||
sample_builder: | ||
_target_: rbyte.sample.builder.GreedySampleTableBuilder | ||
index_column: (@=camera_entities.values()[0]@)/_idx_ | ||
length: 1 | ||
stride: 1 | ||
min_step: 1 | ||
filter: !!null |
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,41 @@ | ||
#@yaml/text-templated-strings | ||
|
||
#@ camera_entities = { | ||
#@ "CAM_FRONT_LEFT": "/world/ego_vehicle/CAM_FRONT_LEFT", | ||
#@ "CAM_FRONT": "/world/ego_vehicle/CAM_FRONT", | ||
#@ "CAM_FRONT_RIGHT": "/world/ego_vehicle/CAM_FRONT_RIGHT", | ||
#@ } | ||
--- | ||
_target_: rbyte.viz.loggers.RerunLogger | ||
schema: | ||
frame: | ||
#@ for camera in camera_entities.keys(): | ||
(@=camera@): | ||
Image: | ||
color_model: RGB | ||
#@ end | ||
|
||
table: | ||
#@ for camera_entity in camera_entities.values(): | ||
(@=camera_entity@)/_idx_: TimeSequenceColumn | ||
(@=camera_entity@)/timestamp: TimeNanosColumn | ||
#@ end | ||
/world/ego_vehicle/LIDAR_TOP/timestamp: TimeNanosColumn | ||
/world/ego_vehicle/LIDAR_TOP/Position3D: Points3D | ||
|
||
spawn: true | ||
blueprint: | ||
_target_: rerun.blueprint.Blueprint | ||
_args_: | ||
- _target_: rerun.blueprint.Vertical | ||
contents: | ||
- _target_: rerun.blueprint.Spatial3DView | ||
origin: table | ||
|
||
- _target_: rerun.blueprint.Horizontal | ||
contents: | ||
#@ for camera in camera_entities.keys(): | ||
- _target_: rerun.blueprint.Spatial2DView | ||
name: #@ camera | ||
origin: #@ "frame/{}".format(camera) | ||
#@ end |
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,53 @@ | ||
#@yaml/text-templated-strings | ||
|
||
#@ camera_entities = { | ||
#@ "CAM_FRONT_LEFT": "/world/ego_vehicle/CAM_FRONT_LEFT", | ||
#@ "CAM_FRONT": "/world/ego_vehicle/CAM_FRONT", | ||
#@ "CAM_FRONT_RIGHT": "/world/ego_vehicle/CAM_FRONT_RIGHT", | ||
#@ } | ||
--- | ||
_target_: rbyte.io.table.TableBuilder | ||
_convert_: all | ||
readers: | ||
- path: ??? | ||
reader: | ||
_target_: rbyte.io.table.RrdTableReader | ||
_recursive_: false | ||
index: timestamp | ||
contents: | ||
#@ for entity in camera_entities.values(): | ||
(@=entity@): | ||
- _idx_ | ||
#@ end | ||
|
||
/world/ego_vehicle/LIDAR_TOP: | ||
- Position3D | ||
|
||
merger: | ||
_target_: rbyte.io.table.TableAligner | ||
separator: / | ||
merge: | ||
#@ entity = camera_entities.values()[0] | ||
(@=entity@): | ||
timestamp: | ||
method: ref | ||
|
||
#@ for entity in camera_entities.values()[1:]: | ||
(@=entity@): | ||
timestamp: | ||
method: ref | ||
|
||
_idx_: | ||
method: asof | ||
strategy: nearest | ||
tolerance: 20ms | ||
#@ end | ||
|
||
/world/ego_vehicle/LIDAR_TOP: | ||
timestamp: | ||
method: ref | ||
|
||
Position3D: | ||
method: asof | ||
strategy: nearest | ||
tolerance: 20ms |
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
Oops, something went wrong.