Commit Graph

22 Commits

Author SHA1 Message Date
Grant du Toit
8a12e3bf50 Retire stub state_estimator; consumers use EKF /odometry/filtered
- state_estimator was an unimplemented stub (empty callbacks, never
  published /rov/state) - removed node, entry point, launch block
- motion_controller + mission_executor: /rov/state -> /odometry/filtered
  (the working robot_localization EKF output)
- Eliminates redundant/competing state estimators; single source of truth
- Verified: EKF publishes ~11Hz, both consumers subscribed
2026-06-20 13:55:12 +00:00
Grant du Toit
7d4e6dfc23 Fix EKF IMU input: point imu0 at real MAVROS topic
- ekf.yaml imu0: /imu/data -> /mavros/mavros/data (the empty /imu/data
  topic had no publisher; EKF produced no output)
- Verified: /odometry/filtered now publishes valid fused orientation
  with real Pixhawk IMU via MAVROS
- Note: high covariance expected (single budget IMU, untuned, no position
  input) - tune after Xsens/DVL added
2026-06-20 13:39:02 +00:00
Grant du Toit
e36644e97e Fix rel_alt type collision; retire VM-era mock_publisher
- depth_node + failsafe_monitor: subscribe to real MAVROS topic
  /mavros/mavros/rel_alt (was /mavros/global_position/rel_alt)
- failsafe_monitor: Float32 -> Float64 (resolves duplicate-type error
  that dropped the topic from recordings)
- Remove mock_publisher (VM-era fake data, now collides with real MAVROS)
- Verified: /rov/depth now publishes real data; zero duplicate-type errors
2026-06-20 13:15:15 +00:00
Grant du Toit
c94412ddae Fix full-stack launch: MAVROS fcu_url + plugin_allowlist, timestamped bag dir, BEST_EFFORT QoS on MAVROS subs, battery<0 unknown guard
- rov_full.launch.py: fcu_url to udp://@<ip>:14550 (was bad local bind); add plugin_allowlist (sys_status,sys_time,command,imu,global_position,setpoint_velocity) to stop duplicate-subscription crash on companion_process_status/debug_value
- foxglove_mcap.launch.py: timestamp bag output dir (was fixed /data/bags/dive, failed on second launch)
- failsafe_monitor/depth_node/state_estimator: qos_profile_sensor_data on MAVROS-sourced subs (MAVROS publishes BEST_EFFORT; default RELIABLE blocked all messages)
- failsafe_monitor: treat battery_percent<0 as UNKNOWN not critical (SITL has no battery; was forcing permanent EMERGENCY_SURFACE)
2026-06-17 18:28:06 +00:00
Grant du Toit
45b3301952 Fix ekf.yaml process_noise_covariance: all floats (was mixed int/float, failed YAML parse) 2026-06-17 12:14:28 +00:00
Grant du Toit
7590fafa04 Add missing setup.cfg to all Python packages - fixes executable install path for ros2 launch 2026-06-17 12:05:46 +00:00
Grant du Toit
f1c6710b1a Add missing rov_bringup/config directory to fix colcon build 2026-06-17 10:09:31 +00:00
Grant
6aa64f02c2 Task 11: update W2 variable names for WebSocket data path 2026-05-14 06:45:26 +02:00
Grant
d16e451765 Task 11: rewrite publisher as WebSocket server for Cockpit v1.18.0 2026-05-13 05:24:55 +02:00
Grant
eb19cee7af Task 11: fix sysid to 1 for mavlink2rest routing; fix W1 variable name 2026-05-12 08:25:43 +02:00
Grant
46e34f6605 Task 11: mock NAMED_VALUE publisher; update W0 widget 2026-05-12 07:08:40 +02:00
Grant
5396949cf6 chore: remove duplicate and zip files from widgets folder 2026-05-12 00:42:13 +02:00
Grant
53ebfc8dc6 fix: rebuild all widgets as JSON, remove CSS globals and unicode 2026-05-12 00:40:40 +02:00
Grant
6a145f24d2 feat: add all Argonaut 3 DIY widgets (W0-W5) 2026-05-11 10:30:55 +02:00
Grant
81fad536f9 docs: add CLAUDE.md with behaviour rules and terminal conventions 2026-05-07 22:35:43 +00:00
Grant
559f60dfd8 feat(bringup): add foxglove_bridge and MCAP recording 2026-05-07 08:26:26 +00:00
Grant
6aea0c24a6 feat: add rov_simulation package with mock_publisher and dev_stack launch
- New rov_simulation package (dev only — not for vehicle deployment)
- mock_publisher: synthetic MAVROS sensor data with 5 test scenarios
  (nominal, low_battery, comms_loss, depth_warning, all_clear)
- dev_stack.launch.py: launches mock_publisher + failsafe_monitor + mission_executor
- Scenarios trigger specific failsafe conditions for end-to-end testing
2026-05-07 00:43:52 +00:00
Grant
c3a8b4bc77 fix: mission launch file now correctly loads env-specific config at launch time 2026-05-07 00:29:02 +00:00
Grant
4b1766255a feat: implement mission executor with breadcrumb system and failsafe integration
- Full mission state machine: IDLE/RUNNING/PAUSED/COMPLETE/ABORTED
- Breadcrumb buffer: 1800 entries at 2s interval (1hr coverage)
- Failsafe integration: HOVER=pause, RETURN_TO_SAFE=abort+breadcrumb, EMERGENCY=immediate abort
- Waypoint loading from YAML mission file via LOAD command
- Arrival detection with configurable radius
- Image capture loiter with configurable delay
- Simple proportional navigation toward waypoints (Phase 3+ replaces with full planner)
- Entry point recorded at mission start for safe zone reference
2026-05-07 00:26:12 +00:00
Grant
9f7a775427 feat: implement full failsafe monitor per design v2.0
- Updated FailsafeStatus.msg with assessment state, FSM state, thruster_anomaly flag
- Implemented GREEN/AMBER/RED continuous self-assessment
- Dynamic assessment rates: 5Hz/20Hz/50Hz
- Full FSM: NORMAL->HOLD_AND_RECOVER->RETURN_TO_SAFE->EMERGENCY_SURFACE
- Priority-ordered failsafe conditions (8 levels per design spec)
- Tiered battery thresholds: warning/return/critical/emergency
- Conditional comms loss response based on assessment state
- Conditional manual abort response based on assessment state
- All thresholds configurable via failsafe.yaml
2026-05-07 00:01:54 +00:00
Grant
31ddc2c7eb Add .gitattributes for consistent line endings 2026-05-03 22:22:51 +00:00
Grant
9b03548533 Initial workspace — six-package autonomy stack 2026-05-03 09:26:04 +00:00