RoboWaiter/ptml/CoffeeDelivery.ptml

36 lines
755 B
Plaintext
Raw Normal View History

//sequence:
// act action1()
// act action2(2, 2.3, True)
//
// parallel 2:
// act action3(int a, float b)
// act action4()
sequence{
selector{
cond CoffeeCupFound()
2023-10-08 15:44:59 +08:00
task FindCoffeeCup()
sequence{
2023-10-08 15:44:59 +08:00
cond SeqTest()
task Move(1.2, 2, 2.3, True)
task Grasp()
parallel 3 {
cond Istask()
task TestTask()
}
}
}
selector{
cond CoffeeCupGrasped()
2023-10-08 15:44:59 +08:00
task GraspCoffeeCup()
}
selector{
cond DestinationAReached()
2023-10-08 15:44:59 +08:00
task ReachDestinationA()
}
selector{
cond CoffeeCupPlaced()
task PlaceCoffeeCup()
}
}