Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion embodichain/lab/gym/envs/embodied_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def preview_sensor_data(
cv2.imshow(window_name, cv2.cvtColor(view, cv2.COLOR_RGB2BGR))
cv2.waitKey(0)
cv2.destroyWindow(window_name)

elif method == "plt":
from matplotlib import pyplot as plt

Expand Down
12 changes: 6 additions & 6 deletions embodichain/lab/sim/objects/articulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def __str__(self) -> str:
parent_str = super().__str__()
return parent_str + f" | dof: {self.dof} | num_links: {self.num_links}"

@property
@cached_property
def dof(self) -> int:
"""Get the degree of freedom of the articulation.

Expand All @@ -660,7 +660,7 @@ def dof(self) -> int:
"""
return self._data.dof

@property
@cached_property
def num_links(self) -> int:
"""Get the number of links in the articulation.

Expand All @@ -669,7 +669,7 @@ def num_links(self) -> int:
"""
return self._data.num_links

@property
@cached_property
def link_names(self) -> List[str]:
"""Get the names of the links in the articulation.

Expand All @@ -678,7 +678,7 @@ def link_names(self) -> List[str]:
"""
return self._data.link_names

@property
@cached_property
def root_link_name(self) -> str:
"""Get the name of the root link of the articulation.

Expand All @@ -687,7 +687,7 @@ def root_link_name(self) -> str:
"""
return self.entities[0].get_root_link_name()

@property
@cached_property
def joint_names(self) -> List[str]:
"""Get the names of the actived joints in the articulation.

Expand All @@ -696,7 +696,7 @@ def joint_names(self) -> List[str]:
"""
return self._entities[0].get_actived_joint_names()

@property
@cached_property
def all_joint_names(self) -> List[str]:
"""Get the names of the joints in the articulation.

Expand Down