Skip to main content

load_from_robot

Function load_from_robot 

Source
pub fn load_from_robot(
    _network: &Network,
    version: FciVersion,
) -> FrankaResult<Model>
Expand description

load_from_robot as compiled without the model-library feature.

The signature is identical in both configurations so that callers (RobotImpl::load_model) need no cfg of their own; the version check still runs first, so an FCI v10 caller gets the same FrankaError::InvalidOperation either way, and an FCI v5 caller gets a FrankaError::Model explaining that this build cannot load one. No bytes are requested from the robot, because there would be nothing to dlopen them with.