You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PyPI page now shows the README. No code changes.
0.3.1
Releases publish to PyPI. CI tests the Python tool on ROS 2 Lyrical.
0.3.0
Builds in CI on ROS 2 Lyrical (C++ package: equivalence tests and a fake-graph check; the Python package is not CI-tested on Lyrical, and nothing has run against a live robot or sim there).
Fix: the C++ package links targets directly, because Lyrical no longer has ament_target_dependencies.
armchaos_fast now does deactivate too, with the same restore-on-exit safety as the Python relay (normal end, SIGINT, SIGTERM, max_duration; exit 3 if a controller could not be restored). test/cpp_restore_check.py checks all four against fake_cm.py; the 26 equivalence tests still pass. New dependency: controller_manager_msgs.
examples/pipeline_demo.py runs armchaos, armdoc, trajlens and forcetrace in one ROS-free run (forcetrace reads the squeezed joint's effort as a force proxy).
CI job arms: Fanuc and Panda on ros2_control mock hardware, each scenario run with --armdoc.
CI job jazzy-cpp (ros:jazzy-ros-base): builds armchaos_cpp, runs the equivalence tests and the freeze check. Run locally in docker first: builds, 26 tests pass, freeze applied.
examples/make_demo_gif.py renders a MuJoCo UR5e demo GIF (docs/demo_ur5e_faults.gif): five faults from the real fault models, armdoc's real verdict drawn on every frame. No ROS needed.
armchaos_fast now reads /joint_states by default, like the Python tool (it defaulted to /joint_states_raw, which only the fake arm publishes). The fake-arm test passes -p source:=/joint_states_raw.
Verified on two non-UR arms with the real ros2_control controller manager (mock hardware): FANUC (6 joints) and Franka Panda (7 joints, separate gripper controller). 10 of 10 faults named by the expected armdoc code on each. Added test/scenario_fanuc.yaml, test/scenario_panda.yaml, headless launch files and the recorded runs under docs/.
New armchaos_cpp colcon package (in this repo): ros2 run armchaos_cpp armchaos_fast is a C++ relay with the nine stream faults (freeze, slow, stutter, lag, noise, nan, spoof, squeeze, spike) and the same scheduling as the Python relay. On a 500 Hz stream (one 15 s run each, busy machine) it used 4.6% of a core and 22 MB against 18.2% and 60 MB for the Python relay; median relay latency 235 us against 326 us. deactivate was added later (see above).
test/test_cpp_equivalence.py replays identical event sequences (11 fault setups including overlapping and back-to-back faults, two seeds each) through the Python Engine and the C++ engine and requires bit-identical samples; noise is checked for determinism per seed and for the right spread, since the two languages use different random generators.
test/cpp_relay_check.py and a CI step run the C++ relay against fake_cm.py and require the stream to stop during a freeze and resume after it.
0.2.0
Safe shutdown: Ctrl-C and SIGTERM stop the relay and switch every deactivated controller back on (blocking, with retries) before exiting; exit code 130 / 143, or 3 if a controller could not be restored. --restore-on-exit (default) / --no-restore-on-exit.
--max-duration SECONDS (default 600): a longer scenario is refused, and a run that overshoots it is stopped and restored.
expect: per scenario step and --expect CODE for inject; --armdoc runs armdoc on the faulted stream and prints a pass/fail table, exiting 1 if an expected code did not fire (--armdoc-lead sets the healthy baseline, default 4 s).
armchaos --version, pyproject.toml so pip install git+https://github.com/darshmenon/armchaos works (colcon still builds it).
CI workflow: ROS-free unit tests and a pip install check, plus a ROS Humble job that runs the restore check and an armdoc end-to-end scenario.
New tests: test/test_report.py (ROS-free), test/restore_check.py (against test/fake_cm.py), test/scenario_expect.yaml.
0.1.0
First version: break a ros2_control arm on purpose, then restore it.
Stream faults (armchaos relays /joint_states to a second topic through the active faults): freeze, slow, stutter, lag, noise, nan, spoof, squeeze, spike.
Controller fault: deactivate a controller through controller_manager/switch_controller, reactivated when the fault ends (and on Ctrl-C).
armchaos run scenario.yaml, armchaos inject FAULT key=value --for N, armchaos list, --dry-run, --events (JSON lines).
Tested against armdoc on a fake ros2_control graph and on a UR3 in Gazebo; see the README for which faults armdoc names and which it misses.