Skip to content

Commit

Permalink
test new resource json file
Browse files Browse the repository at this point in the history
  • Loading branch information
jashlu committed Nov 4, 2024
1 parent e0c95f0 commit e13040c
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions examples/test-resource-file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"pick_up_medicine": {
"context": "",
"children": [
"take_path_to_medicine_cabinet",
"unlock_cabinet",
"retrieve_medicine"
],
"behavior_library": [
{
"id": "take_path_to_medicine_cabinet",
"name": "take acceptable path to the medicine cabinet"
},
{
"id": "unlock_cabinet",
"name": "unlock the cabinet"
},
{
"id": "retrieve_medicine",
"name": "retrieve the medicine"
},
{
"id": "retrieve_medicine",
"name": "retrieve the medicine"
},
{
"id": "wait_for_cabinet_access",
"name": "wait at medicine cabinet until it is accessible"
},
{
"id": "alert_adminstrator",
"name": "alert adminstrator for assistance"
}
],
"interruptions": {
"take_path_to_medicine_cabinet": "While moving toward the medicine cabinet, the robot is interrupted by a visitor: “Hello, I’m looking for room 536 to visit John. Can you help me find the way?”",
"unlock_cabinet": "Upon reaching the cabinet, the robot finds it locked and is unable to electronically open it with the password."
}
},
"travel_to_desired_floor": {
"context": "",
"children": [
"take_path_to_elevator",
"get_into_elevator",
"press_correct_floor_button",
"exit_elevator"
],
"behavior_library": [
{
"id": "take_path_to_elevator",
"name": "take acceptable path to the elevator"
},
{
"id": "get_into_elevator",
"name": "get into the elevator"
},
{
"id": "press_correct_floor_button",
"name": "press the correct floor button"
},
{
"id": "exit_elevator",
"name": "exit the elevator"
},
{
"id": "wait_for_elevator_access",
"name": "wait at elevator entrance until it is accessible"
},
{
"id": "alert_adminstrator",
"name": "alert adminstrator for assistance"
}
],
"interruptions": {
"take_path_to_medicine_cabinet": "While moving toward the medicine cabinet, the robot is interrupted by a visitor: “Hello, I’m looking for room 536 to visit John. Can you help me find the way?”",
"unlock_cabinet": "Upon reaching the cabinet, the robot finds it locked and is unable to electronically open it with the password."
}
}
}

0 comments on commit e13040c

Please sign in to comment.