Professional Documents
Culture Documents
Development of Augmented Reality (AR) For Machining Simulation of 3 Axis CNC Milling
Development of Augmented Reality (AR) For Machining Simulation of 3 Axis CNC Milling
Abstract - Machining simulation to verify the such as Virtual Machining (VMach) in machining
correctness of numerical control (NC) program process. Some reviews were carried out and thus find
before physically downloaded and executed to a out that the development of VMT and VMach have
real machine tool is a common practice in many expanded over the years, from simple simulation (e.g.
industries. Many simulation system that previously tool-path generation, NC-code verification, and
enhanced and applied based on 3D graphics in material removal simulation) to complex predictions
virtual reality (VR) environment, require (e.g. tool deflection, surface errors, and surface
measuring of completely dimension of a real roughness) [1][5].
machine tool before modeling of a complete A system name VR Computer Numerical Control
machine tool. Besides, a large number of (CNC) was developed [2] to support virtual training.
machining rules and theories must be modeled This kind of technology mimics the real machining
correctly as well as simulate complex machining operation with models and simulations allowing the
process require prior expertise knowledges. This interaction with high sense of reality but produces no
paper proposes machining simulation system output such as materials and physical products instead
which is easier to set up and operate through it can produce assistive information to the user.
integrating with the Augmented Reality (AR). By However, this VR CNC system requires the
integrating AR, machining simulation can be measuring of completely dimension of a real CNC
performed on a real machine tool without the before modeling of a complete machine tool in virtual
needs to model the machine itself, machining rules, machining environment which is time consuming. In
and theories thus provides more accurate NC addition, a large number of machining rules and
program. The developed system can assist the user theories must be modeled correctly as well as simulate
for positioning collision-free set up which is complex machining process require prior expertise
commonly occurs especially when conducting knowledge. Unlike the research that making use VR
complex motion during machining process. A more technology to support the VMT and VMach, this
detailed discussion related to AR development for paper proposes the development of Augmented
machining simulation is presented in the paper. Reality (AR) to support the VMach. The proposed
system utilize AR that supplements reality with
Keywords: Machining simulation, Augmented virtual information. Ideally, it appears to the user as if
Reality, collision-free set up the virtual 3-D objects actually exist in the real
environment [3]. Therefore, the real machining
I. INTRODUCTION environment is supplemented with necessary
information (cutting tools, workpiece, fixtures, and
The benefits of Virtual Reality (VR) implemented in etc.) rather than completely replacing it with synthetic
manufacturing system have been rapidly recognized environment. Through AR, the user need not to
and researched over the years. Meanwhile the modeling the whole component of a machine tools
advances of computer technology and existing of and predicting it’s capabilities in virtual system to
graphics card accelerator are making the VR conduct the machining process, instead a user can see
technology increasingly more attractive and realistic the real machining environment as well as conducting
with result that many potential application in machining simulation on real machine tool efficiently
manufacturing system can be integrated to provide a without having to worry about possibilities of
useful means for products to be manufactured machine and tool breakages.
efficiently. The integration of VR technology to the Compared to VR, AR offers higher sense of reality
one of the manufacturing system that gained interest to the user, reducing computation time and efforts as
in research community is development of Virtual well as increasingly more accurate to evaluate and
Machine Tool (VMT) systems. A large amount of validate the behaviour of the system since only a few
work has been conducted either for the purpose of virtual objects are modeled and geomterically
designing a complete machine tools or in more updated.
specific by simulating machine tool’s capabilities
Real Machining
Environment
Camera
Vertical
axis
Marker
Horizontal
axis
The integration of AR technology to CNC in five-axis CNC milling. The Structure of the paper
machine tools especially in 3-axis milling machine is arranged as follows. Section 2 discusses the
tools had been realized many years ago. The authors developed system architecture of AR CNC and
[6] developed the machining simuation by combining integrating AR technology to the real machine tool.
reality with virtual information through AR Section 3 presents the implementation of AR
technology to show the possibilities and feasibilities technology in machining process. Finally, discussion
of this fusion with objectives to enhance of further researchs and concluding remarks are given
manufacturing quality and efficiency, and also realise in Section 4.
manufacturing automation. With the improved
bounding boxes method, the Material Removal Rate II. DEVELOPED SYSTEM ARCHITECTURE OF AR CNC
(MRR) estimation can be calculated thus near real-
time MRR is visualized. The tracking system in Fig. 1. shows the developed system architecture of
prepared and unprepared environment which have AR CNC. This developed system consists of four
been one of the challenges issue encountered in functional modules: a real 3-axis CNC milling,
building the AR system is implemented by using camera and marker as vision-based tracking,
marker and KLT feature tracker respectively. Many processing unit, and display device using screen-based
years later the authors improved the machining video see-through display. In this proposed system,
simulation system for traning purpose by making the ARToolkit [9] library was utilized to build the AR
interaction of real cutter with virtual workpiece, system by using fiducial marker. As compared with
cutting force prediction and collision detection, sensor-based tracking, vision-based tracking is more
improving the computational time in tracking system convenient since preparation of sensors and related
[7] as well as developing the hybrid feature tracking devices will decrease the flexibility of the system. To
system [8]. build the integration of AR on a real machine tool,
In this paper, we endeavour to explore the benefits markers with different pattern have to be attached
of AR technology which is used not only for properly in the real machining environment to register
previously reported purposes, but also for helping the the virtual workpiece, fixture, and cutter. However, it
fixture or workpiece clamping set up which has been realised that the use of single marker is not
commonly collide with the real cutter during actual sufficient for certain applications which involve the
cutting process according to the NC program complex movements of real objects that might
especially include the complex motion of cutting tool potentially occlude the marker from the view of
in five-axis CNC milling. Besides, multiple markers camera. Thus, multiple markers was used to resolve
was implemented due to the limitation of marker- and anticipate the limitation of single marker where
based tracking in which the virtual objects will only the virtual objects will only appear when the tracking
appear when the tracking mark are in view. In mark is fully in view, whereas the marker is
addition, the use of marker-based tracking system was potentially occluded by cutting tools and tool holder
developed to realise the integration of AR technology during machining process. Screen-based video see-
144
ICACSIS 2013 ISBN: 978-979-1421-19-5
through display was selected for display device due to between one marker and another are known, the pose
the limited size of screen when using head-worn of one marker can be reliably estimated by another
display and hand-held display as well as it exhausted visible markers allowing the user displays the virtual
the user especially when the user must work and wear objects anytime as long as one of the markers is fully
the display device at the same time during the in view.
simulation. It also represents probably the most cost
efficient AR approach, since only camera video and B. Virtual Objects Selection
standard PC equipment are required. As preparing the actual machining process, the user
This AR CNC can simulates machining process by needs to define the workpiece and typical fixture to
firstly selecting various shape of virtual workpieces clamp the workpiece before performing the machining
and fixtures used during machining operation and process. The various shape of workpieces and fixtures
augment them according to the pose of marker located were modeled virtually and available in the workpiece
on a real machine tools in a real scene. The cutting and fixture database. The size of virtual objects are
process between the real cutting tool and virtual freely modeled according to the defined dimension.
workpiece based on the Numerical Control (NC) The main goal of virtual objects selection is allowing
program will then be displayed to the users using a the user to match the requirements of machining
video see-through scene rendering mechanism in a simulation that can be performed on any CNC
real-time. The virtual fixture helps to verify the NC machines.
program which is commonly include the collision
with tool holder and cutting tools during machining C. Material Removal Visualization
process. The first important thing to build machining
simulation by means of AR technology is to do
A. Marker-based Tracking synchronization of real machine tool movement with
One of the key requirement for creating AR the updated virtual object during simulation in
application is a tracking system that capable to recorded or live video feed. This such synchronization
measure accurately the position and the orientation of is created through the interaction of real cutter and
the observer’s location in space. The tracking system virtual workpiece. The idea for creating interaction
used in ARToolkit relies upon computer vision (CV) between real cutter and virtual workpiece is to define
algorithm by analyzing the images captured from when or where they collide each other. To define the
camera in live video feed to calculate the pose. By collision, the intersection between real cutter and
placing special fiducial markers with unique pattern at virtual workpiece has to be calculated by previously
known locations in the environment, the marker can tracking and reconstructing machine coordinate
be easily detected and identified in video live feed and system (MCS) into tool coordinates system (TCS) and
hence the pose estimation can be calculated. To workpiece coordinates system (WCS) in AR
achieve the augmentation of virtual objects in a real environment near real-time. To construct TCS and
scene the position and orientation of marker relative WCS, we used two predefined marker with different
to the camera have to be recovered which can be pattern that was glued to the tool holder and
represented by 6 independent variables or six degrees worktable. This method yields two different
of freedom (6 DoF) tracking systems (3 translational coordinates system which represent TCS and WCS so
coordinates and 3 rotational angles) or (Tcm) through that relative position between real cutter and virtual
image processing. Therefore, the user can freely workpiece can be tracked dynamically in live video
augment the virtual objects in accordance to the stream near real-time. After that the position of the
marker coordinates relative to the camera coordinates cutter tip center with respect to the TCS must be
in a real scene. approximated by doing precalibration. The cutter
position in TCS is then transformed into WCS using
ܺܿ ܴ11 ܴ12 ܴ13 ܶ݉ܺ ݔ linear transformation matrix. By doing so, the
ܻܿ ܴ21 ܴ22 ܴ23 ܻܶ݉ ݕ collision can be detected along the tool path. If the
൦ ൪=൦ ൪൦ ൪
ܼܿ ܴ31 ܴ32 ܴ33 ܼܶ݉ ݖ cutter position lies within the volume of workpiece,
1 0 0 0 1 1 then the collision occurs, and hence intersection
points can be calculated to generate tool swept
ܺ݉ ܺ݉ volume. The tool swept volume for each NC-path is
ܴ3ݔ3 ܶ3ݔ1 ܻ݉ ܻ used to substract part of the virtual workpiece.
= ቂ ቃ ൦ ൪ = ܶܿ݉ ൦ ݉൪ (1)
0 0 0 1 ܼ݉ ܼ݉ The second is modeling scheme method to
1 1 represent the virtual workpiece and simulate material
Camera calibration which is usually conducted before removal process in machining simulation. These
the initialization phase to obtain appropriate modeling scheme can be categorized into two
parameter intrinsics of camera to compensate lens approaches: direct solid modeling and spatial
distortion is not discussed here. On the other hand, the partitioning. Each of these approaches has been
user can use multiple markers to realise more complex widely adopted to create machining simulation with
applications. Once the relation 6 DoF coordinates varying ranges of applicability and degrees of success.
145
ICACSIS 2013 ISBN: 978-979-1421-19-5
146
ICACSIS 2013 ISBN: 978-979-1421-19-5
However, the movement of cutting tool at certain path noticed. Initially, virtual objects rendered in real scene
during simulation can potentially occlude the marker always occlude the real objects thus making the real
from the view of the camera and making the virtual cutting tools along certain path occluded by virtual
objects disappeared. Hence, the multiple markers was workpiece when it should be visible and displayed in
used to anticipate this occlusion problem for making front of the workpiece. This occlusion problem was
virtual objects remain appeared by detecting another solved by making use of OpenGL Depth buffer by
visible markers. Fig. 3. shows the implementation of rendering the real scene pixels from different marker
multiple markers. attaced to the tool holder within the real cutting tool
rendering area over the virtual workpiece. Fig. 5.
shows the resolved occlusion problem by means of
depth buffer rendering rule.
However, when the marker is occluded or not in and executed. During the simulation, the user can
camera view (for example when the worktable were observe the machining process as it proceed so
tilted and the marker is not detected), then the virtual that the selection of workpieces and fixtures in
objects remain appeared by detecting another visible machining simulation can help the user for
markers. The rendering information of virtual objects positioning collision free set-up during the
to the real scene that occlude the real objects has been machining process.
147
ICACSIS 2013 ISBN: 978-979-1421-19-5
2. Since the simulation of process machining are will be very beneficial to validate NC program and
performed on real machine tool, AR CNC system positioning collision-free set up of workpieces and
provides increasingly more accurate to visualise fixture. A simple and a few set up required to conduct
the material removal simulation including correct the simulation including correct kinematics of the
kinematics without the need to build VMT which machine tools movement without the needs to model a
is common in several commercial CAM system complete machine tools and predicting it’s
for the purpose of NC program verification. capabilities. Since the workpieces and fixture set up
has been realised and can be integrated to multi-axis
machine, the complex motion of multi-axis which is
prone to errors as well as collisions between the
cutting tool and clamping fixture which are
commonly difficult to anticipate can be predicted, as a
result the NC program can be adjusted accordingly.
This system can also be expanded to resolve the
collision situation during the simulated process by
automatically generate and apply the appropriate tilted
and rotation angle to the NC path. The physical aspect
can also be developed and applied in this system to
provide the automatically generated machining
parameters to optimize the NC program.
REFERENCES
[1] Aini Abdul Kadir , Xun Xu , Enrico Hämmerle, Review:
Virtual machine tools and virtual machining-A technological
review, Robotics and Computer-Integrated Manufacturing,
v.27 n.3, p.494-508, June, 2011 .
[2] Kao YC, Cheng HY, Chen YC, “Development of a virtual
controller intergrating virtual and physical CNC”, Materials
Science Forum 505-507, pp. 631-636, 2006.
[3] Azuma R. A survey of augmented reality. Presence:
Teleoperators and Virtual Environments 1997;6(4):355–85.
[4] J. Donggo, K. Kwangso, and J. Jungmin, “Voxel-based virtual
multi-axis machining”, International Journal of Manufacturing
Technology, Vol. 16,cpp. 709-713, 2000.
[5] Tamer M. Wasfy, Ayman M. Wasfy, Hazim El-Mounayri,
Daniel Aw, “Virtual training environment for a 3-axis CNC
milling machine”, Proceedings of IDETC/CIE 2005, ASME
2005 International Design Engineering Technical Conferences
& Computers and Information in Engineering Conference,
Long Beach, California USA.
[6] J. Zhang, S. K. Ong, A. Y. C. Nee. A volumetric Model-Based
CNC Simulation and Monitoring System in Augmented
Environments. Proceedings of the 2006 International
conference on Cyberworlds IEEE.
[7] Zhang J, Ong SK, Nee AYC. AR-assisted in situ machining
simulation: architecture and implementation. In: ACM
SIGGRAPH 7th international conference on virtual-reality
continuum & its applications in industry. SIGGRAPH VRCAI
conference. 2008.
[8] Zhang J, Ong SK, Nee AYC (2010) A Multi-regional
Computation Scheme in an AR-Assisted in situ CNC
Fig. 6. AR CNC machining simulation process Simulation Environment. Computer-Aided Design
42(12):1167–1177.
[9] ARToolKit 2.72, http://www.hitl.washington.edu/
IV. FURTHER DISCUSSION AND CONCLUDING artoolkit/download/ (last accessed 18.07.2012).
REMARKS
148