diff --git a/src/Robots/RobotSystems/CobotSystem.cs b/src/Robots/RobotSystems/CobotSystem.cs index 618c674..6a6fa48 100644 --- a/src/Robots/RobotSystems/CobotSystem.cs +++ b/src/Robots/RobotSystems/CobotSystem.cs @@ -39,6 +39,9 @@ internal override IList GetJoints(int group) public override List Kinematics(IEnumerable targets, IEnumerable? prevJoints = null) { + if (!targets.Any()) + return new(0); + var target = targets.First(); var prevJoint = prevJoints?.First(); string? error = null;