Skip to content
Snippets Groups Projects
Commit a21b743d authored by spiglerg's avatar spiglerg
Browse files

test3

parent 78a27b68
No related branches found
No related tags found
No related merge requests found
......@@ -29,9 +29,9 @@ class EnvAgentStatic(object):
direction = attrib()
target = attrib()
moving = attrib()
speed_data = attrib()
speed_data = attrib(default=dict({'position_fraction':0.0, 'speed':1.0, 'transition_action_on_cellexit':0}))
def __init__(self, position, direction, target, moving=False, speed_data={'position_fraction':0.0, 'speed':1.0, 'transition_action_on_cellexit':2}):
def __init__(self, position, direction, target, moving=False, speed_data={'position_fraction':0.0, 'speed':1.0, 'transition_action_on_cellexit':0}):
self.position = position
self.direction = direction
self.target = target
......@@ -44,7 +44,7 @@ class EnvAgentStatic(object):
"""
speed_datas = []
for i in range(len(positions)):
speed_datas.append( {'position_fraction':0.0, 'speed':1.0, 'transition_action_on_cellexit':2} )
speed_datas.append( {'position_fraction':0.0, 'speed':1.0, 'transition_action_on_cellexit':0} )
return list(starmap(EnvAgentStatic, zip(positions, directions, targets, [False] * len(positions), speed_datas)))
def to_list(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment