|
21 | 21 | from typing import List, Type, Tuple, Union |
22 | 22 |
|
23 | 23 | # Isaac Sim Imports |
24 | | -from omni.isaac.core.prims.xform_prim import XFormPrim |
25 | | -from omni.isaac.core.robots.robot import Robot as _Robot |
26 | | -from omni.isaac.core.articulations import ArticulationView as _ArticulationView |
27 | | -from omni.isaac.wheeled_robots.robots import WheeledRobot as _WheeledRobot |
28 | | -from omni.isaac.wheeled_robots.controllers.differential_controller import DifferentialController |
29 | | -from omni.isaac.examples.humanoid.h1 import H1FlatTerrainPolicy |
30 | | -from omni.isaac.examples.quadruped.quadruped_example import SpotFlatTerrainPolicy |
31 | | -import omni.isaac.core.utils.numpy.rotations as rot_utils |
| 24 | +from isaacsim.core.prims import SingleXFormPrim as XFormPrim |
| 25 | +from isaacsim.core.api.robots.robot import Robot as _Robot |
| 26 | +from isaacsim.core.prims import Articulation as _ArticulationView |
| 27 | +from isaacsim.robot.wheeled_robots.robots import WheeledRobot as _WheeledRobot |
| 28 | +from isaacsim.robot.wheeled_robots.controllers.differential_controller import DifferentialController |
| 29 | +from isaacsim.robot.policy.examples.robots.h1 import H1FlatTerrainPolicy |
| 30 | +from isaacsim.robot.policy.examples.robots import SpotFlatTerrainPolicy |
| 31 | +import isaacsim.core.utils.numpy.rotations as rot_utils |
32 | 32 |
|
33 | 33 | # Extension imports |
34 | 34 | from omni.ext.mobility_gen.common import Buffer, Module |
@@ -147,6 +147,7 @@ def build_front_camera(cls, prim_path): |
147 | 147 | # Add camera |
148 | 148 | camera_path = os.path.join(prim_path, cls.front_camera_base_path) |
149 | 149 | front_camera_xform = XFormPrim(camera_path) |
| 150 | + |
150 | 151 | stage = get_stage() |
151 | 152 | front_camera_prim = stage_get_prim(stage, camera_path) |
152 | 153 | prim_rotate_x(front_camera_prim, cls.front_camera_rotation[0]) |
@@ -349,7 +350,7 @@ def build(cls, prim_path: str): |
349 | 350 | def write_action(self, step_size): |
350 | 351 | action = self.action.get_value() |
351 | 352 | command = np.array([action[0], 0., action[1]]) |
352 | | - self.controller.advance(step_size, command) |
| 353 | + self.controller.forward(step_size, command) |
353 | 354 |
|
354 | 355 | def set_pose_2d(self, pose): |
355 | 356 | super().set_pose_2d(pose) |
|
0 commit comments