路径策划者Algorthim有限制吗?

发布于 2025-02-03 22:37:37 字数 828 浏览 5 评论 0原文

问题:

在今天的工作中遇到一个有趣的问题。我正在尝试使用一些有趣的规则来构建多路径计划算法。当我首先尝试的任何尝试时,我想对社区进行思考。希望这已经是一个解决的问题,我只是不知道搜索词。

规则:

  • 有NR红色起点,有NB蓝色起点。您必须为每个起点绘制一条路径。
  • 每种组合的每个路径只能相交一次,例如路径red_1只能在一个点上与blue_1相交。
  • 相同颜色的路径需要彼此维持D(ISTANE),并且延伸可能不会相交。路径必须具有传染性。
  • 路径的宽度0< W< 1/3 D.
  • 路径可能不会退出感兴趣的区域。
  • 该区域是任意的多边形,可以是凸或凹。
  • 起步位置应由预定义,可以放置在感兴趣区域或其边缘内的任何地方。

目标:

  • 路径应涵盖尽可能多的感兴趣领域。

”在此处输入图像说明”

Issue:

Ran into an interesting problem at work today. I am trying to build a multi path planner algorithm with some interesting rules. I wanted to get the communities thoughts on approaches while I work on whatever I try first. Hoping this is a solved problem already and I just don't know the search terms.

Rules:

  • There are Nr red start points, there are Nb blue start points. You must draw one path for each start point.
  • Each path should only intersect once for each combination, for instance path red_1 may only intersect path blue_1 at a single point.
  • Paths of the same color need to maintain D(istance) from each other and by extension may not intersect. Paths must be contagious to start.
  • Paths have width 0 < W < 1/3 D.
  • Paths may not exit the region of interest.
  • The region is an arbitrary polygon, it may be convex or concave.
  • Start positions should be predefined by may be placed anywhere within the area of interest or on its edges.

Goal:

  • Paths should cover as much of the area of interest as possible.

enter image description here

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

悲欢浪云 2025-02-10 22:37:37

第一次通过:

Draw red lines vertically
If red line too close to another on right, move left
If red line too close to another on left, move right
Remove one line from any pair of red lines too close
Draw blue lines horizontally
If blue line too close to another below, move up
If blue line too close to another above, move down
Remove one line from any pair of blue lines too close

随机示例在正方形区域

”在此处输入图像说明“

https://github.com/jamesbremner/aris2

我添加了感兴趣的凸多边形区域,这是三角形区域

“

A first pass:

Draw red lines vertically
If red line too close to another on right, move left
If red line too close to another on left, move right
Remove one line from any pair of red lines too close
Draw blue lines horizontally
If blue line too close to another below, move up
If blue line too close to another above, move down
Remove one line from any pair of blue lines too close

Example of random starts in square region

enter image description here

Complete C++ code for this application at https://github.com/JamesBremner/aris2

I have added convex polygon regions of interest, here is an example for a triangular region

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文