IndustrialKit
is a framework that allows you to create applications for design and
management means of production. This material provides learning with its
main functionality.
Begins
It is enough for you to have any
actual
iPad. For greater convenience, it is also recommended to get a separate
keyboard.
Install the Swift
Playground app and open it. This is a development environment in which
you can create your applications – write a code, add resources and of
course – use Swift Packages.
Make a part
Let's start with something simple – with the part. We initialize it by
specifying the name and scene name from which the visual
model will be taken – the part node.
Next, using the ObjectSceneView control, we display the part node
on application view.
Part View
Make a tool
Now move on to the tool. We set a scene with the tool model. Next, we
initialize the tool, where in addition to the name and scene, the
model controller and connector are also specified. The first
allows you to control the visual model of the tool. The second provides
connection to a real tool in production.
Tools perform technological operations associated with certain values of
the operation code supplied to the perform function of the tool. For the
gripper in question, values 0 and 1 are used – closing and opening,
respectively.
Let's create a field to set a custom opcode value with button to perform
it.
Tool View
We can also replace that with a view for controlling the gripper with two
buttons.
Tool View with opcode input
Now let's create a button to perform a sequence of operations.
The sequence can be specified as a nesting of single operations (perform_single
function), or as a program (perform_program function).
Tool View with program
Make a robot
And now, we move on to the robot. It initializes with the name,
controller, connector and scene name parameters.
However, there are differences in the approach to displaying the robot on
the stage.
First, an empty scene robot_scene is created. Next, when initializing the
scene, you must first connect to the scene using the
workcell_connect function on view appear. The position of the
origin of the coordinate system of the manipulator's movement space sets
by origin_location and origin_rotation variable.
In order for the robot model to be updated in real time, the robot update
function (update_model) is specified in the
ObjectSceneView control when initializing the control to be called
on the scene rendering.
Robot View
Next, using the PositionControl control, we ensure that the
position parameters of the manipulator (location &
rotation) are changed manually.
Robot View with control
Similar to a tool for a robot, a sequence of operations – movements to
certain positions can be specified. Position parameters are specified in a
rectangular coordinate system local to the robot. Additionally, the angles
of rotation in the position and the speed of movement into it can be
specified.
Performing sequence can be specified either as nested single actions or as
a position program.
Robot View with program
Conclusion
You learned methods for creating and basic use of individual components of
a manufacturing system – robots, tools, and parts.
This material is quite sufficient for creating applications for monitoring
and modeling individual industrial devices, as well as combining them.
This is the basis for further work with the framework.
The next stage is complex application within Workspace and Ithi Macro
Assembler.