Skip to content

Commit 4aee211

Browse files
step the controller after applying the action
1 parent fcbebb5 commit 4aee211

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deepbots/supervisor/controllers/robot_supervisor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ def step(self, action):
7373
:return: tuple, (observations, reward, done, info) as provided by the
7474
corresponding methods as implemented for the use-case
7575
"""
76+
self.apply_action(action)
7677
if super(Supervisor, self).step(self.timestep) == -1:
7778
exit()
7879

79-
self.apply_action(action)
8080
return (
8181
self.get_observations(),
8282
self.get_reward(action),

deepbots/supervisor/controllers/supervisor_emitter_receiver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ def step(self, action):
6363
:return: (observations, reward, done, info) as provided by the
6464
corresponding methods as implemented for the use-case
6565
"""
66+
self.handle_emitter(action)
6667
if super(Supervisor, self).step(self.timestep) == -1:
6768
exit()
6869

69-
self.handle_emitter(action)
7070
return (
7171
self.get_observations(),
7272
self.get_reward(action),

0 commit comments

Comments
 (0)