Skip to content

Commit

Permalink
fix activate
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailChaikovskii committed Nov 1, 2023
1 parent 0382ba3 commit 86b10a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rostok/simulation_chrono/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ def simulate_step(self, step_length: float, current_time: float, step_n: int):
self.env_creator.data_storage.sensor)

def activate(self, current_time):
self.env_creator.force_torque_container.controller_list[0].start_time = current_time
if self.env_creator.force_torque_container.controller_list:
self.env_creator.force_torque_container.controller_list[0].start_time = current_time

def handle_single_events(self, event_container, current_time, step_n):
if event_container is None:
Expand Down

0 comments on commit 86b10a2

Please sign in to comment.