Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我看过执行线路跟踪的代码示例和执行避障的代码示例。但是有没有结合线路跟随和避障的代码示例?
我为分配而构建的代码之一就是这样做的。它遵循澳大利亚 Robocup 救援的规则。
因此,如果您查看此链接上的 navigateBottle() 和 followLine()单击此处获取代码。这应该有助于您了解如何做到这一点。
这确实使用了 2 个光传感器和一个声纳传感器。它会在 2 个传感器和声纳之间产生弹跳效果,以查看物体是否在其前面。
山姆