Skip to content

Commit

Permalink
[ref] clean up test by using config from main repo
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqin committed Aug 28, 2023
1 parent fc7b9d9 commit 67f3aaf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
19 changes: 18 additions & 1 deletion tests/test_retargeting_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,24 @@

from dex_retargeting.retargeting_config import RetargetingConfig
from dex_retargeting.seq_retarget import SeqRetargeting
from utils import VECTOR_CONFIG_DICT, POSITION_CONFIG_DICT, DEXPILOT_CONFIG_DICT

VECTOR_CONFIG_DICT = {
"allegro_right": "teleop/allegro_hand_right.yml",
"allegro_left": "teleop/allegro_hand_left.yml",
"shadow_right": "teleop/shadow_hand_right.yml",
"svh_right": "teleop/schunk_svh_hand_right.yml",
}
POSITION_CONFIG_DICT = {
"allegro_right": "offline/allegro_hand_right.yml",
# "allegro_left": "offline/allegro_hand_left.yml",
# "shadow_right": "offline/shadow_hand_right.yml",
# "svh_right": "offline/schunk_svh_hand_right.yml",
}
DEXPILOT_CONFIG_DICT = {
"allegro_right": "teleop/allegro_hand_right_dexpilot.yml",
}

ROBOT_NAMES = list(VECTOR_CONFIG_DICT.keys())


class TestRetargetingConfig:
Expand Down
4 changes: 1 addition & 3 deletions tests/test_sapien_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
import pytest
import sapien.core as sapien

from dex_retargeting.constants import ROBOT_NAMES, get_config_path, RetargetingType, HandType
from dex_retargeting.optimizer import VectorOptimizer, PositionOptimizer
from dex_retargeting.retargeting_config import RetargetingConfig

# from utils import ROBOT_NAMES, VECTOR_CONFIG_DICT, POSITION_CONFIG_DICT
from dex_retargeting.constants import ROBOT_NAMES, get_config_path, RetargetingType, HandType


class TestVectorOptimizer:
np.set_printoptions(precision=4)
Expand Down
17 changes: 0 additions & 17 deletions tests/utils.py

This file was deleted.

0 comments on commit 67f3aaf

Please sign in to comment.