How can I turn off the collision of the robot while simulation is running?

Hi,
yes this should be possible, you can get the UsdPrim where CollisionAPI is applied and change the attribute for collision enabled, something like this:

collisionAPI = UsdPhysics.CollisionAPI.Get(stage, primPath)
collisionAPI.GetCollisionEnabledAttr().Set(False)

Regards,
Ales