Skip to content

Commit

Permalink
Merge pull request #544 from bark-simulator/fix_runtime
Browse files Browse the repository at this point in the history
Call init function of PyRuntime
  • Loading branch information
patrickhart authored Oct 1, 2021
2 parents 53562ac + 8be5117 commit d71b934
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bark/runtime/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from bark.core.geometry import *
from bark.core.runtime import PyRuntime
from bark.core.models.dynamic import StateDefinition

from bark.runtime.commons.parameters import ParameterServer

class Runtime(PyRuntime):
def __init__(self,
Expand All @@ -25,6 +25,8 @@ def __init__(self,
scenario_generator=None,
render=False,
maintain_world_history=False):
self._params = ParameterServer()
PyRuntime.__init__(self, self._params)
self._step_time = step_time
self._viewer = viewer
self._scenario_generator = scenario_generator
Expand Down Expand Up @@ -58,7 +60,7 @@ def step(self):
if self._render:
self.render()
self._world.Execute(self._step_time)

if self._maintain_world_history:
self._world_history.append(self._world.Copy())

Expand Down Expand Up @@ -98,6 +100,6 @@ def ExtractTimeSeries(self):
if act_arr.shape[1] > 2:
logging.warning("Incorrect parsing of actions to timeseries")
else:
d["acc"] = act_arr
d["acc"] = act_arr
df = pd.DataFrame(data=d)
return df

0 comments on commit d71b934

Please sign in to comment.