IsaacLab icon indicating copy to clipboard operation
IsaacLab copied to clipboard

[Bug Report] Position of RigidObject has been modified but is not displayed correctly

Open LiuXianBang opened this issue 1 year ago • 6 comments

I try to change RigidObject position while simulator running. I used the following code in _reset_idx

print(f"Before update: {self.target_block.data.root_pos_w}")
self.target_block.write_root_pose_to_sim(new_poses, env_ids=env_ids)[-] # 使用正确的env_ids[/-]
print(f"After update: {self.target_block.data.root_pos_w}")

I get the following output, so I am certain that its pose have been updated correctly.

Before update: tensor([[ 6.6000, -4.0000, 0.1000],
[-5.4000, -4.0000, 0.1000]], device='cuda:0')
After update: tensor([[0.5000, 1.0000, 2.5000],
[0.5000, 1.0000, 2.5000]], device='cuda:0')

but it still in the Before position in simulator screen. Image

The same code can be used in the robot.

I used visualize_markersto correctly display the coordinates, but obviously RigidObject did not move to this point If you could fix this issue for me, I would be extremely grateful

System Info

Describe the characteristic of your environment:

  • Isaac Sim Version: 2.1.1
  • OS: Windows11
  • GPU: RTX 4070TI(LapTop)
  • CUDA: 12.8

LiuXianBang avatar Sep 22 '25 08:09 LiuXianBang

Hi, Did you tick the simulation to render the new frame after you changed the position?

PeterL-NV avatar Sep 22 '25 21:09 PeterL-NV

Hi, Did you tick the simulation to render the new frame after you changed the position?您好,您在改变位置后是否勾选了模拟来渲染新帧?

Hi, I ensure that the simulator continues to run even after changing its position Because other components are still in motion, It may not be necessary to tick additional simulation to render new frames. If necessary, please tell me how to force it to render

LiuXianBang avatar Sep 23 '25 08:09 LiuXianBang

Hi, Did you tick the simulation to render the new frame after you changed the position?

Update more detail: This code can be used in the robot,but RigidObject failed

LiuXianBang avatar Sep 23 '25 13:09 LiuXianBang

I used the following code in _reset_idx

Can you provide more details on this? Which file is this in?

PeterL-NV avatar Sep 23 '25 15:09 PeterL-NV

I used the following code in _reset_idx

Can you provide more details on this? Which file is this in?

`reset_idx 'is created from the tutorial template There are other functions here, such as _ appy_action, _ re_physics_step, _ get rewards, etc

LiuXianBang avatar Sep 24 '25 10:09 LiuXianBang

Can you post the changes you made after generated from the tutorial template? And tell us what's your goal so we can have a check what might be going wrong. Or simply share the whole files if that's possible.

PeterL-NV avatar Sep 24 '25 17:09 PeterL-NV