{"id":599,"date":"2023-04-25T13:58:25","date_gmt":"2023-04-25T05:58:25","guid":{"rendered":"https:\/\/doc.orionstar.com\/en\/?post_type=lsvr_kba&#038;p=599"},"modified":"2026-11-03T11:00:23","modified_gmt":"2026-11-03T03:00:23","slug":"multi-robots-info","status":"publish","type":"lsvr_kba","link":"https:\/\/doc.orionstar.com\/en\/knowledge-base\/multi-robots-info\/","title":{"rendered":"Multi-Robot Collaboration and Dispatching"},"content":{"rendered":"\n<p class=\"has-medium-font-size\"><strong>Multi-Robot Collaboration<\/strong><\/p>\n\n\n\n<p>Multi-robot collaboration includes multi-robot dispatching and multi-robot avoidance, which are basic capabilities of robot collaboration. The communication module involved here is also part of these basic multi-robot collaboration capabilities and is a system feature.<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; Multi-robot collaboration requires no manual operation; all behavior is dispatched by the robot system. The prerequisite is that the robots work on the same map. When several robots meet, they use robot-to-robot communication to rank their current work priorities and decide whether to give way or keep working. This prevents robots from meeting at the same spot and getting stuck. Therefore, as long as the robots&#8217; performance and hardware are working normally, multi-robot collaboration works normally.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Multi-Robot Collaboration Information<\/strong><\/p>\n\n\n\n<p>       On robots with an ESP32 multi-robot communication module installed, you can use the following method to get multi-robot information, for example to build a multi-robot dispatching system. Currently, LuckiBot always has an ESP32 multi-robot communication module; other robots do not include this module by default.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">RobotApi.getInstance().registerStatusListener(Definition.STATUS_MULTIPLE_ROBOT_WORKING, mStatusListener);\nprivate StatusListener mStatusListener = new StatusListener() {\n    @Override\n    public void onStatusUpdate(String type, String data) {\n        try {\n            Type dataType = new TypeToken&lt;List&lt;MultiRobotStatus&gt;&gt;(){}.getType();\n            List&lt;MultiRobotStatus&gt; curRobotStatus = mGson.fromJson(data, dataType);\n        }catch(Exception ex){\n        }\n    }\n}<\/pre>\n\n\n\n<p>MultiRobotStatus is defined as follows:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">public class MultiRobotStatus {\n    private BasePoseBean pose;\n    private BasePoseBean goal;\n    private int id;\n    private int priority;\n    private boolean mapMatch;\n    private long time;\n    private int status;\n    private boolean curRobot = false;\n    private int errorStatus = 0;\n }<\/pre>\n\n","protected":false},"excerpt":{"rendered":"<p>Multi-Robot Collaboration Multi-robot collaboration includes multi-robot dispatching and multi-robot avoidance, which are basic capabilities of robot collaboration. The communication module involved here is also part of these basic multi-robot collaboration capabilities and is a system feature. &nbsp; &nbsp; &nbsp; &nbsp; Multi-robot collaboration requires no manual operation; all behavior is dispatched by the robot system. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":[],"lsvr_kba_cat":[6],"lsvr_kba_tag":[],"_links":{"self":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_kba\/599"}],"collection":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/comments?post=599"}],"version-history":[{"count":3,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_kba\/599\/revisions"}],"predecessor-version":[{"id":931,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_kba\/599\/revisions\/931"}],"wp:attachment":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/media?parent=599"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_kba_cat?post=599"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_kba_tag?post=599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}