but the code is in fact :
nodal_kinematic_target[..., :3] = nodal_state[..., :3] nodal_kinematic_target[..., 3] = 1.0 cube_object.write_nodal_kinematic_target_to_sim(nodal_kinematic_target)
The meaning of the code is quite opposite. So maybe it is a typo?
Good catch! I think you may be right about it being a typo in the comment. It's very clearly writing the state TO the target, and not the target to the state. I'll check :)
On the tutorial Script of running deformable objet in line 112 there is a notation
# write kinematic target to nodal state and free all vertices
https://github.com/isaac-sim/IsaacLab/blob/main/source/standalone/tutorials/01_assets/run_deformable_object.pybut the code is in fact :
nodal_kinematic_target[..., :3] = nodal_state[..., :3] nodal_kinematic_target[..., 3] = 1.0 cube_object.write_nodal_kinematic_target_to_sim(nodal_kinematic_target)
The meaning of the code is quite opposite. So maybe it is a typo?