love
Enable the Unitree Go2 robot to express affection through gestures or actions using natural language commands, translated into ROS2 instructions for execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"title": "loveArguments",
"type": "object"
}
Implementation Reference
- server.py:76-80 (handler)MCP tool handler for the 'love' tool. Calls WirelessController.love() method and then stops the controller, returning the result message.@mcp.tool() def love(): _, msg = wirelesscontroller.love() wirelesscontroller.stop() return msg
- msgs/wirelesscontroller.py:63-65 (helper)Core implementation of the 'love' action in the WirelessController class. It first stands up from a fall and then publishes custom key presses (keys=2064) to the ROS2 topic.def love(self): self.stand_up_from_a_fall() return self._customised_movements(keys=2064)