CreateRigidBody¶
-
virtual PRigidBody IRobot::CreateRigidBody(const std::string &name) = 0¶
Creates a rigid body.
- Parameters
name – Name of the rigid body.
- Returns
PRigidBody – Created rigid body.
- Throws
CCommunicationErrorException
– Protocol error.CConnectionLostException
– Connection to controller lost.CObjectDestroyedException
– Object is destroyed.CRebootedException
– Controller has been rebooted since this object reference was retrieved, invalidating this reference.CInvalidArgumentException
– Name string does not follow naming rules.COutOfResourcesException
– Out of memory while creating rigid body.