CreateRigidBody¶
-
IRigidBody IRobot.CreateRigidBody(string name)¶
Creates a rigid body.
- Parameters
name – Name of the rigid body.
- Returns
IRigidBody – Created rigid body.
- Throws
CommunicationErrorException
– Protocol error.ConnectionLostException
– Connection to controller lost.System.ObjectDisposedException
– Object is disposed.RebootedException
– Controller has been rebooted since this object reference was retrieved, invalidating this reference.InvalidArgumentException
– Name string does not follow naming rules.OutOfResourcesException
– Out of memory while creating rigid body.