From 782f1f9aec09895dc27347927f01998ba383b8b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= <mosra@centrum.cz> Date: Thu, 11 Jul 2019 12:05:11 -0700 Subject: [PATCH] Adapt to habitat-sim Python bindings updates. (#154) This does the necessary adaptation to facebookresearch/habitat-sim#64 -- this was the only failure in habitat-sim's CI tests --- examples/new_actions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/new_actions.py b/examples/new_actions.py index f03b1656b..89584483e 100644 --- a/examples/new_actions.py +++ b/examples/new_actions.py @@ -39,7 +39,8 @@ def _strafe_impl( noise_amount: float, ): forward_ax = ( - scene_node.absolute_transformation()[0:3, 0:3] @ habitat_sim.geo.FRONT + np.array(scene_node.absolute_transformation().rotation_scaling()) + @ habitat_sim.geo.FRONT ) strafe_angle = np.deg2rad(strafe_angle) strafe_angle = np.random.uniform( -- GitLab