Add spatialmath worksheet game for learning spatial transformations#5902
Draft
Add spatialmath worksheet game for learning spatial transformations#5902
Conversation
Interactive CLI tool with 5 progressive levels teaching Compose, PoseInverse, and PoseBetween through guided exercises. Visualizes poses as asymmetric 10x20x30 boxes via motion-tools. Run with: go run ./spatialmath/worksheet/cmd Jump to level: go run ./spatialmath/worksheet/cmd --level 2 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Wrap fmt.Print/Println/Printf in nolint helpers for CLI output - Handle reader.ReadString errors with _ assignment - Break long string literals to stay under 140 char limit Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Run gofumpt -extra and gci for proper formatting/import ordering - Add package comment for revive/stylecheck - Use nolint:errcheck for interactive ReadString calls Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
InputPoses map keys now use the actual variable names from the Setup code (e.g. "rot", "point", "endEffector") instead of generic "a", "b". Colors are assigned by sorted order rather than by hardcoded name map. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Availability
Quality
Performance
The above data was generated by running scenes defined in the
|
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.
Summary
Interactive CLI tool that teaches spatialmath transformations through guided exercises with 3D visualization. Inspired by the educational worksheet in a7c997a, this builds a 5-level progressive game covering Compose, PoseInverse, and PoseBetween with motion-tools visualization.
Changes
--level Nflag to jump to any level (1-5) or run allTesting
go build ./spatialmath/worksheet/cmdcompiles cleanlygo vet ./spatialmath/worksheet/...passesgo run ./spatialmath/worksheet/cmd— run all levels interactivelygo run ./spatialmath/worksheet/cmd --level 2— jump to a specific levelClaude Code Prompts Used
🤖 Generated with Claude Code