Skip to content

Commit 8b3b751

Browse files
committed
formats
1 parent a41b89c commit 8b3b751

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

source/isaaclab/isaaclab/devices/phone/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
"""Phone device for SE(2) and SE(3) control."""
77

8-
from .se3_phone import Se3Phone, Se3PhoneCfg
98
from .se2_phone import Se2Phone, Se2PhoneCfg
9+
from .se3_phone import Se3Phone, Se3PhoneCfg

source/isaaclab/test/devices/test_device_constructors.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"""Rest everything follows."""
1414

1515
import importlib
16-
import torch
1716
import numpy as np
17+
import torch
1818

1919
import pytest
2020

@@ -26,16 +26,16 @@
2626
Se2GamepadCfg,
2727
Se2Keyboard,
2828
Se2KeyboardCfg,
29-
Se2SpaceMouse,
30-
Se2SpaceMouseCfg,
3129
Se2Phone,
3230
Se2PhoneCfg,
33-
Se3Phone,
34-
Se3PhoneCfg,
31+
Se2SpaceMouse,
32+
Se2SpaceMouseCfg,
3533
Se3Gamepad,
3634
Se3GamepadCfg,
3735
Se3Keyboard,
3836
Se3KeyboardCfg,
37+
Se3Phone,
38+
Se3PhoneCfg,
3939
Se3SpaceMouse,
4040
Se3SpaceMouseCfg,
4141
)
@@ -265,6 +265,7 @@ def test_se3spacemouse_constructors(mock_environment, mocker):
265265
assert isinstance(result, torch.Tensor)
266266
assert result.shape == (7,) # (pos_x, pos_y, pos_z, rot_x, rot_y, rot_z, gripper)
267267

268+
268269
"""
269270
Test phone devices.
270271
"""
@@ -328,6 +329,7 @@ def emit(self, msg: dict):
328329
assert out2.shape == (3,)
329330
assert torch.allclose(out2, expected, atol=1e-5)
330331

332+
331333
"""
332334
Test OpenXR devices.
333335
"""
@@ -387,8 +389,10 @@ def test_openxr_constructors(mock_environment, mocker):
387389
# Test reset functionality
388390
device.reset()
389391

392+
390393
def test_se3phone_constructor(mocker):
391394
"""Test constructor and delta-output behavior for Se3Phone."""
395+
392396
# --- Fake Teleop that captures the callback and lets us emit messages ---
393397
class _FakeTeleop:
394398
def __init__(self, **kwargs):
@@ -479,6 +483,7 @@ def emit(self, msg: dict):
479483
expected3[6] = -1.0
480484
assert torch.allclose(out3, expected3, atol=1e-6)
481485

486+
482487
"""
483488
Test teleop device factory.
484489
"""

0 commit comments

Comments
 (0)