Skip to content

Draw RRT obstacles as data-coordinate circles (fixes #1396) - #1501

Closed
blessedefe4real wants to merge 2 commits into
AtsushiSakai:masterfrom
blessedefe4real:fix/obstacle-circle-patches-1396
Closed

blessedefe4real wants to merge 2 commits into
AtsushiSakai:masterfrom
blessedefe4real:fix/obstacle-circle-patches-1396

Conversation

@blessedefe4real

Copy link
Copy Markdown

Reference issue

What does this implement/fix?

Additional information

CheckList

  • Did you add an unittest for your new example or defect fix?
  • Did you add documents for your new example?
  • All CIs are green? (You can check it after submitting)

Obstacles were drawn with plt.plot(ox, oy, "ok", ms=30 * size). Marker
size is in points, so the circles did not match the obstacle radius
used for collision checking and changed apparent size when the figure
was resized or made fullscreen.

Draw each obstacle with plt.Circle((ox, oy), size) instead, so it is
sized in data units and matches the collision radius at any figure
size. Applies to RRT Dubins, RRT* Dubins, RRT* Reeds-Shepp, Informed
RRT*, Batch Informed RRT* and LQR-RRT*.
Each affected planner's draw_graph must draw one Circle per obstacle
with the obstacle's center and collision radius. These tests fail with
the previous marker-based drawing.
@blessedefe4real
blessedefe4real force-pushed the fix/obstacle-circle-patches-1396 branch from d3b4b0f to ef89105 Compare November 6, 2026 21:00
@blessedefe4real

Copy link
Copy Markdown
Author

Closing as a duplicate of #1407, which already fixes #1396 the same way.

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