Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions platform_integration_tests/drive_replay/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ py_itf_test(
}) + [
"@score_itf//score/itf/plugins:attribute_plugin",
],
# DLT multicast is shared with the other showcase containers.
tags = [
"exclusive",
"manual",
],
target_compatible_with = select({
Expand Down
2 changes: 2 additions & 0 deletions platform_integration_tests/platform_run/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ py_itf_test(
}) + [
"@score_itf//score/itf/plugins:attribute_plugin",
],
# DLT multicast is shared with the other showcase containers.
tags = [
"exclusive",
"manual",
],
target_compatible_with = select({
Expand Down
2 changes: 1 addition & 1 deletion showcases/drive_replay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ S-CORE interfaces, dotted arrows are lifecycle reports and the optional visualiz
| # | From → to | S-CORE module / API | Transport | Content |
|---|---|---|---|---|
| ① | `replay_app` → `warn_app` | score_communication, `mw::com` skeleton / proxy, service `score/showcases/drive_replay/DriveData` ([drive_data.h](drive_data.h)) | shared memory (LoLa) | event `frame`: sequence number, simulation time, position and speed of ego and lead vehicle, scenario phase |
| ② | `warn_app` → `launch_manager` | score_lifecycle, health monitor (heartbeat monitor 10–300 ms) and alive supervision | shared memory | alive notifications every 50 ms; none after the injected hang → `Alive Supervision (warn_app) switched to FAILED` |
| ② | `warn_app` → `launch_manager` | score_lifecycle, health monitor (heartbeat monitor 10–2000 ms) and alive supervision | shared memory | alive notifications every 50 ms; none after the injected hang → `Alive Supervision (warn_app) switched to FAILED` |
| ③ | `launch_manager` → all processes | score_lifecycle, launch manager ([configs/launch_manager_config.json](configs/launch_manager_config.json)) | process start / `SIGTERM` | Run Target `Drive` (all processes) or `fallback_run_target` (without `warn_app`) |
| ④ | apps → `launch_manager` | score_lifecycle, lifecycle client `report_running()` | file descriptor from the launch manager | "process is up", completes the Run Target transition |
| ⑤ | `drive_state_manager` ↔ `launch_manager` | score_lifecycle, `ILmControl` over score_communication ([configs/mw_com_config.json](configs/mw_com_config.json)) | shared memory (LoLa) | event `ActivationResult` (Run Target reached, source: initial / request / recovery), method `ActivateRunTarget("Drive")` |
Expand Down
5 changes: 3 additions & 2 deletions showcases/drive_replay/warn_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,12 @@ int main(int argc, const char* argv[])
.SetAsDefaultLogger();
const score::mw::health::MonitorTag monitor_tag{"fcw_cycle"};
// Heartbeat range minimum must exceed half the internal cycle; the supervisor cycle must be a multiple of it.
// Allow time for KVS flushes and scheduling delays without treating them as a hang.
auto health_monitor_result =
score::mw::health::HealthMonitorBuilder()
.AddHeartbeatMonitor(monitor_tag,
score::mw::health::heartbeat::HeartbeatMonitorBuilder(
score::mw::health::TimeRange(10ms, 300ms)))
score::mw::health::TimeRange(10ms, 2000ms)))
.WithInternalProcessingCycle(kMonitorCycle)
.WithSupervisorApiCycle(kCycle)
.Build();
Expand All @@ -218,7 +219,7 @@ int main(int argc, const char* argv[])
auto heartbeat = std::move(*heartbeat_result);
health_monitor.Start();
score::mw::lifecycle::report_running();
logger.LogInfo() << "supervised by health monitor: heartbeat every 50 ms, tolerance 300 ms";
logger.LogInfo() << "supervised by health monitor: heartbeat every 50 ms, tolerance 2000 ms";

WarningLevel level{WarningLevel::kNone};
double episode_min_ttc_s{kNoCollisionTtcS};
Expand Down
Loading