Skip to content
Snippets Groups Projects
Commit 311e136d authored by Andri Joos's avatar Andri Joos :blush:
Browse files

env return exact type for specs

parent 19be34b8
No related branches found
No related tags found
No related merge requests found
...@@ -17,10 +17,10 @@ class HelloWorldEnv(PyEnvironment): ...@@ -17,10 +17,10 @@ class HelloWorldEnv(PyEnvironment):
self._client = airsim.MultirotorClient(ip=ip) self._client = airsim.MultirotorClient(ip=ip)
super(HelloWorldEnv, self).__init__(handle_auto_reset) super(HelloWorldEnv, self).__init__(handle_auto_reset)
def action_spec(self) -> NestedArraySpec: def action_spec(self) -> BoundedArraySpec:
return self._action_spec return self._action_spec
def observation_spec(self) -> NestedArraySpec: def observation_spec(self) -> ArraySpec:
return self._observation_spec return self._observation_spec
def _reset(self) -> TimeStep: def _reset(self) -> TimeStep:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment