feat(rerun): retain live playback and recover isolated viewer resources
This commit is contained in:
@@ -153,6 +153,7 @@ def recorded_blueprint(
|
||||
settings: RerunSceneSettings,
|
||||
*,
|
||||
display_point_bank: str | None = None,
|
||||
timeline: Literal["session_time", "stream_time"] = SESSION_TIMELINE,
|
||||
include_initial_playback_state: bool = True,
|
||||
active_view: RecordedView = "spatial",
|
||||
view_reset_generation: Literal[0, 1] = 0,
|
||||
@@ -178,7 +179,7 @@ def recorded_blueprint(
|
||||
if accumulation > 0:
|
||||
time_ranges = [
|
||||
rr.VisibleTimeRange(
|
||||
SESSION_TIMELINE,
|
||||
timeline,
|
||||
start=rr.TimeRangeBoundary.cursor_relative(seconds=-accumulation),
|
||||
end=rr.TimeRangeBoundary.cursor_relative(),
|
||||
)
|
||||
@@ -412,12 +413,15 @@ def recorded_blueprint(
|
||||
else base_root_id
|
||||
)
|
||||
|
||||
if timeline == "stream_time":
|
||||
root_container = spatial_view
|
||||
|
||||
if include_initial_playback_state:
|
||||
return rrb.Blueprint(
|
||||
root_container,
|
||||
rrb.TimePanel(
|
||||
timeline=SESSION_TIMELINE,
|
||||
play_state="paused",
|
||||
timeline=timeline,
|
||||
play_state="following" if timeline == "stream_time" else "paused",
|
||||
state="hidden",
|
||||
),
|
||||
auto_layout=False,
|
||||
@@ -436,6 +440,7 @@ def recorded_blueprint_rrd(
|
||||
settings: RerunSceneSettings,
|
||||
*,
|
||||
display_point_bank: str | None = None,
|
||||
timeline: Literal["session_time", "stream_time"] = SESSION_TIMELINE,
|
||||
application_id: str = APPLICATION_ID,
|
||||
recording_id: str,
|
||||
blueprint_session_id: str | None = None,
|
||||
@@ -452,6 +457,7 @@ def recorded_blueprint_rrd(
|
||||
show_costmap: bool = False,
|
||||
follow_trajectory: bool = False,
|
||||
reactivate_updates: bool = False,
|
||||
initialize_playback: bool = True,
|
||||
eye_position: tuple[float, float, float] | None = None,
|
||||
eye_look_target: tuple[float, float, float] | None = None,
|
||||
eye_up: tuple[float, float, float] | None = None,
|
||||
@@ -466,7 +472,8 @@ def recorded_blueprint_rrd(
|
||||
return recorded_blueprint(
|
||||
settings,
|
||||
display_point_bank=display_point_bank,
|
||||
include_initial_playback_state=False,
|
||||
timeline=timeline,
|
||||
include_initial_playback_state=timeline == "stream_time" and initialize_playback,
|
||||
active_view=active_view,
|
||||
view_reset_generation=view_reset_generation,
|
||||
unified_perception=unified_perception,
|
||||
|
||||
Reference in New Issue
Block a user