Files
RC2027_BR_code/sim_ws/docs/validation/20261108_restart.json
T
Kevin ca61aa63b5 fix(sim): clean up interrupted runs and document usage and migration
Prevent ROS cleanup errors from skipping owned Gazebo process teardown.
Reject occupied master ports before launching nodes and stop the stack when
its GUI closes. Add --gui to the automatic LIO navigation checks.

Expand the root README and add a beginner guide covering manual goals,
automatic tests, restart troubleshooting, MID360 assumptions and staged
migration to real hardware. Preserve lifecycle and GUI validation evidence.

Validation: three navigation restart cycles, two busy-port rejection cases,
SIGINT/SIGHUP cleanup and a GUI straight-route check. Current source hashes,
Python syntax, documentation shell syntax and local links verified. Hardware
migration remains unverified; no push performed.
2026-11-08 22:44:02 +08:00

341 lines
12 KiB
JSON

{
"date": "2026-11-08",
"status": "PASS for specified lifecycle checks; interrupted navigation is INVALID",
"baseline_commit": "664eaa8",
"root_cause": "ROS shutdown on Ctrl+C invalidated publisher; exception in test finally skipped Sim.stop, leaving old master listening. Subsequent manual launches failed to bind and consumed old IMU.",
"original_orphan_cleanup": {
"known_pids": [
49611,
49630,
49634,
49636,
49638,
49640,
49642,
49644,
49646,
49648
],
"sigterm": [
49611,
49630,
49634,
49636,
49638,
49640,
49642,
49644,
49646,
49648
],
"sigkill": [
49630
],
"port_free": true,
"seconds": 8.14,
"never_touched_unknown_pid": true
},
"interruptions": {
"before_ctrl_c": {
"evidence": "sim_ws/log/codex_restart_20261108/before_ctrl_c/interruption.json",
"sha256": "306eca73d60285f6214e7e2b2b6dc7c9ceee0471b4953b5994dfad3dd01eb034",
"returncode": 1,
"signal": "SIGINT",
"port_free": false,
"surviving_owned_pids": [
51895,
51913,
51917,
51919,
51921,
51923,
51925,
51927,
51929,
51931
],
"run_report_present": false,
"rescue": {
"known_pids": [
51895,
51913,
51917,
51919,
51921,
51923,
51925,
51927,
51929,
51931
],
"sigterm": [
51895,
51913,
51917,
51919,
51921,
51923,
51925,
51927,
51929,
51931
],
"sigkill": [
51913
],
"port_free": true,
"seconds": 8.15,
"never_touched_unknown_pid": true
}
},
"after_ctrl_c": {
"evidence": "sim_ws/log/codex_restart_20261108/after_ctrl_c/interruption.json",
"sha256": "60deebbea1ae4edb0c7e0baef2c253be866d29d828695085f0659fe228472ffe",
"returncode": -2,
"signal": "SIGINT",
"port_free": true,
"surviving_owned_pids": [],
"run_report_present": true,
"navigation_status": "INVALID",
"actual_collector_sha256": "09aabecf865924af6eb5aec14a3d43886a2ac3a4a35b6f8aeca62c43ff6153cf"
},
"after_terminal_close": {
"evidence": "sim_ws/log/codex_restart_20261108/after_terminal_close/interruption.json",
"sha256": "e1cdbac1952556442d3dec68a2e5b430f944cd263410d5d95e47374b7fafc2f0",
"returncode": -2,
"signal": "SIGHUP",
"port_free": true,
"surviving_owned_pids": [],
"run_report_present": true,
"navigation_status": "INVALID",
"actual_collector_sha256": "09aabecf865924af6eb5aec14a3d43886a2ac3a4a35b6f8aeca62c43ff6153cf"
}
},
"navigation_restarts": {
"rounds": [
{
"gui": true,
"exit_method": "ctrl_c",
"startup": true,
"before": [
-4.500000000000011,
4.499999998413316,
0.14898743834681832
],
"after": [
-3.8589680612167183,
4.4999997644006315,
0.14898743834681832
],
"position_error_m": 0.058968061217189144,
"state": 2,
"reason": "original_goal_reached",
"navigation_pass": true,
"natural_shutdown": true,
"returncode": 0,
"ok": true,
"ros_cleanup_errors": [],
"fallback_cleanup": {
"known_pids": [
53651,
53677,
53679,
53681,
53683,
53685,
53687,
53689,
53691,
53693,
53695,
53697
],
"sigterm": [],
"sigkill": [],
"port_free": true,
"seconds": 0.0,
"never_touched_unknown_pid": true
}
},
{
"gui": true,
"exit_method": "window_close",
"startup": true,
"before": [
-4.500000000000011,
4.499999998413316,
0.14898743834681832
],
"after": [
-3.8608458564852035,
4.500136926129655,
0.14898743834681832
],
"position_error_m": 0.06084601055273046,
"state": 2,
"reason": "original_goal_reached",
"navigation_pass": true,
"window_close": {
"rc": 0,
"message": "Sent WM_DELETE_WINDOW to window 25165840 owned by PID 54363\n"
},
"natural_shutdown": true,
"returncode": 0,
"ok": true,
"ros_cleanup_errors": [],
"fallback_cleanup": {
"known_pids": [
54343,
54361,
54363,
54365,
54367,
54369,
54371,
54373,
54375,
54377,
54379,
54381
],
"sigterm": [],
"sigkill": [],
"port_free": true,
"seconds": 0.0,
"never_touched_unknown_pid": true
}
},
{
"gui": false,
"exit_method": "ctrl_c",
"startup": true,
"before": [
-4.500000000000011,
4.499999998413316,
0.14898743834681832
],
"after": [
-3.862487300302244,
4.501510835005933,
0.14898743834681832
],
"position_error_m": 0.06250556232430857,
"state": 2,
"reason": "original_goal_reached",
"navigation_pass": true,
"natural_shutdown": true,
"returncode": 0,
"ok": true,
"ros_cleanup_errors": [],
"fallback_cleanup": {
"known_pids": [
54972,
54996,
54998,
55000,
55002,
55004,
55006,
55008,
55010,
55012,
55014
],
"sigterm": [],
"sigkill": [],
"port_free": true,
"seconds": 0.0,
"never_touched_unknown_pid": true
}
}
],
"busy_port": [
{
"entry": "scan_lio.launch.py",
"returncode": 1,
"occupied_message": true,
"no_nodes_started": true,
"existing_sim_preserved": true,
"ok": true
},
{
"entry": "robocon_gazebo.launch.py",
"returncode": 1,
"occupied_message": true,
"no_nodes_started": true,
"existing_sim_preserved": true,
"ok": true
}
],
"status": "PASS"
},
"build": {
"status": "PASS",
"packages": [
"robocon_gazebo",
"r2027_robot_description"
],
"log_sha256": "322c0b23af495f3e2e7783fdb2a9e35fab617f4c3c1a3fa51c08a3925d3fca7f"
},
"evidence_note": "Interrupted runs preserve the actual collector hashes. Final source also records cleanup error details; do not equate interrupted navigation with PASS.",
"scope": [
"SIGINT and SIGHUP of automatic test runner",
"GUI navigation: Ctrl+C then restart, normal WM_DELETE_WINDOW then restart",
"Headless navigation after GUI exit",
"Busy-port rejection before nodes start; existing simulation left running"
],
"limitations": [
"Original Point-LIO shutdown escalation/destructor errors unchanged",
"No claim for arbitrary forced termination or all historical navigation routes",
"ROS cleanup helper is shared across tools; only the listed lifecycle/navigation scenarios were rerun"
],
"shutdown": {
"master_port_free": true
},
"git": "Included in follow-up commit authorized by the user; push is left to the user. Commit identifier is available from git log.",
"lifecycle_source_sha256": {
"sim_ws/src/r2027_robot_description/launch/robocon_robot.launch.py": "7a304e1c7c74641f223409679bf3b87a35e5140de23953c657e3345dba82e6cd",
"sim_ws/src/robocon_gazebo/launch/robocon_gazebo.launch.py": "52f332031f5b27642dcfc8798ec3a166a847ddcafb671d380ba5b39f60e6f05c",
"sim_ws/tools/check_lio_navigation.py": "de3be502ea1073502fc53b332820200791d40fa285391b71abf590130a4ff501",
"sim_ws/tools/check_lio_terrain.py": "1f84b9a3ca228e54a1e85d44e99c0967c569d9e386893d7d14ced33c8f8ae523",
"sim_ws/tools/check_low_obstacles.py": "0823d15f1a29fe011b97868a5d954a9fac2a1db3c3b57b77120911a1ac0b2117",
"sim_ws/tools/check_mid360.py": "87cbe401548359bd38a6fcc323beacaf2b9ce540e20da8dbd8ec7de3143f7237",
"sim_ws/tools/check_narrow_navigation.py": "3a62cbc9a9f26bc4bc9099b0140fdfe2c52f07d19846842329f426a7d6f3601f",
"sim_ws/tools/check_omni_robot.py": "775fc642bf44b0fa806c83f7a672a87d98bf0f2bfb802c162dd5d1f73b9adf53",
"sim_ws/tools/check_point_lio.py": "9487ce75a58e0b03d0672255ccdf698622922259562df38cfdc584bf5de12c14",
"sim_ws/tools/check_scan_navigation.py": "969f706b41a072637e960ad09fdf8ef3ec8a0399db590a6c35169928eb1f5cc6",
"sim_ws/tools/check_sensor_noise.py": "d401792e05c5fce901104920fcbe2b73eb5e10eb3d084a659f719234c94e22ed",
"sim_ws/tools/check_sim_lidar.py": "74d7f4a9cb3783e1fcca9da63f488e7ed38eb4b7d524c897f4a0f28f8e418bb5",
"sim_ws/tools/check_slope_drive.py": "27d1f7babc20f7f22f15b6756cbcd3dbb53abc965e4476afc63c546cdd97d5aa",
"sim_ws/tools/check_slope_navigation.py": "dd8e38407773b3c97fc7c4b3c94cc0401113997fecf1bddbab10b7ccee86f841"
},
"commit_source_sha256": {
"sim_ws/src/r2027_robot_description/launch/robocon_robot.launch.py": "7a304e1c7c74641f223409679bf3b87a35e5140de23953c657e3345dba82e6cd",
"sim_ws/src/robocon_gazebo/launch/robocon_gazebo.launch.py": "52f332031f5b27642dcfc8798ec3a166a847ddcafb671d380ba5b39f60e6f05c",
"sim_ws/tools/check_lio_navigation.py": "2772e7f261bbd192fb9f498bee032e86d501706ffa420201805fb6e804924d3e",
"sim_ws/tools/check_lio_terrain.py": "1f84b9a3ca228e54a1e85d44e99c0967c569d9e386893d7d14ced33c8f8ae523",
"sim_ws/tools/check_low_obstacles.py": "0823d15f1a29fe011b97868a5d954a9fac2a1db3c3b57b77120911a1ac0b2117",
"sim_ws/tools/check_mid360.py": "87cbe401548359bd38a6fcc323beacaf2b9ce540e20da8dbd8ec7de3143f7237",
"sim_ws/tools/check_narrow_navigation.py": "3a62cbc9a9f26bc4bc9099b0140fdfe2c52f07d19846842329f426a7d6f3601f",
"sim_ws/tools/check_omni_robot.py": "775fc642bf44b0fa806c83f7a672a87d98bf0f2bfb802c162dd5d1f73b9adf53",
"sim_ws/tools/check_point_lio.py": "9487ce75a58e0b03d0672255ccdf698622922259562df38cfdc584bf5de12c14",
"sim_ws/tools/check_scan_navigation.py": "969f706b41a072637e960ad09fdf8ef3ec8a0399db590a6c35169928eb1f5cc6",
"sim_ws/tools/check_sensor_noise.py": "d401792e05c5fce901104920fcbe2b73eb5e10eb3d084a659f719234c94e22ed",
"sim_ws/tools/check_sim_lidar.py": "74d7f4a9cb3783e1fcca9da63f488e7ed38eb4b7d524c897f4a0f28f8e418bb5",
"sim_ws/tools/check_slope_drive.py": "27d1f7babc20f7f22f15b6756cbcd3dbb53abc965e4476afc63c546cdd97d5aa",
"sim_ws/tools/check_slope_navigation.py": "dd8e38407773b3c97fc7c4b3c94cc0401113997fecf1bddbab10b7ccee86f841"
},
"source_hash_note": "lifecycle_source_sha256 preserves the snapshot at lifecycle acceptance; commit_source_sha256 records current source including the later --gui option. Actual interrupted collectors remain separately recorded.",
"gui_option": {
"status": "PASS",
"gui": true,
"cases": 1,
"scope": "GUI startup and one straight route only, not all four routes",
"position_error_m": 0.0649948183237473,
"port_free": true,
"actual_collector_sha256": "2772e7f261bbd192fb9f498bee032e86d501706ffa420201805fb6e804924d3e",
"evidence": "sim_ws/log/codex_gui_option_20261108/straight/result.json",
"evidence_sha256": "0d05641492261234f69b8e83de75accae1c6bd5872c773b73272516355eae8b2"
}
}