Reddit 用户称 Claude Code 帮助 Roborock 逃出楼梯下
AI 总结
一名 Reddit 用户称,Claude Code 为一台 Roborock 编写代码、读取日志并运行测试,用于让机器人从狭窄的楼梯下驶出。系统由 Raspberry Pi 运行 Home Assistant,并通过 Google Home 桥接。受阻时,机器人会后退几厘米并尝试其他角度;作者表示其位置读数会波动,因此无法依靠完全固定的路线完成。用户称测试中 10 次驶出成功了 10 次,但这一说法尚未经过独立验证。
深度见解
这提供了一个具体但尚未经独立验证的案例,显示编程智能体可以在人工视觉反馈下协助实体设备软件集成,负责代码、日志和测试。
| We've had our Roborock for a while. When we moved into a new apartment, under the stairs seemed like the perfect spot for it: out of everyone's way, and space that's otherwise wasted. Then we realised it can't get out of there on its own. The way out is only a few cm wider than the robot, so before every clean I steered it out by hand in the app. Over about one evening of actual work, I fixed that with Claude Code. I was mostly the eyes ("it bumped on the left"), and Claude wrote the code, read the robot's logs and ran the tests. **Things we figured out:** - The robot has hidden remote-control commands (what the app's joystick uses), undocumented, so it was trial and error. - Moves in the first ~5 seconds of remote control are silently ignored. - After backing off the dock, the robot does a 180° turn **by itself**. For a while every turn looked like a huge overshoot. - Its map position updates live, so the script can measure after each move instead of driving blind. **Setup:** a Raspberry Pi runs Home Assistant with a bridge to Google Home. I tap "Roborock living room": it drives out of the gap and starts cleaning. If anything goes wrong, it gives up and docks. **The honest part:** the first fix was "dodge right when blocked". Then the robot steered itself straight into the stair post on the right. The robot's position reading wobbles by about as much room as it has in the gap, so there's no perfect fixed path. **What works:** when it's blocked, it backs off a few cm and tries other angles, nearest first, on both sides. Test: 10 runs in a row, out and back to the dock: **10/10 out**. submitted by /u/fillyourcoffee [link] [comments] |
#Claude Code#Roborock#Raspberry Pi#Home Assistant#Google Home