Skip to content

Commit

Permalink
fix ground truth acceleration calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
jtigue-bdai committed Sep 5, 2024
1 parent 925729c commit 3a674dd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,12 @@ def main():
vz = -joint1_vel * PEND_POS_OFFSET[0] * torch.cos(joint1_pos)

gt_linear_vel = torch.cat([vx, vy, vz], dim=-1)
ax = -joint1_vel * PEND_POS_OFFSET[0] * torch.sin(joint1_pos) - joint1_vel**2 * PEND_POS_OFFSET[0] * torch.cos(

ax = -joint1_acc * PEND_POS_OFFSET[0] * torch.sin(joint1_pos) - joint1_vel**2 * PEND_POS_OFFSET[0] * torch.cos(
joint1_pos
)
ay = torch.zeros_like(ax, device=world.device)
az = -joint1_vel * PEND_POS_OFFSET[0] * torch.cos(joint1_pos) + joint1_vel**2 * PEND_POS_OFFSET[0] * torch.sin(
az = -joint1_acc * PEND_POS_OFFSET[0] * torch.cos(joint1_pos) + joint1_vel**2 * PEND_POS_OFFSET[0] * torch.sin(
joint1_pos
)
gt_linear_acc = torch.cat([ax, ay, az], dim=-1)
Expand Down

0 comments on commit 3a674dd

Please sign in to comment.