Skip to content

Commit

Permalink
change name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Yang committed Apr 2, 2024
1 parent f667865 commit b812e20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
rearrange_logger,
)
from habitat.utils.geometry_utils import (
change_coordinate_from_opengl_to_opencv,
coordinate_from_opengl_to_opencv,
pose_from_opengl_to_opencv,
pose_from_xzy_to_xyz,
)
Expand Down Expand Up @@ -262,7 +262,7 @@ def get_observation(self, observations, episode, task, *args, **kwargs):
np.linspace(-width, width, granularity),
):
# Get the handle location on the left and right side
handle_pos = change_coordinate_from_opengl_to_opencv(
handle_pos = coordinate_from_opengl_to_opencv(
handle_T.transform_point([height_offset, 0.0, width_offset])
)
# Draw the handle location in the image
Expand Down
2 changes: 1 addition & 1 deletion habitat-lab/habitat/utils/geometry_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def pose_from_xzy_to_xyz(pose_xzy: np.ndarray) -> np.ndarray:
return pose_xyz


def change_coordinate_from_opengl_to_opencv(
def coordinate_from_opengl_to_opencv(
point: Union[np.ndarray, mn.Vector3]
) -> np.ndarray:
"""Change the coordinate system from openGL to openCV"""
Expand Down

0 comments on commit b812e20

Please sign in to comment.