解决了酸奶掉地上的bug
This commit is contained in:
parent
a5a4a1badc
commit
c748810ec2
|
@ -29,8 +29,7 @@ class Bahavior(ptree.behaviour.Behaviour):
|
|||
'Bar2': (240.0, 40.0, 70.0),
|
||||
'WaterTable':(-70.0, 500.0, 107),
|
||||
'CoffeeTable':(250.0, 310.0, 100.0),
|
||||
'Table1': (340.0, 900.0, 98.0),
|
||||
# 'Table1': (345.0, 895.0, 98.0),
|
||||
'Table1': (340.0, 900.0, 99.0),
|
||||
'Table2': (-55.0, 0.0, 107),
|
||||
'Table3':(-55.0, 150.0, 107)
|
||||
}
|
||||
|
|
|
@ -21,5 +21,7 @@ class GreatCustomer(Act):
|
|||
|
||||
def _update(self) -> ptree.common.Status:
|
||||
|
||||
goal = Act.place_xyz_dic['Bar']
|
||||
self.scene.walk_to(goal[0]-5,goal[1], 180, 180, 0)
|
||||
self.scene.chat_bubble("欢迎光临!请问有什么可以帮您?")
|
||||
return ptree.common.Status.RUNNING
|
||||
|
|
|
@ -34,6 +34,7 @@ class Make(Act):
|
|||
info["add"] |= {f'On({arg},WaterTable)'}
|
||||
elif arg == cls.valid_args[2]:
|
||||
info["add"] |= {f'On({arg},Bar)'}
|
||||
info['cost'] = 10
|
||||
return info
|
||||
|
||||
def _update(self) -> ptree.common.Status:
|
||||
|
|
|
@ -21,7 +21,7 @@ class MoveTo(Act):
|
|||
info['pre'] |= {f'Exist({arg})'}
|
||||
info["add"] = {f'At(Robot,{arg})'}
|
||||
info["del_set"] = {f'At(Robot,{place})' for place in cls.valid_args if place != arg}
|
||||
info['cost']=10
|
||||
info['cost']=5
|
||||
return info
|
||||
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ class PutDown(Act):
|
|||
info["add"] = {f'Holding(Nothing)',f'On({arg[0]},{arg[1]})'}
|
||||
info["del_set"] = {f'Holding({arg[0]})'}
|
||||
|
||||
info['cost'] = 100
|
||||
info['cost'] = 1
|
||||
return info
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue