Skip to content

v1.4.0a5: Add position depending rotation check for movers on tiles - #11

Open
MarcoGrabowski wants to merge 6 commits into
ubi-coro:mainfrom
MarcoGrabowski:rotation_points
Open

MarcoGrabowski wants to merge 6 commits into
ubi-coro:mainfrom
MarcoGrabowski:rotation_points

Conversation

@MarcoGrabowski

Copy link
Copy Markdown
Member

Some MagLev systems can only turn a mover a full 360° at certain positions. This PR adds a way to check that in BasicMagBotEnv:

  • New rotation_points constructor 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 within tol of a rotation point.
  • check_mover_rotation(...) flags movers that are away from a rotation point and whose yaw is more than max_yaw_deviation (default ±10°) away from the nearest multiple of 90°.
  • The collision-checking tutorial explains the new check.
  • New tests in tests/test_basic_env.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants