Beispiel #1
0
 static DefaultPose GetDefaultPose(RobotUR robot)
 {
     return(new DefaultPose(
                planes: new() { robot.Joints.Select(j => j.Plane).Prepend(Plane.WorldXY).ToList() },
                meshes: new() { robot.Joints.Select(j => j.Mesh).Prepend(robot.BaseMesh).ToList() }
                ));
 }
Beispiel #2
0
    // public URRealTime URRealTime { get; set; }

    internal RobotSystemUR(string name, RobotUR robot, IO io, Plane basePlane, Mesh?environment)
        : base(name, Manufacturers.UR, io, basePlane, environment, GetDefaultPose(robot))
    {
        Remote = new RemoteUR();
        Robot  = robot;
        DisplayMesh.Append(robot.DisplayMesh);
        DisplayMesh.Transform(BasePlane.ToTransform());
    }
Beispiel #3
0
    internal URScriptPostProcessor(RobotSystemUR robotCell, Program program)
    {
        _cell    = robotCell;
        _robot   = _cell.Robot;
        _program = program;
        var groupCode = new List <List <string> > {
            Program()
        };

        Code = new List <List <List <string> > > {
            groupCode
        };

        // MultiFile warning
        if (program.MultiFileIndices.Count > 1)
        {
            program.Warnings.Add("Multi-file input not supported on UR robots");
        }
    }