Skip to content

Commit

Permalink
functions with mechs
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailChaikovskii committed Aug 13, 2024
1 parent d20f02f commit e542e3d
Show file tree
Hide file tree
Showing 3 changed files with 1,308 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rostok/simulation_chrono/simulation_scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,13 @@ def __init__(self,
simulation_length,
initial_vertical_pos,
controller_cls = ConstController,
smc=False) -> None:
smc=False,is_fixed=False) -> None:
super().__init__(step_length, simulation_length)
self.event_builder_container: List[EventBuilder] = []
self.controller_cls = controller_cls
self.smc = smc
self.initial_vertical_pos = initial_vertical_pos
self.initial_vertical_pos = initial_ver
self.is_fixed=is_fixed


def add_event_builder(self, event_builder):
Expand Down Expand Up @@ -285,7 +286,7 @@ def run_simulation(self,
controller_data,
self.controller_cls,
Frame=FrameTransform([0, self.initial_vertical_pos, 0], [0,0,0,1]),
starting_positions=starting_positions, is_fixed=False)
starting_positions=starting_positions, is_fixed=self.is_fixed)

# setup parameters for the data store

Expand Down
Loading

0 comments on commit e542e3d

Please sign in to comment.