Robot-assisted drinking on the Kinova Gen3, as a RAMMP module: it picks the user's cup up by its handle, brings it to their open mouth, holds it there for a sip, and sets it back where it stood. It is the drinking skill of the earlier RAMMP system (empriselab/RAMMP: pick_drink, transfer_drink, stow_drink), on the December platform.
It runs as a capability engine (rammp-kitchen-capability-engines' CapabilityEngine, engine id drinking): the
orchestrator starts its actions, pick_up_drink, give_sip (one sip) and put_down_drink, and nothing moves otherwise
(interface). The rammp-drink command runs the same steps by hand, for setting up a site.
It is built on rammp-feeding's image and uses its code as it is: the guarded arm (every move checked as it runs), the shared planner's paths checked for what the gripper holds, the wrist camera, MediaPipe's face and the presentation at the mouth. It shares feeding's state folder: one site file, one table, one wrist camera mount, one home pose. Drinking needs the gripper empty: the fork comes out first (by hand, or by rammp-feeding's put_down_fork where it hangs on a stand) and goes back after (pick_up_fork).
Release 0.1.6: debajyotidasgupta/rammp-drinking:0.1.6 (Docker Hub, arm64), on rammp-feeding:0.7.2, for the arm
stack's 2.0 generation (kinova-gen3-ros2 2.0.0, rammp-curobo 2.0.1).
Run the entire drinking flow one sub-part at a time (verify each step, then run the next):
| Step | Command | What it does |
|---|---|---|
| 1 | rammp-drink detect-drink |
Close tips, move to drink_gaze, segment the black handle hole (SAM3), save pick plan |
| 2 | rammp-drink pickup-drink |
Move above & into handle, open grippers fully (0.0) to lock grooves, lift upright & carry level to drink_hold |
| 3 | rammp-drink face-user |
Rotate cup upright to drink_deliver (straw rotated +90° parallel to wrist camera, facing user) |
| 4 | rammp-drink detect-mouth |
Run MediaPipe open-mouth detection & save 3D mouth depth (last_mouth.json) |
| 5 | rammp-drink approach-drink |
Move straw straight toward the user (drinking.delivery.stop_m = 0.10 m = 10 cm stop) |
| 6 | rammp-drink sip-wait |
Hold at mouth for drinking.sip_s (5.0 s) so the user can drink |
| 7 | rammp-drink retract-drink |
Come straight back to drink_deliver & retrace to drink_hold |
| 8 | rammp-drink place-drink |
Rotate upright back over table & lower cup onto table |
| 9 | rammp-drink release-drink |
Close grippers (1.0), back off out of handle, and go to home |
- Combine steps 8 + 9:
rammp-drink putdown-drink(orrammp-drink put-down). - One-command full cycle:
rammp-drink drink. - Fine-grained stage slicing:
rammp-drink pick|sip|put-down [--start-at S] [--stop-after S](pick:gaze|find|above|pre|in|top|hold|lift|carry;sip:swing|look|wait|approach|sip|back;put-down:place|lower|release|out|home). - Reconfigure between experiments:
rammp-drink site show/rammp-drink site set --drink-sip 5.0 --drink-stop 0.10 --drink-rise 0.085 --cup-prompts "black handle,cup handle". Seerammp/docs/flatbot_runbook.mdfor the complete operator test sequence.
Every path that carries the cup is the shared planner's HOLD_LEVEL path (its tilt held all the way) round the arm's
base the short way, and we check it again for the cup's tilt and its shape against the table and the user before it
runs. Every way back retraces its way out, so no joint winds up (the wrist camera's cable).
On a robot already set up for rammp-feeding:
- Site file: add the
drinking:section ofconfig/machines/template.yamlto/srv/rammp_feeding/config/local.yaml. Measure the cup with a ruler, and setworkspace.table_height_m, which feeding uses too. - Poses: take the fork out of the gripper. Then
rammp-drink capture drink_gaze,drink_holdanddrink_deliver(place the cup in the gripper by hand for the last two:rammp-drink gripper close, the handle over the fingers,rammp-drink gripper open). - Check:
rammp-drink check. Thenrammp-drink pick,sipandput-downby hand; under the orchestrator, thedrinkingnode's actions.
The deployment checklist has the details.
rammp_drinking/ engine.py (the node) cli.py (the rammp-drink command) actions.py (pick_up, give_sip, put_down)
handle.py (the handle and the grasp) mug.py (the cup and the planner's world) config.py
config/ drinking.yaml (every tuned value), machines/template.yaml
launch/ tests/
Tests run on an arm64 Docker host (a Jetson), not on a laptop:
docker build --build-arg FEEDING_IMAGE=debajyotidasgupta/rammp-feeding:0.7.2 -t rammp_drinking:dev .
docker run --rm -v "$PWD:/work" -w /work rammp_drinking:dev bash tests/offline.sh # unit tests + the whole drink (fake robot)
ROBOT=<rammp-deployments config/robots/<robot>> tests/test_e2e.sh # the node's actions through the real 2.0
# driver, description and planner (a CUDA
# host); then the node as sheppy starts itBoth run on two test sites (tests/fixture.py): the arm level on its mount (the default) and RAMMP_TEST_SITE=tilt30,
rammp-feeding's arm leaning 30 deg (for the end to end, a robot folder of such an arm).
To release: build debajyotidasgupta/rammp-drinking:<version> from the tagged commit on the feeding image it names,
push it, and pin that tag in the manifest.