chore(imu): align package with the IDMind bible - #4
Open
cneves-idmind wants to merge 1 commit into
Open
cneves-idmind wants to merge 1 commit into
cneves-idmind wants to merge 1 commit into
Conversation
Documentation (bible: Documentation) - README.MD rewritten to match the source: v2 node, namespaced topics, full topic/service/parameter tables with types and defaults. The old README described the wrong node prefix, called `euler` degrees (it is radians) and omitted several publishers, the `auto_reconnect` param and the `standby` service. Dependencies (bible: Dependencies) - Add requirements.txt for the pip-only `tinkerforge` bindings, which rosdep cannot provide. Logging (bible: Logging) - imu_brick_node_v2 main() logs shutdown through the ROS logger instead of print(). Style / PEP 8 / PEP 257 (bible: Code Style) - Fix the flake8 (E501, E221) and pep257 (D401, D213) findings in imu_brick_node_v2.py and setup.py so `colcon test` is green. - Exclude the frozen legacy imu_brick_node.py from the style linters (it is kept for reference per CLAUDE.md and deliberately not restyled). - Populate the empty .gitignore. Not addressed here (tracked for the C++ refactor track): node logic is not separated from ROS, MultiThreadedExecutor vs SingleThreadedExecutor, `std_msgs` primitive topics (euler/timer/calibration), and the absent functional test suite. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CkJzZY8CRBa3MgTyEimHZj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Audits
idmind_imumasteragainst~/idmind-bible(ROS 2 + Python guides) and fixes the deviations that are safe on this legacy Python node. Branched frommasterafter #3.Fixed
README.MDrewritten to match the source — v2 node, namespaced topics, full topic/service/parameter tables (type + default). The old file used the wrong topic prefix, called~/eulerdegrees (it publishes radians), and omitted~/gravity,~/calibration,~/timer, theauto_reconnectparameter and the~/standbyservice.requirements.txtfor the pip-onlytinkerforgebindings (not in rosdep). Referenced from the README andCLAUDE.md.imu_brick_node_v2.main()logs shutdown through the ROS logger instead ofprint().ament_flake8(E501, E221) andament_pep257(D401, D213) findings inimu_brick_node_v2.pyandsetup.py. Excluded the frozen legacyimu_brick_node.pyfrom the style linters (kept for reference perCLAUDE.md, deliberately not restyled). Populated the empty.gitignore.colcon buildclean;colcon testnow green (was failing flake8 + pep257 onmaster). Node behaviour verified unchanged with a stubbed-import harness (services register, standby suspends/resumes publishing).Not addressed — needs the C++ refactor, not a patch here
These are real bible deviations but each is an architectural change to an untested hardware node, and the
refactor-cppbranch already addresses all of them:MultiThreadedExecutor(num_threads=6); bible prefersSingleThreadedExecutor.~/euler,~/timer,~/calibrationusestd_msgsprimitives (Float32/UInt8MultiArray).~/standbyusesstd_srvs/SetBool, consistent with the existing~/ready(std_srvs/Trigger); switch to anidmind_base_msgsequivalent if one is preferred.🤖 Generated with Claude Code
https://claude.ai/code/session_01CkJzZY8CRBa3MgTyEimHZj