Skip to content

Commit 4ab5328

Browse files
committed
nothing
1 parent 02cebeb commit 4ab5328

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+233
-112
lines changed

Env/Camera/Camera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from isaacsim import SimulationApp
88
import torch
99
import sys
10-
sys.path.append("/home/luhr/Tactile/IsaacTac/")
10+
# sys.path.append("/home/luhr/Tactile/IsaacTac/")
1111
import open3d as o3d
1212
from omni.isaac.core import World
1313
from omni.isaac.core.utils.prims import is_prim_path_valid

Env/Config/DeformableConfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import torch
33

44
class DeformableConfig:
5-
def __init__(self,usd_path:str="/home/pakwa/GarmentLab/Assets/Garment/Hat/HA_Hat007/HA_Hat007_obj.usd",pos:np.ndarray=None,ori:np.ndarray=None,scale:np.ndarray=None,visual_material_usd:str="/home/pakwa/GarmentLab/Assets/Material/linen_Pumpkin.usd",youngs_modulus:float=None):
5+
def __init__(self,usd_path:str="/home/pakwa/GPs/GarmentLab/Assets/Garment/Hat/HA_Hat007/HA_Hat007_obj.usd",pos:np.ndarray=None,ori:np.ndarray=None,scale:np.ndarray=None,visual_material_usd:str="/home/pakwa/GPs/GarmentLab/Assets/Material/linen_Pumpkin.usd",youngs_modulus:float=None):
66
if pos is None:
77
self.pos=np.array([0.6,1.3,0.3])
88
else:

Env/Config/GarmentConfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from typing import Union
44

55
class GarmentConfig:
6-
def __init__(self,usd_path:str="/home/pakwa/GarmentLab/Assets/Garment/Tops/Collar_Lsleeve_FrontClose/TCLC_074/TCLC_074_obj.usd",pos:Union[torch.Tensor,np.ndarray]=np.array([0.5,-0.5,0.3]),ori:Union[torch.Tensor,np.ndarray]=np.array([0,0,np.pi/2]),scale:np.ndarray=np.array([0.005,0.005,0.005]),visual_material_usd:str="/home/pakwa/GarmentLab/Assets/Material/linen_Pumpkin.usd",particle_contact_offset:float=0.02):
6+
def __init__(self,usd_path:str="/home/pakwa/GPs/GarmentLab/Assets/Garment/Tops/Collar_Lsleeve_FrontClose/TCLC_074/TCLC_074_obj.usd",pos:Union[torch.Tensor,np.ndarray]=np.array([0.5,-0.5,0.3]),ori:Union[torch.Tensor,np.ndarray]=np.array([0,0,np.pi/2]),scale:np.ndarray=np.array([0.005,0.005,0.005]),visual_material_usd:str="/home/pakwa/GPs/GarmentLab/Assets/Material/linen_Pumpkin.usd",particle_contact_offset:float=0.02):
77
self.usd_path=usd_path
88
if isinstance(pos,np.ndarray):
99
self.pos=torch.from_numpy(pos)

Env/Config/InflatebleConfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import torch
33

44
class InflatebleConfig:
5-
def __init__(self,pos:np.ndarray=None,ori:np.ndarray=None,scale:np.ndarray=None,pressure:float=8.0,visual_material_usd:str="/home/pakwa/GarmentLab/Assets/Material/linen_Pumpkin.usd"):
5+
def __init__(self,pos:np.ndarray=None,ori:np.ndarray=None,scale:np.ndarray=None,pressure:float=8.0,visual_material_usd:str="/home/pakwa/GPs/GarmentLab/Assets/Material/linen_Pumpkin.usd"):
66
if pos is None:
77
self.pos=np.array([0.8,0,0.5])
88
else:

Env/Config/SceneConfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import torch
33

44
class SceneConfig:
5-
def __init__(self,room_usd_path="/home/pakwa/GarmentLab/Assets/Scene/FlatGrid.usd",pos:np.ndarray=None,ori:np.ndarray=None,scale:np.ndarray=None):
5+
def __init__(self,room_usd_path="/home/pakwa/GPs/GarmentLab/Assets/Scene/FlatGrid.usd",pos:np.ndarray=None,ori:np.ndarray=None,scale:np.ndarray=None):
66
if pos is None:
77
self.pos=np.array([0,0,0])
88
else:

Env/Rigid/Rigid.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ class RigidAfford_1():
106106
def __init__(self):
107107
rigid_cube = FixedCuboid(prim_path="/World/cube_0",
108108
name="cube_0",
109-
position=np.array([0.36957,-0.297,0.7]),
109+
position=np.array([0.32242,-0.275048,0.7]),
110110
scale=np.array([0.02,0.02,0.8]),
111111
orientation=euler_angles_to_quat(np.array([0,90,0])*np.pi/180))
112112

113113
visual_cube = VisualCuboid(prim_path="/World/cube_1",
114114
name="cube_1",
115-
position=np.array([0.0282,-0.377,0.5]),
115+
position=np.array([0.00282,-1.97493,0.5]),
116116
scale=np.array([0.02,0.02,0.02]),
117117
visible=True)
118118

@@ -126,7 +126,7 @@ def __init__(self):
126126

127127
class RigidStore():
128128
def __init__(self):
129-
add_reference_to_stage(usd_path="/home/pakwa/GarmentLab/Assets/Articulated/cabinet.usd",prim_path="/World")
129+
add_reference_to_stage(usd_path="/home/pakwa/GPs/GarmentLab/Assets/Articulated/cabinet.usd",prim_path="/World")
130130
# self.rigid_form=XFormPrim(
131131
# prim_path="/World/cabinet",
132132
# name="cabinet",
@@ -140,7 +140,7 @@ def __init__(self):
140140

141141
class RigidTable:
142142
def __init__(self,world:World):
143-
add_reference_to_stage("/home/pakwa/GarmentLab/Assets/Scene/Willow.usd","/World/table")
143+
add_reference_to_stage("/home/pakwa/GPs/GarmentLab/Assets/Scene/Willow.usd","/World/table")
144144
self.table_rigid_prim:RigidPrim=world.scene.add(RigidPrim(
145145
prim_path="/World/table",
146146
name="table",

Env/env/BimanualEnv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def get_reward(self,rotation, garment_id = 0):
9999
self.world.step()
100100
pts = self.garment[garment_id].get_vertice_positions()
101101
pts = self.Rotation(rotation,pts)
102-
path = "/home/pakwa/GarmentLab/Assets/succ_example/fling_test_example.txt"
102+
path = "/home/pakwa/GPs/GarmentLab/Assets/succ_example/fling_test_example.txt"
103103
np.savetxt(path, pts)
104104
coverage_trial = self.get_current_covered_area(pts)
105105
self.world.stop()
@@ -108,7 +108,7 @@ def get_reward(self,rotation, garment_id = 0):
108108
for i in range(20):
109109
self.world.step()
110110
pts = self.garment[garment_id].get_vertice_positions()
111-
path = "/home/pakwa/GarmentLab/Assets/succ_example/fling_standard_example.txt"
111+
path = "/home/pakwa/GPs/GarmentLab/Assets/succ_example/fling_standard_example.txt"
112112
np.savetxt(path, pts)
113113
coverage_standard = self.get_current_covered_area(pts)
114114
if coverage_trial/coverage_standard > 0.75:

Env/env/CustomizedObject.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
class CustomizedObject(BaseEnv):
1616
def __init__(self):
1717
BaseEnv.__init__(self,deformable=True)
18-
self.deformable_config=DeformableConfig(usd_path="/home/pakwa/GarmentLab/Assets/RealWorld/12_WinnieBear/12_mesh.usd",
18+
self.deformable_config=DeformableConfig(usd_path="/home/pakwa/GPs/GarmentLab/Assets/RealWorld/12_WinnieBear/12_mesh.usd",
1919
scale=np.array([0.001,0.001,0.001]),
2020
pos=np.array([0.3,0.5,0.3]),
2121
visual_material_usd=None,
2222
ori=np.array([np.pi/5,np.pi/2,0]))
2323
self.deformable=Deformable(self.world,self.deformable_config)
24-
self.garment_config=GarmentConfig(usd_path="/home/pakwa/GarmentLab/Assets/Garment/Tops/Hooded_Lsleeve_FrontOpen/THLO_Jacket065/THLO_Jacket065_obj.usd",
24+
self.garment_config=GarmentConfig(usd_path="/home/pakwa/GPs/GarmentLab/Assets/Garment/Tops/Hooded_Lsleeve_FrontOpen/THLO_Jacket065/THLO_Jacket065_obj.usd",
2525
# visual_material_usd=None,
2626
pos=np.array([1,-0.3,0.3]),)
2727
self.garment=Garment(self.world,self.garment_config)

Env/env/DeformableEnv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from isaacsim import SimulationApp
33
import torch
44
import sys
5-
sys.path.append("/home/pakwa/GarmentLab")
5+
sys.path.append("/home/pakwa/GPs/GarmentLab")
66
simulation_app = SimulationApp({"headless": False})
77
import numpy as np
88

Env/env/DexLeftEnv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from omni.isaac.kit import SimulationApp
55

6-
# sys.path.append("/home/pakwa/GarmentLab/")
6+
# sys.path.append("/home/pakwa/GPs/GarmentLab/")
77

88
app = SimulationApp({"headless": False})
99

0 commit comments

Comments
 (0)