test_RecorderUpdateTimeInterval

class test_RecorderUpdateTimeInterval.ChangingCameraModule(*args, **kwargs)[source]

Bases: SysModel

Write a CameraImageMsgPayload whose metadata changes at a fixed time.

class test_RecorderUpdateTimeInterval.ChangingPayloadModule(*args, **kwargs)[source]

Bases: SysModel

Write a payload that changes at fixed simulation times.

test_RecorderUpdateTimeInterval.test_record_on_change()[source]

Test recording changed message payloads after the minimum update time.

test_RecorderUpdateTimeInterval.test_record_on_change_camera_image_payload()[source]

Test CameraImageMsgPayload change-only recording with shallow metadata equality.

CameraImageMsgPayload equality compares payload fields, including the image pointer address, but it does not compare the pointed-to image bytes.

test_RecorderUpdateTimeInterval.test_record_on_change_unsupported_payload()[source]

recordOnChange() on a payload with no equality support raises BasiliskError.

VizUserInputMsgPayload contains std::vector<VizEventReply>, which the equality generator rejects and no manual specialization exists. Enabling change-only recording should fail explicitly instead of falling back to interval recording.

test_RecorderUpdateTimeInterval.test_record_on_change_update_time_interval_after_skipped_record()[source]

Test interval updates after a change-only recorder skips an unchanged payload.

test_RecorderUpdateTimeInterval.test_update_time_interval()[source]

Test changing a recorder’s minimum update time during a paused simulation.