Repository navigation
v1.4.0a5: Add position depending rotation check for movers on tiles - #11
Open
MarcoGrabowski wants to merge 6 commits into
Open
MarcoGrabowski wants to merge 6 commits into
MarcoGrabowski wants to merge 6 commits into
Conversation
MarcoGrabowski
force-pushed
the
rotation_points
branch
from
November 27, 2026 09:23
15fe934 to
f710685
Compare
…l for rotation points
…ile_rotation_points to get_default_tile_rotation_points
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.
Some MagLev systems can only turn a mover a full 360° at certain positions. This PR adds a way to check that in
BasicMagBotEnv:rotation_pointsconstructor argument and property: the (x, y) points where a full rotation is allowed. If it's not set,get_tile_rotation_points()is used. That returns the centre, corners and edge midpoints of each tile, but only where the mover fully covers existing tiles (not at the edge of the layout or next to missing tiles).full_rotation_possible(qpos, tol)checks whether a mover is withintolof a rotation point.check_mover_rotation(...)flags movers that are away from a rotation point and whose yaw is more thanmax_yaw_deviation(default ±10°) away from the nearest multiple of 90°.tests/test_basic_env.py.