CreateRobotFromFile¶
-
virtual PRobot ITopController::CreateRobotFromFile(const std::string &filename) = 0¶
Create a robot from the model contained in the specified URDF file.
- Parameters
filename – Path to file containing the URDF robot model.
- Returns
PRobot – Created robot.
- 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.CIncompatibleException– Incompatible firmware version loaded.CAccessDeniedException– Unable to open file for reading.CReadErrorException– Error while reading from the specified file.CInvalidFormatException– URDF file is invalid (e.g. not schema compliant).COutOfResourcesException– Out of memory while creating robot.