Repository navigation
Releases
Releases · darshmenon/armchaos
v0.3.2
Changelog
Unreleased
0.3.2
- 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_fastnow doesdeactivatetoo, 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.pychecks all four againstfake_cm.py; the 26 equivalence tests still pass. New dependency:controller_manager_msgs.examples/pipeline_demo.pyruns 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): buildsarmchaos_cpp, runs the equivalence tests and the freeze check. Run locally in docker first: builds, 26 tests pass, freeze applied. examples/make_demo_gif.pyrenders 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_fastnow reads/joint_statesby 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 underdocs/. - New
armchaos_cppcolcon package (in this repo):ros2 run armchaos_cpp armchaos_fastis 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.deactivatewas added later (see above). test/test_cpp_equivalence.pyreplays identical event sequences (11 fault setups including overlapping and back-to-back faults, two seeds each) through the PythonEngineand the C++ engine and requires bit-identical samples;noiseis checked for determinism per seed and for the right spread, since the two languages use different random generators.test/cpp_relay_check.pyand a CI step run the C++ relay againstfake_cm.pyand 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 CODEforinject;--armdocruns armdoc on the faulted stream and prints a pass/fail table, exiting 1 if an expected code did not fire (--armdoc-leadsets the healthy baseline, default 4 s).armchaos --version,pyproject.tomlsopip install git+https://github.com/darshmenon/armchaosworks (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(againsttest/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_statesto a second topic through the active faults):freeze,slow,stutter,lag,noise,nan,spoof,squeeze,spike. - Controller fault:
deactivatea controller throughcontroller_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.
v0.3.1
Changelog
Unreleased
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_fastnow doesdeactivatetoo, 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.pychecks all four againstfake_cm.py; the 26 equivalence tests still pass. New dependency:controller_manager_msgs.examples/pipeline_demo.pyruns 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): buildsarmchaos_cpp, runs the equivalence tests and the freeze check. Run locally in docker first: builds, 26 tests pass, freeze applied. examples/make_demo_gif.pyrenders 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_fastnow reads/joint_statesby 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 underdocs/. - New
armchaos_cppcolcon package (in this repo):ros2 run armchaos_cpp armchaos_fastis 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.deactivatewas added later (see above). test/test_cpp_equivalence.pyreplays identical event sequences (11 fault setups including overlapping and back-to-back faults, two seeds each) through the PythonEngineand the C++ engine and requires bit-identical samples;noiseis checked for determinism per seed and for the right spread, since the two languages use different random generators.test/cpp_relay_check.pyand a CI step run the C++ relay againstfake_cm.pyand 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 CODEforinject;--armdocruns armdoc on the faulted stream and prints a pass/fail table, exiting 1 if an expected code did not fire (--armdoc-leadsets the healthy baseline, default 4 s).armchaos --version,pyproject.tomlsopip install git+https://github.com/darshmenon/armchaosworks (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(againsttest/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_statesto a second topic through the active faults):freeze,slow,stutter,lag,noise,nan,spoof,squeeze,spike. - Controller fault:
deactivatea controller throughcontroller_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.
v0.3.0
Changelog
Unreleased
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_fastnow doesdeactivatetoo, 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.pychecks all four againstfake_cm.py; the 26 equivalence tests still pass. New dependency:controller_manager_msgs.examples/pipeline_demo.pyruns 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): buildsarmchaos_cpp, runs the equivalence tests and the freeze check. Run locally in docker first: builds, 26 tests pass, freeze applied. examples/make_demo_gif.pyrenders 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_fastnow reads/joint_statesby 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 underdocs/. - New
armchaos_cppcolcon package (in this repo):ros2 run armchaos_cpp armchaos_fastis 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.deactivatewas added later (see above). test/test_cpp_equivalence.pyreplays identical event sequences (11 fault setups including overlapping and back-to-back faults, two seeds each) through the PythonEngineand the C++ engine and requires bit-identical samples;noiseis checked for determinism per seed and for the right spread, since the two languages use different random generators.test/cpp_relay_check.pyand a CI step run the C++ relay againstfake_cm.pyand 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 CODEforinject;--armdocruns armdoc on the faulted stream and prints a pass/fail table, exiting 1 if an expected code did not fire (--armdoc-leadsets the healthy baseline, default 4 s).armchaos --version,pyproject.tomlsopip install git+https://github.com/darshmenon/armchaosworks (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(againsttest/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_statesto a second topic through the active faults):freeze,slow,stutter,lag,noise,nan,spoof,squeeze,spike. - Controller fault:
deactivatea controller throughcontroller_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.
armchaos 0.2.0
Restores controllers on Ctrl-C and SIGTERM, max-duration guard, expect checks with an armdoc pass/fail table, pip install and CI. See CHANGELOG.md.
armchaos 0.1.0
Ten injectable faults for ros2_control arms (freeze, slow, stutter, lag, noise, nan, spoof, squeeze, spike, deactivate), a scenario runner, and an armdoc fault-to-code table verified on a fake arm and a UR3 in Gazebo. See CHANGELOG.md.