Skip to content

Commit 6f575ee

Browse files
authored
Merge branch 'isaac-sim:main' into main
2 parents 1411bc4 + b08178b commit 6f575ee

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

Diff for: CONTRIBUTORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Guidelines for modifications:
6969
* Muhong Guo
7070
* Nicola Loi
7171
* Nuralem Abizov
72+
* Ori Gadot
7273
* Oyindamola Omotuyi
7374
* Özhan Özen
7475
* Peter Du

Diff for: source/extensions/omni.isaac.lab/omni/isaac/lab/assets/articulation/articulation_data.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def root_link_pos_w(self) -> torch.Tensor:
547547
548548
This quantity is the position of the actor frame of the root rigid body relative to the world.
549549
"""
550-
if self._body_com_state_w.timestamp < self._sim_timestamp:
550+
if self._root_link_state_w.timestamp < self._sim_timestamp:
551551
# read data from simulation (pose is of link)
552552
pose = self._root_physx_view.get_root_transforms()
553553
return pose[:, :3]
@@ -559,7 +559,7 @@ def root_link_quat_w(self) -> torch.Tensor:
559559
560560
This quantity is the orientation of the actor frame of the root rigid body.
561561
"""
562-
if self._body_com_state_w.timestamp < self._sim_timestamp:
562+
if self._root_link_state_w.timestamp < self._sim_timestamp:
563563
# read data from simulation (pose is of link)
564564
pose = self._root_physx_view.get_root_transforms().clone()
565565
pose[:, 3:7] = math_utils.convert_quat(pose[:, 3:7], to="wxyz")

Diff for: source/extensions/omni.isaac.lab/omni/isaac/lab/assets/rigid_object/rigid_object_data.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def root_com_vel_w(self) -> torch.Tensor:
399399
400400
This quantity contains the linear and angular velocities of the root rigid body's center of mass frame relative to the world.
401401
"""
402-
if self._root_link_state_w.timestamp < self._sim_timestamp:
402+
if self._root_com_state_w.timestamp < self._sim_timestamp:
403403
# read data from simulation
404404
velocity = self._root_physx_view.get_velocities()
405405
return velocity
@@ -411,7 +411,7 @@ def root_com_lin_vel_w(self) -> torch.Tensor:
411411
412412
This quantity is the linear velocity of the root rigid body's center of mass frame relative to the world.
413413
"""
414-
if self._root_link_state_w.timestamp < self._sim_timestamp:
414+
if self._root_com_state_w.timestamp < self._sim_timestamp:
415415
# read data from simulation
416416
velocity = self._root_physx_view.get_velocities()
417417
return velocity[:, 0:3]
@@ -423,7 +423,7 @@ def root_com_ang_vel_w(self) -> torch.Tensor:
423423
424424
This quantity is the angular velocity of the root rigid body's center of mass frame relative to the world.
425425
"""
426-
if self._root_link_state_w.timestamp < self._sim_timestamp:
426+
if self._root_com_state_w.timestamp < self._sim_timestamp:
427427
# read data from simulation
428428
velocity = self._root_physx_view.get_velocities()
429429
return velocity[:, 3:6]

Diff for: source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/direct/anymal_c/anymal_c_env.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def _get_rewards(self) -> torch.Tensor:
130130
air_time = torch.sum((last_air_time - 0.5) * first_contact, dim=1) * (
131131
torch.norm(self._commands[:, :2], dim=1) > 0.1
132132
)
133-
# undersired contacts
133+
# undesired contacts
134134
net_contact_forces = self._contact_sensor.data.net_forces_w_history
135135
is_contact = (
136136
torch.max(torch.norm(net_contact_forces[:, :, self._undesired_contact_body_ids], dim=-1), dim=1)[0] > 1.0
@@ -148,7 +148,7 @@ def _get_rewards(self) -> torch.Tensor:
148148
"dof_acc_l2": joint_accel * self.cfg.joint_accel_reward_scale * self.step_dt,
149149
"action_rate_l2": action_rate * self.cfg.action_rate_reward_scale * self.step_dt,
150150
"feet_air_time": air_time * self.cfg.feet_air_time_reward_scale * self.step_dt,
151-
"undesired_contacts": contacts * self.cfg.undersired_contact_reward_scale * self.step_dt,
151+
"undesired_contacts": contacts * self.cfg.undesired_contact_reward_scale * self.step_dt,
152152
"flat_orientation_l2": flat_orientation * self.cfg.flat_orientation_reward_scale * self.step_dt,
153153
}
154154
reward = torch.sum(torch.stack(list(rewards.values())), dim=0)

Diff for: source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/direct/anymal_c/anymal_c_env_cfg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class AnymalCFlatEnvCfg(DirectRLEnvCfg):
107107
joint_accel_reward_scale = -2.5e-7
108108
action_rate_reward_scale = -0.01
109109
feet_air_time_reward_scale = 0.5
110-
undersired_contact_reward_scale = -1.0
110+
undesired_contact_reward_scale = -1.0
111111
flat_orientation_reward_scale = -5.0
112112

113113

0 commit comments

Comments
 (0)