Skip to content

Commit

Permalink
Adds missing __future__ import in utils.warp.ops
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayankm96 committed Nov 2, 2023
1 parent c0afa8a commit 47e4800
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 25 deletions.
2 changes: 1 addition & 1 deletion source/extensions/omni.isaac.orbit/config/extension.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]

# Note: Semantic Versioning is used: https://semver.org/
version = "0.9.33"
version = "0.9.34"

# Description
title = "ORBIT framework for Robot Learning"
Expand Down
10 changes: 10 additions & 0 deletions source/extensions/omni.isaac.orbit/docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Changelog
---------

0.9.34 (2023-11-02)
~~~~~~~~~~~~~~~~~~~

Fixed
^^^^^

* Added missing import of ``from __future__ import annotations`` in the :mod:`omni.isaac.orbit.utils.warp`
module. This is needed to have a consistent behavior across Python versions.


0.9.33 (2023-11-02)
~~~~~~~~~~~~~~~~~~~

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from dataclasses import MISSING

# omni-isaac-orbit
from omni.isaac.orbit.utils import configclass

__all__ = ["PinholeCameraCfg", "FisheyeCameraCfg"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import omni.isaac.core.utils.stage as stage_utils
from omni.isaac.core.prims import XFormPrim

# omni-isaac-orbit
from omni.isaac.orbit.utils.math import convert_quat

from ..sensor_base import SensorBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from dataclasses import MISSING

# omni-isaac-orbit
from omni.isaac.orbit.utils import configclass


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

"""Operations based on warp."""

from __future__ import annotations

from .ops import convert_to_warp_mesh, raycast_mesh

__all__ = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

"""Custom kernels for warp."""

from __future__ import annotations

import warp as wp


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

"""Wrapping around warp kernels for compatibility with torch tensors."""

from __future__ import annotations

import numpy as np
import torch

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
##
# Pre-defined configs
##
# isort: off
from omni.isaac.orbit.assets.config.anymal import ANYMAL_B_CFG
from omni.isaac.orbit.assets.config.anymal import ANYMAL_B_CFG # isort: skip


@configclass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
##
# Pre-defined configs
##
# isort: off
from omni.isaac.orbit.assets.config.anymal import ANYMAL_B_CFG
from omni.isaac.orbit.assets.config.anymal import ANYMAL_B_CFG # isort: skip


@configclass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
##
# Pre-defined configs
##
# isort: off
from omni.isaac.orbit.assets.config.anymal import ANYMAL_C_CFG
from omni.isaac.orbit.assets.config.anymal import ANYMAL_C_CFG # isort: skip


@configclass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
##
# Pre-defined configs
##
# isort: off
from omni.isaac.orbit.assets.config.anymal import ANYMAL_C_CFG
from omni.isaac.orbit.assets.config.anymal import ANYMAL_C_CFG # isort: skip


@configclass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
##
# Pre-defined configs
##
# isort: off
from omni.isaac.orbit.assets.config.anymal import ANYMAL_D_CFG
from omni.isaac.orbit.assets.config.anymal import ANYMAL_D_CFG # isort: skip


@configclass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
##
# Pre-defined configs
##
# isort: off
from omni.isaac.orbit.assets.config.anymal import ANYMAL_D_CFG
from omni.isaac.orbit.assets.config.anymal import ANYMAL_D_CFG # isort: skip


@configclass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
##
# Pre-defined configs
##
# isort: off
from omni.isaac.orbit.assets.config.unitree import UNITREE_A1_CFG
from omni.isaac.orbit.assets.config.unitree import UNITREE_A1_CFG # isort: skip


@configclass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
##
# Pre-defined configs
##
# isort: off
from omni.isaac.orbit.assets.config.unitree import UNITREE_A1_CFG
from omni.isaac.orbit.assets.config.unitree import UNITREE_A1_CFG # isort: skip


@configclass
Expand All @@ -32,7 +31,8 @@ def __post_init__(self):
self.randomization.add_base_mass = None

# change body and joint names
self.rewards.feet_air_time.params["sensor_cfg"].body_names = ".*calf" # TODO: Change to .*foot
# TODO: Change to .*foot once we make a new USD for the robot
self.rewards.feet_air_time.params["sensor_cfg"].body_names = ".*calf"
self.rewards.undesired_contacts.params["sensor_cfg"].body_names = [".*thigh", ".*hip"]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
##
# Pre-defined configs
##
# isort: off
from omni.isaac.orbit.terrains.config.rough import ROUGH_TERRAINS_CFG
from omni.isaac.orbit.terrains.config.rough import ROUGH_TERRAINS_CFG # isort: skip


##
Expand Down

0 comments on commit 47e4800

Please sign in to comment.