[Question] Unable to move object close to finger when attaching #2765
Replies: 1 comment
-
Thank you for starting this post. I'll move it to our Discussions section for follow up. In the meantime, here are a few things to consider: 🔧 Collision Offset Configuration
deformable_props=sim_utils.DeformableBodyPropertiesCfg(
rest_offset=0.0,
contact_offset=0.01 # Increased from 0.001
) This allows collision detection to trigger earlier during approach12.
rest_offset=-0.001 # Allows graphics shapes to touch 🕹️ Kinematic Control AdjustmentInstead of position commands, use velocity-controlled movement with force limits: # Replace position targets with velocity control
target_velocity = torch.tensor([0.5]) # Movement speed (m/s)
cube_object.set_nodal_kinematic_target_velocity(target_velocity) This prevents premature stopping due to resistance2. ⚡ Simulation ParametersOptimize physics stepping for deformables: sim_cfg = sim_utils.SimulationCfg(
dt=0.005, # Reduced from 0.01
substeps=4, # Increased substeps
solver_iterations=64 # Higher solver precision
) Smaller timesteps improve deformable-rigid interaction stability32. 🎯 Attachment Verification
print(cube_object.data.nodal_positions_w) Alternative ApproachIf issues persist: # Explicitly set nodal positions near fingers
gripper_pos = robot.data.ee_state_w[..., :3]
nodal_positions = gripper_pos + torch.tensor([0, 0, -0.05]) # 5cm below gripper
cube_object.write_nodal_state_to_sim(nodal_positions) Forces initial proximity to fingers3. These adjustments address collision detection sensitivity, material properties, and control methods that prevent full approach. Start with References Footnotes |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I’m trying to attach a deformable (or rigid) object between the Panda gripper’s fingers, but when I command it to move toward the fingers, it never gets close enough—it stops at a distance. Conversely, when I command it to move away from the gripper, it works fine.
The object should move all the way into the gripper, contacting or passing between the fingers only if I change the init_state. Does anyone know what could prevent the object from fully reaching the fingers when it’s attached? Any advice on config parameters or attachment methods would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions