get_actual_joint_voltage
Retrieve real-time voltage readings for each joint of a Universal Robot to monitor electrical performance and diagnose issues. Provide the robot's IP address to access this data.
Instructions
获取指定IP机器人的各关节电压(伏特) IP:机器人地址
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes |
Implementation Reference
- The MCP tool handler for get_actual_joint_voltage. Decorated with @mcp.tool(), it checks robot connection, retrieves joint voltages using robotModle_list[ip].ActualJointVoltage(), logs and returns the result or error.
@mcp.tool() def get_actual_joint_voltage(ip: str): """获取指定IP机器人的各关节电压(伏特) IP:机器人地址""" try: if '连接失败' in link_check(ip): return return_msg(f"与机器人的连接已断开。") logger.info(f"{robotModle_list[ip].ActualJointVoltage()}(伏特)") return return_msg(f"{robotModle_list[ip].ActualJointVoltage()}(伏特)") except Exception as e: logger.error(f"机器人的关节电压获取失败: {str(e)}") return return_msg(f"机器人的关节电压获取失败: {str(e)}")