robodojo-hard-dev / README.md
vietnhat's picture
Hard tasks: 29 tasks in easy, medium and hard sets; an agent video of every task
8ce2608 verified
|
Raw History Blame Contribute Delete
15.6 kB
metadata
license: apache-2.0
pretty_name: RoboDojo hard tasks
tags:
  - robotics
  - simulation
  - isaac-sim
  - manipulation
  - bimanual

RoboDojo hard tasks

29 table-top tasks for the RoboDojo simulator (Isaac Sim, two ARX X5 arms), made for developing robot agents and their tools without touching the RoboDojo eval set. Each task comes with its code, a config, 20 layouts and a success check.

The tasks are in three sets, easy, medium and hard, by how often the current agent solves them. That agent is HexaShell spot-v4 with gpt-6.1-terra at medium effort ("v4"). It ran 5 episodes per task, on layouts 0-4.

set v4 success tasks both arms use it to
easy 5/5 11 3 check that a change does not break what already works
medium 1-4 of 5 12 5 measure a change: there is room to go up or down
hard 0/5 6 4 find out what a new tool or skill makes possible
  • Five episodes is a screen, not a measurement. A 3/5 task could have a true success rate anywhere from about 20% to 90%.
  • Dev and dev-test layouts: tune on layouts 0-9 and report on layouts 10-19.
  • Videos: videos/agent_v4/ has a v4 episode of every task: a success and a failure for each medium task, a failure for each hard task, and a success for each easy task.

Where the tasks come from

group prefix tasks where they come from
own (none) 4 made by us: open a laptop, put mugs into a pot, hang a headset, insert a cassette
own hard hd_ 5 made by us, one for each skill the others leave out: pour, handover, two-hand carry, push, rake
two-arm rc_ 11 rebuilt from ideas of the Robocurve Benchmarking Program, with our own scenes, objects and checks. Most need both arms.
RoboLab port rl_ 9 from RoboLab, ported to this robot and table with RoboLab's licence-clean objects
  • Skills: packing, carrying with two hands, holding something while the other hand acts, turning, pouring, handing over, tool use, precise insertion, and articulated objects (a laptop hinge, a sprung drawer, a falling lid).
  • Not the eval set: every task passes our eval guard. No task reuses an eval task's name or copies one of its [action, object, target] steps.

The tasks

hard_dev.json holds the sets: for each task its skill, its v4 result and, for the medium and hard sets, the main way v4 fails.

Easy: v4 solves every episode (5/5) (11 tasks)

task instruction skill both arms v4 note
hd_push_box_onto_mat Push the box onto the mat without lifting it. push without a grasp 5/5
hd_rake_can_into_bowl The can is out of reach. Pull it closer with the spatula, then put it in the bowl. tool use 5/5
hd_spatula_handover_to_holder Put the spatula in the utensil holder. Hand it from one hand to the other if one arm cannot reach both. handover yes 5/5
rc_jar_off_board Put the red jar in the blue tray. staging before a grasp 5/5
rc_mug_into_drawer Put the mug in the drawer and leave the drawer shut. hold a sprung drawer open yes 5/5
rc_spool_into_saddles Lay the spool's axle into the notches of the two posts. two-hand carry, precise placement yes 5/5
rl_clamp_and_scissors_only_in_right_bin Put the smaller of the two clamps and the scissors in the right bin, and do not touch anything else. pick and place into one of two bins 5/5 0/5 before its instruction was reworded: 'the large clamp' was the smaller of the two
rl_clean_up_toys Clean up all the small toys into the bin and leave the cube box on the table. pack into a bin 5/5
rl_reorient_all_mugs Stand all the mugs upright so that their openings face upwards. reorient several objects 4/4 the fifth episode was lost to API errors
open_laptop Open the laptop. articulated (hinge) 5/5
put_mugs_into_pot Put the two mugs into the pot. pick and place, several objects 5/5

Medium: v4 solves 1-4 of 5 (12 tasks)

task instruction skill both arms v4 main failure
rl_utensils_in_mug Put the fork and the spoon in the mug. pick and place, several objects 3/5 one utensil left on the table when the step budget runs out
rl_pack_food_by_colour Pack the yellow objects in the right container and the blue object in the left container. sort by colour into two bins 2/5 one or two of three objects packed, then the step budget runs out (847-899 of 900 steps)
rl_pack_three_box_foods Pack the boxed foods into the bin. pack into a bin 1/5 one of three boxes packed, then the step budget or the reply limit runs out
rl_pack_three_canned_foods Pack the canned foods into the bin. pack into a bin 4/5 a can wedged against the bin's outside wall
insert_cassette_into_rack Insert the cassette into the slot of the vertical rack. precise insertion 4/5 cassette knocked off the table during insertion
hang_headset_on_rack Hang the headset on the mug rack. hang on a hook 3/5 headset left beside the rack, not hanging, near the 600-step limit
hd_pour_balls_into_pot Pour the balls from the mug into the pot. pour 3/5 balls poured onto the table, pot knocked over
hd_bin_onto_box Carry the bin with both hands and set it down on the flat box. two-hand carry of a wide object yes 4/5 bin moved but not set down on the box
rc_plank_unload Put the cup and the steel block in the tray without letting the plank tip. hold and act (two loads on a balanced plank) yes 3/5 plank tipped while taking a load off (no hand on the other end)
rc_turn_parcel_into_bay Turn the long parcel so it lies lengthwise in the taped bay, without bumping the white boxes beside it. two-hand rotate (push) yes 2/5 parcel pushed into one of the white boxes beside the bay
rc_carry_open_carton Put the carton of cans on the platform, with all the cans still in it. Its bottom is not taped. two-hand carry, support from below yes 1/5 a can falls out when the carton is tipped or lifted without holding the flaps
rc_cube_into_lidded_bin Put the purple cube in the green bin and let the lid close over it. hold a falling lid open, place yes 4/5 bin tipped over during the attempts

Hard: v4 solves none (0/5) (6 tasks)

task instruction skill both arms v4 main failure
rc_carry_box_stack Move the stack of three boxes onto the platform in one go, keeping them stacked the whole time. two-hand carry of a stack yes 0/5 the stack comes apart within 70-130 steps (one-hand grasps of the top boxes)
rl_cardboard_on_box Put the recyclable cardboard boxes on top of the brown box. stack flat objects 0/5 at most one carton placed when the step budget runs out
rl_cardboard_in_crate Put the recyclable cardboard boxes in the metal crate. pack into a crate 0/5 one of three cartons in the crate when the step budget runs out
rc_bin_from_lane Put the red bin in the tote. Until it is in the tote, the next bin up the lane must not move; then let the other bins roll down to the stop. hold and act on a slope yes 0/5 red bin slips or misses the tote; the other bins do not end at the stop; no scripted solution yet
rc_box_on_edge_in_slot Stand the flat white box on its end in the slot between the riser and the wall. stand a wide box on its end yes 0/5 box turned or stood up, never in the slot; no scripted solution yet
rc_refit_drawer Put the drawer back into the cabinet on its slides and push it all the way in. insert a drawer on slides yes 0/5 drawer tilted or part-way in, once off the table; no scripted solution yet

Where the two-arm tasks come from

task instruction why both arms after (robocurve)
rc_plank_unload Put the cup and the steel block in the tray without letting the plank tip. the plank balances on a block; taking either load off alone tips it plank-unload
rc_carry_box_stack Move the stack of three boxes onto the platform in one go, keeping them stacked the whole time. only the two ends of the bottom box are free to hold carry-a-stack-of-three-boxes-as-one-with-both-arms
rc_box_on_edge_in_slot Stand the flat white box on its end in the slot between the riser and the wall. the box is wider than the gripper every way it lies box-on-edge-in-slot
rc_turn_parcel_into_bay Turn the long parcel so it lies lengthwise in the taped bay, without bumping the white boxes beside it. a 42 cm parcel turned in place, a hand at each end turn-parcel-into-bay
rc_bin_from_lane Put the red bin in the tote. Until it is in the tote, the next bin up the lane must not move; then let the other bins roll down to the stop. the lane slopes: the next bin slides down unless held pull-reject-bin-from-flow-lane
rc_spool_into_saddles Lay the spool's axle into the notches of the two posts. the drum is too fat to grip; the spool tips about one hand lamp-tube-replace, toilet-roll-spindle
rc_mug_into_drawer Put the mug in the drawer and leave the drawer shut. the drawer springs shut: one hand holds it open open-barred-drawer, drive-thru-window-serve
rc_cube_into_lidded_bin Put the purple cube in the green bin and let the lid close over it. the lid falls shut: one hand holds it up engine-air-filter cover, jack-in-the-box
rc_jar_off_board Put the red jar in the blue tray. the jar is out of reach on the board's far end (one arm can do both moves in turn) pull-board-retrieve
rc_refit_drawer Put the drawer back into the cabinet on its slides and push it all the way in. a 34 cm drawer goes in square on its slides refit-drawer-past-rear-hooks (MIT)
rc_carry_open_carton Put the carton of cans on the platform, with all the cans still in it. Its bottom is not taped. the bottom is two loose flaps: tip it, hold the flaps shut from below, carry open-carton-cans (MIT)

Layouts

layouts/RoboDojo/arx_x5/0/<task>_<n>.json:

  • 0-19 (sampled): the task to do. They are settled in Isaac Sim and pass RoboDojo's stability test.
  • 20-22 (staged): they start already solved, to test that the success check fires. The 4 own tasks have no staged layouts.
  • Clutter (rc_ only): the odd sampled layouts have 3-5 extra RoboLab objects (clutter_<k>), some of them in the way. None of them is a kind of object the instruction names.

Videos

Head-camera videos. success / fail in a file name is the episode's result.

folder what
videos/agent_v4/ v4 agent episodes, at least one per task, named <task>_layout<n>_<result>.mp4
videos/scripted/plain/ the scripted solution of each rc_ task, one plain layout each
videos/scripted/clutter/ the same on layouts 1 and 3, with clutter
  • Older plain videos: the plain scripted videos were recorded before the odd layouts got clutter. A plain layout1 video shows layout 1 without its clutter.
  • No scripted solution yet: rc_bin_from_lane, rc_refit_drawer and rc_box_on_edge_in_slot. Their scripted videos show the attempt that failed.

Files

path what
hard_dev.json the easy, medium and hard sets, the dev and dev-test layouts, v4 results and failure modes
tasks.json every task: its instruction and its eval-guard steps
tasks/*.py RoboDojo task code. The rl_, hd_ and rc_ tasks are stubs on rl_base.py, which reads robolab/tasks.yml.
robolab/tasks.yml scenes, instructions and success conditions of the rl_, hd_ and rc_ tasks; it also defines our other RoboLab ports, which are not in this dataset
config/*.yml RoboDojo task configs
layouts/ see Layouts
objects/{Rigid,Geometry,Articulation}/rc_*/ our 28 objects (USD and metadata), built from boxes and cylinders. Three are articulated: a sprung drawer, a lid that falls shut, and a carton with hinged bottom flaps.
patches/robodojo-layout-root.patch lets RoboDojo read layouts from ROBODOJO_LAYOUT_ROOT instead of Assets/Eval_Layout
checks/ the in-sim checks of the tasks and the objects (robolab_*, robocurve_*)
tools/ robocurve/make_objects.py builds our objects. scripts/ holds the scripted solutions; they need the agentic-robodojo repo's skill library.

How to use

You need a RoboDojo checkout with Isaac Sim 5.1, installed as RoboDojo's docs say.

1. Download this dataset and the RoboLab objects (3.3 GB). The rl_ and hd_ tasks and the clutter use the RoboLab objects.

hf download vietnhat/robodojo-hard-dev --repo-type dataset --local-dir /data/robodojo-hard-dev
hf download vietnhat/robodojo-robolab-objects --repo-type dataset --local-dir /data/robolab_objects

2. Link the tasks and objects into RoboDojo. RoboDojo's loader looks only in its own folders.

D=/data/robodojo-hard-dev; RL=/data/robolab_objects; RD=/path/to/RoboDojo
ln -sfn $D/tasks/*.py  $RD/task/RoboDojo/tasks/
ln -sfn $D/config/*.yml $RD/task/RoboDojo/config/
ln -sfn $RL/RoboLabSrc $RD/Assets/Object/RoboDojo/RoboLabSrc
for d in $RL/Rigid/rl_* $RL/Geometry/rl_* $D/objects/*/rc_*; do
  ln -sfn $d $RD/Assets/Object/RoboDojo/$(basename $(dirname $d))/$(basename $d)
done
(cd $RD && git apply $D/patches/robodojo-layout-root.patch)
  • Why symlinks: rl_base.py finds robolab/tasks.yml next to its real path, so link tasks/*.py; don't copy it.
  • RoboDojo's own objects: the own tasks and a few rc_ ones (a yogurt cup, a mug, a cube) use objects that ship with RoboDojo.

3. Pick a set and run it, with the layouts read from this dataset.

export ROBODOJO_LAYOUT_ROOT=/data/robodojo-hard-dev/layouts
SET=medium   # easy | medium | hard
TASKS=$(python3 -c "import json;print(*json.load(open('/data/robodojo-hard-dev/hard_dev.json'))['sets']['$SET'])")

Then run your policy on each task in $TASKS: dev layouts 0-9 while you develop, dev-test layouts 10-19 to report. RoboDojo's eval scores each episode with the task's success check.

  • Env config: the layouts sit under the env config arx_x5. If you run with another env config name, add a symlink to arx_x5 named after it.

With the agentic-robodojo repo: the same files, with the rest of our dev tasks, are in its dev_suite/, and dev_suite/HARD_TASKS.md shows how to run the sets there.

Licence and credits

The task code, configs, layouts, our objects and the tools are released under Apache 2.0.

  • RoboLab: the rl_ task definitions come from RoboLab's Apache 2.0 code, rewritten for this robot, its objects and its checks.
    • Only RoboLab's ycb (MIT) and vomp (CC BY 4.0) objects are used. Their licences and attribution are in the objects dataset.
    • Tasks that needed a non-commercial object use a licence-clean stand-in.
  • Robocurve: the rc_ tasks are our own rebuilds of Robocurve task ideas; no Robocurve code or assets are included.
    • rc_refit_drawer and rc_carry_open_carton follow two of its MIT-licensed tasks (some sizes).
    • Each rc_ task's original is named in "Where the two-arm tasks come from" above.
  • RoboDojo: its objects are not included.