fix: compatibility'
This commit is contained in:
1 parent
ef712728e2
commit
c710b955b1
1 file changed
+4
-2
@@ -58,8 +58,10 @@ def preflight(node, duration):
|
||||
while rclpy.ok() and time.monotonic() < deadline:
|
||||
rclpy.spin_once(node, timeout_sec=0.1)
|
||||
# RViz lifecycle clients can share a manager's node name; only actual servers conflict.
|
||||
conflicts = sorted(name for name, service in CONFLICT_SERVICES.items()
|
||||
if node.get_servers_info_by_service(service))
|
||||
conflicts = sorted(
|
||||
name for name, service in CONFLICT_SERVICES.items()
|
||||
if node.count_services(service) > 0
|
||||
)
|
||||
if conflicts:
|
||||
print('[Nav2] 启动拒绝:当前 ROS_DOMAIN_ID='+os.environ['ROS_DOMAIN_ID']+
|
||||
' 已有导航/定位节点:'+', '.join(conflicts)+
|
||||
|
||||
Reference in new issue
Block a user