{% extends "base.html" %} {% block title %}UniLab System Status{% endblock %} {% block header %}UniLab System Status{% endblock %} {% block top_info %}
系统模式: {{ "主机模式 (HOST)" if is_host_mode else "从机模式 (SLAVE)" }}
{% if registry_info %}
{% if registry_info.paths %}
注册表路径:
{% endif %} {% if registry_info.devices_paths %}
设备目录:
{% endif %} {% if registry_info.device_comms_paths %}
设备通信目录:
{% endif %} {% if registry_info.resources_paths %}
资源目录:
{% endif %}
{% endif %} {% endblock %} {% block content %} {% if is_host_mode and host_node_info.available %}

主机节点信息

已管理设备 {{ host_node_info.devices|length }}

{% for device_id, device_info in host_node_info.devices.items() %} {% else %} {% endfor %}
设备ID 命名空间 机器名称 状态
{{ device_id }} {{ device_info.namespace }} {{ device_info.machine_name }} {{ "在线" if device_info.is_online else "离线" }}
没有发现已管理的设备

动作客户端 {{ host_node_info.action_clients|length }}

已接纳动作:

{% for action_name, action_info in host_node_info.action_clients.items() %} {% endfor %}
话题 类型
{{ action_name }} {{ action_info.type_name }}

已订阅主题 {{ host_node_info.subscribed_topics|length }}

{% if host_node_info.subscribed_topics %}
{% for topic in host_node_info.subscribed_topics %}
{{ topic }}
{% endfor %}
{% else %}
没有发现已订阅的主题
{% endif %}
{% if host_node_info.device_status %}

设备状态

{% for device_id, properties in host_node_info.device_status.items() %} {% for prop_name, prop_value in properties.items() %} {% if loop.first %} {% endif %} {% endfor %} {% else %} {% endfor %}
设备ID 属性 最后更新
{{ device_id }}{{ prop_name }} {{ prop_value }} {% if device_id in host_node_info.device_status_timestamps and prop_name in host_node_info.device_status_timestamps[device_id] %} {% set ts_info = host_node_info.device_status_timestamps[device_id][prop_name] %} {% if ts_info.elapsed >= 0 %} {{ ts_info.elapsed }} 秒前 {% else %} 未更新 {% endif %} {% else %} 无数据 {% endif %}
没有设备状态数据
{% endif %}
{% endif %}

Local Devices

{% for device_id, device_info in ros_node_info.registered_devices.items() %} {% set device_loop_index = loop.index %} {% endfor %}
Device ID 节点名称 命名空间 机器名称 状态项 动作数
{{ device_id }} {{ device_info.node_name }} {{ device_info.namespace }} {{ device_info.machine_name|default("本地") }} {{ ros_node_info.device_topics.get(device_id, {})|length }} {{ ros_node_info.device_actions.get(device_id, {})|length }}

Device Types

Resource Types

Converter Modules

{% endblock %} {% block scripts %} {{ super() }} {% endblock %}