Skip to content

Commit

Permalink
fix: update config
Browse files Browse the repository at this point in the history
Signed-off-by: kminoda <[email protected]>
  • Loading branch information
kminoda committed Dec 21, 2023
1 parent 07f6ec3 commit 4ff5bf1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
12 changes: 6 additions & 6 deletions config/convert_rosbag2_to_non_annotated_t4_sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ conversion:
camera_sensors: # Keep the same order as each camera exposure timing
- topic: /sensing/camera/camera3/image_rect_color/compressed
channel: CAM_BACK_LEFT
delay_msec: 28.33
delay_msec: 48.33
- topic: /sensing/camera/camera2/image_rect_color/compressed
channel: CAM_FRONT_LEFT
delay_msec: 45.0
delay_msec: 65.0
- topic: /sensing/camera/camera0/image_rect_color/compressed
channel: CAM_FRONT
delay_msec: 61.67
delay_msec: 81.67
- topic: /sensing/camera/camera4/image_rect_color/compressed
channel: CAM_FRONT_RIGHT
delay_msec: 78.33
delay_msec: 98.33
- topic: /sensing/camera/camera5/image_rect_color/compressed
channel: CAM_BACK_RIGHT
delay_msec: 95.0
delay_msec: 115.0
- topic: /sensing/camera/camera1/image_rect_color/compressed
channel: CAM_BACK
delay_msec: 111.67
delay_msec: 131.67
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,22 @@ conversion:
channel: RADAR_BACK_LEFT
- topic: /sensing/radar/rear_right/objects_raw
channel: RADAR_BACK_RIGHT
camera_latency_sec: 0.02 # camera latency in seconds between the header.stamp and the exposure trigger
camera_sensors: # Keep the same order as each camera exposure timing
- topic: /sensing/camera/camera3/image_rect_color/compressed
channel: CAM_BACK_LEFT
delay_msec: 48.33
- topic: /sensing/camera/camera2/image_rect_color/compressed
channel: CAM_FRONT_LEFT
delay_msec: 65.0
- topic: /sensing/camera/camera0/image_rect_color/compressed
channel: CAM_FRONT
delay_msec: 81.67
- topic: /sensing/camera/camera4/image_rect_color/compressed
channel: CAM_FRONT_RIGHT
delay_msec: 98.33
- topic: /sensing/camera/camera5/image_rect_color/compressed
channel: CAM_BACK_RIGHT
delay_msec: 115.0
- topic: /sensing/camera/camera1/image_rect_color/compressed
channel: CAM_BACK
delay_msec: 131.67
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,7 @@ def _convert_sensor_data(
# temporaly use start_timestamp instead of recorded timestamp for non synced data
camera_start_timestamp = start_timestamp
else:
camera_start_timestamp = (
misc_utils.nusc_timestamp_to_unix_timestamp(first_sample_data_record.timestamp)
# + self._camera_latency
)
camera_start_timestamp = misc_utils.nusc_timestamp_to_unix_timestamp(first_sample_data_record.timestamp)

for camera_sensor in self._camera_sensors:
sensor_channel = camera_sensor["channel"]
Expand Down
12 changes: 6 additions & 6 deletions tests/config/convert_rosbag2_to_non_annotated_t4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ conversion:
camera_sensors: # Keep the same order as each camera exposure timing
- topic: /sensing/camera/camera3/image_rect_color/compressed
channel: CAM_BACK_LEFT
delay_msec: 28.33
delay_msec: 48.33
- topic: /sensing/camera/camera2/image_rect_color/compressed
channel: CAM_FRONT_LEFT
delay_msec: 45.0
delay_msec: 65.0
- topic: /sensing/camera/camera0/image_rect_color/compressed
channel: CAM_FRONT
delay_msec: 61.67
delay_msec: 81.67
- topic: /sensing/camera/camera4/image_rect_color/compressed
channel: CAM_FRONT_RIGHT
delay_msec: 78.33
delay_msec: 98.33
- topic: /sensing/camera/camera5/image_rect_color/compressed
channel: CAM_BACK_RIGHT
delay_msec: 95.0
delay_msec: 115.0
- topic: /sensing/camera/camera1/image_rect_color/compressed
channel: CAM_BACK
delay_msec: 111.67
delay_msec: 131.67

0 comments on commit 4ff5bf1

Please sign in to comment.