GetRigidBody¶
-
virtual PRigidBody IRobot::GetRigidBody(const std::string &name) const = 0¶
Gets the rigid body with the specified name.
- Parameters
name – Name of the rigid body.
- Returns
PRigidBody – The rigid body with the specified name.
- 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
– Rigid body with specified name does not exist.