I have a robot in my simulation that carries objects to and from places. I would like to spawn an object at a certain position with an initial velocity of 0. The trigger would most likely be a collision detection or when the previous object reaches a certain location. I would also like to despawn objects after being used or if it falls off the robot's end effector (to prevent core dumps after the object drops)
Is there a method in drake to continuously spawn and despawn objects?
Thank you