Skip to content

Commit 4354033

Browse files
committed
add path to robot definitions and include in package
1 parent e217667 commit 4354033

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

easyhec/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from pathlib import Path
12
try:
23
import sam2
34
except ModuleNotFoundError:
@@ -7,4 +8,6 @@
78
import nvdiffrast
89
except ModuleNotFoundError:
910
print("nvdiffrast is not installed. Please install it with pip install 'nvdiffrast @ git+https://github.com/NVlabs/nvdiffrast.git@729261dc64c4241ea36efda84fbf532cc8b425b8'")
10-
exit(1)
11+
exit(1)
12+
13+
ROBOT_DEFINITIONS_DIR = Path(__file__).parent / "examples" / "real" / "robot_definitions"

easyhec/examples/real/so100.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
from pathlib import Path
66
from typing import Optional
77

8-
import cv2
9-
import gymnasium as gym
108
import numpy as np
11-
import pyrealsense2 as rs
129
import torch
13-
import trimesh
1410
import tyro
1511
from lerobot.cameras.realsense import RealSenseCamera
1612
from lerobot.cameras.realsense.configuration_realsense import \

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
setup(
44
name="easyhec",
5-
version="0.1.5",
5+
version="0.1.6",
66
packages=find_packages(),
7+
package_data={"easyhec": ["examples/real/robot_definitions/**"]},
78
author="Stone Tao",
89
homepage="https://github.com/stonet2000/easyhec",
910
description="EasyHec is a library for fast and automatic camera extrinsic calibration",
@@ -18,6 +19,7 @@
1819
"trimesh",
1920
"transforms3d",
2021
"matplotlib",
22+
"urchin",
2123
# ninja is used by nvdiffrast
2224
"ninja>=1.11",
2325
],

0 commit comments

Comments
 (0)