get_joint_temperatures
Retrieve joint temperatures in Celsius for a specified robot IP address. Monitor and manage Universal Robots' thermal status directly through the nUR MCP Server.
Instructions
获取指定IP机器人各关节的温度(摄氏度)。 IP:机器人地址
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes |
Implementation Reference
- Handler function for the 'get_joint_temperatures' MCP tool. Decorated with @mcp.tool() for registration. Retrieves joint temperatures from the UR robot model after checking connection.@mcp.tool() def get_joint_temperatures(ip: str): """获取指定IP机器人各关节的温度(摄氏度)。 IP:机器人地址""" try: if '连接失败' in link_check(ip): return return_msg(f"与机器人的连接已断开。") return return_msg(f"{robotModle_list[ip].JointTemperatures()}(摄氏度)") except Exception as e: logger.error(f"机器人各关节的温度获取失败: {str(e)}") return return_msg(f"机器人各关节的温度获取失败: {str(e)}")