Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/tutorials/01_assets/add_new_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def run_simulator(sim: sim_utils.SimulationContext, scene: InteractiveScene):

# wheel-velocity templates allocated once on the simulation device; the joint
# target setters dispatch to GPU Warp kernels and reject CPU tensors.
straight_action = torch.tensor([[10.0, 10.0]], device=sim.device)
turn_action = torch.tensor([[5.0, -5.0]], device=sim.device)
straight_action = torch.tensor([[10.0, 10.0]], device=sim.device).repeat(scene.num_envs, 1)
turn_action = torch.tensor([[5.0, -5.0]], device=sim.device).repeat(scene.num_envs, 1)

while simulation_app.is_running():
# reset
Expand Down Expand Up @@ -173,7 +173,7 @@ def main():
sim = sim_utils.SimulationContext(sim_cfg)
sim.set_camera_view([3.5, 0.0, 3.2], [0.0, 0.0, 0.5])
# Design scene
scene_cfg = NewRobotsSceneCfg(args_cli.num_envs, env_spacing=2.0)
scene_cfg = NewRobotsSceneCfg(num_envs=args_cli.num_envs, env_spacing=2.0)
scene = InteractiveScene(scene_cfg)
# Play the simulator
sim.reset()
Expand Down
Loading