1. Introduction
In recent years, technological advances have transformed both education and industry, enabling access to a wide variety of resources that have changed the way specific topics are learned and understood [
1]. This has allowed students to acquire knowledge independently, even without direct guidance from a teacher, thanks to the digitization of libraries, books, and laboratories, now available on various online platforms. These advancements have significantly expanded opportunities for autonomous and accessible learning for students worldwide [
2]. In the industry, technology has optimized processes by implementing robotic arms, improving efficiency, driving innovation, and increasing global competitiveness [
3]. In terms of education, digital communication platforms were implemented, allowing teachers and students to create a learning environment that replicates the usual in-person modality. However, the learning levels of the students decreased as many did not acquire the minimum knowledge required to meet the educational curriculum. For this reason, changes in the learning process were proposed, considering the implementation of interactive learning environments, educational applications, and methodologies fostering interaction between teachers and students [
4,
5]. All of this aimed to actively support the teaching–learning process, providing tools that would enable students to learn continuously and easily, without feeling the frustration of not understanding a class topic [
6]. This action created the need to develop intuitive and interactive learning tools and environments that allowed students to manipulate elements, processes, and phenomena, gaining knowledge about their functioning. These strategies helped mitigate the negative effects of the pandemic, allowing communication and social interaction to be maintained [
7].
In this context, Information and Communication Technologies (ICT) have enabled the development of didactic tools focused on students’ active learning. Among these tools are learning management systems such as Moodle, Google Classroom, and Blackboard, which facilitate course management and the distribution of materials [
8]. Additionally, resources such as digital libraries and e-books were improved, providing access to books, theses, and articles, thus promoting the development of interactive environments that integrate these tools. Interactive environments are digital spaces that facilitate learning through interaction between the user and the content, including activities such as games, simulations, quizzes, videos and animations which allow teaching and assessment of students’ knowledge [
9]. Common environments used by students for learning any academic subject are Khan Academy, Coursera, LMS Moodle, edX, Udemy, Genially, Kahoot! and Socrative [
9,
10]. These environments are important for active learning as they consistently engage the learner or practitioner, encouraging participation by offering dynamic interactions, assessments and resources that keep the learner engaged in the learning process. In addition, interactive environments provide immediate feedback, helping users to identify patterns and correct errors, which improves understanding and skill [
11].
Before the COVID-19 pandemic, virtual classrooms had already been used as a tool to support distance learning, allowing educational institutions to complement or replace physical spaces when needed [
12,
13]. These digital environments enable teachers and students to interact through a screen, using a variety of tools integrated into organized menus. For example, in Ecuador, during the pandemic, free access to Microsoft Teams was made available for virtual classes. Virtual classrooms not only allow communication between participants but also facilitate the sharing of digital material, the assignment and submission of homework, and the administration of assessments. In addition, they include tools such as discussion forums, video conferences, chats, and quizzes, which promote active learning methodologies [
14]. To further enhance interaction, virtual environments have been developed that integrate 3D scenes where students can carry out practices requiring specific materials, whether in a chemical laboratory, an industrial assembly plant, or a robotics laboratory. This approach significantly reduces costs and avoids damage to the equipment used in practical activities. Some of the most relevant virtual environments include Educaplus, CoppeliaSim, RoboDK, PhET Interactive Simulations, and Tinkercad Circuits [
15,
16,
17]. Among them, RoboDK stands out as a simulation laboratory specialized in robotics, allowing users to program and simulate robot movements in an immersive and interactive environment [
18]. These environments enable experimentation and the application of theoretical–practical concepts in a controlled virtual space, facilitating the understanding of processes. Furthermore, they allow unlimited repetition of experiments and encourage collaboration between students from different geographical locations through advanced simulation tools that replicate real scenarios with high accuracy [
19]. In recent years, these simulation platforms have also incorporated Digital Twin technologies, creating virtual replicas of physical robots that can be controlled and monitored in real time. This integration bridges the gap between virtual and physical systems, enabling precise testing, optimization of industrial processes, and the development of autonomous robot behaviors before deployment in real environments [
20].
A distinctive contribution of this work, and one of particular relevance to the field of symmetry, is the explicit integration of symmetry principles into the modeling, control, and validation of a robotic manipulator within a Digital Twin framework. Here, symmetry is addressed not only in its geometric dimension, which is reflected in the anthropomorphic and modular structure of the UFACTORY 850, but also in its kinematic and dynamic aspects, through properties that are invariant under rotations, translations, and reflections in configuration space. The preservation of these symmetries allows for more compact mathematical models, reduces computational complexity, and promotes the stability of the proposed control algorithms [
21]. This modeling approach ensures that the control laws developed in the virtual environment can be directly transferred to the physical robot with minimal recalibration, improving fidelity and reducing implementation time. This represents a clear differentiation from previous work that uses Digital Twins without systematically exploiting the structural symmetries of the robot.
This article presents a virtual and interactive training system oriented towards educational research in the field of robotic systems. The main objective is to provide a tool that allows users (students, researchers, or professionals) to experiment with and evaluate various control strategies for a robotic arm across three differentiated scenarios, each designed to simulate real-life robotic applications. The novelty of the proposed control dynamics lies in the combination of a model that preserves symmetry with two robust control approaches: control in inverse processes and sliding mode control, both of which are tested in simulations and physical experiments. Unlike vision-based manipulation approaches, such as that of Shahria et al. [
13], which rely on continuous image acquisition and processing for perception and task execution, the proposed framework focuses on dynamic control that preserves symmetry, integrating torque-to-velocity conversion and sliding mode control without relying on visual feedback channels. This formulation based on internal parameters eliminates dependence on external perception systems, thus avoiding the limitations of sensor-based methods, including susceptibility to lighting conditions, occlusions, and calibration drift. By capturing the actual dynamic behavior of the UFACTORY 850 at the actuator level, the model enables the creation of a Digital Twin whose responses closely match those of the physical robot, improving both control fidelity and educational value. From an educational perspective, this allows students and researchers to experiment in a virtual environment that reproduces not only the robot’s geometry and kinematics, but also its dynamic responses to control inputs and disturbances, facilitating the direct transfer of algorithms from simulation to real-world operation. In this way, the proposed approach overcomes common shortcomings of previous systems, such as approximate trajectory control based on simplified kinematic-only models and limited applicability in environments where vision sensors are impractical or unavailable. The first scenario focuses on a laboratory environment, where users can implement and assess different control approaches under controlled conditions. This enables them to observe the effects of their strategies in a safe context, without the complexity of external variables. In the second and third scenarios, service and industrial robotics applications are simulated, respectively, allowing users to apply their knowledge in real-world situations, such as entertainment applications (bartender) for service robotics or assembly tasks typical of industrial environments. To ensure accurate and realistic simulation of the robotic arm’s movements, all three scenarios take into account the fundamental aspects of its kinematics and dynamics. The kinematics and dynamics models proposed in this work use the maneuverability velocities of the UFACTORY 850 robotic arm as input signals, similar to the commercial robot.
Additionally, ROS (Robot Operating System) is used as a communication channel between the mathematical software MATLAB, employed for the calculation of control algorithms, and Unity3D, the graphics engine enabling interactive 3D visualization of the scenarios and the robotic arm’s behavior. This integration of technologies allows for a high-level simulation that combines MATLAB’s mathematical power with Unity3D’s graphical capabilities. Finally, experimental tests were conducted with the UFACTORY 850 robotic arm to evaluate the implemented control strategies and compare the results obtained with the developed virtual training system. Quantitative metrics, such as RMS position/orientation error and execution time, were incorporated to validate the fidelity of the Digital Twin and the robustness of the control algorithms that preserve symmetry. This evaluation process is essential to analyze the effectiveness of each control strategy in different contexts. Moreover, it provides feedback and encourages continuous improvement of the system while offering users a practical and efficient learning experience.
This document is organized into seven sections.
Section 2 discusses the methodology used to implement the virtual training system through the design of interactive environments.
Section 3 presents the kinematics and dynamics models of the robotic arm. It also describes a control algorithm based on these models for performing positioning tasks.
Section 4 details the virtualization of the robotic arm and the pre-built scenarios for the graphics engine, along with the communication protocol used for interaction between the virtual environment or the real robot and the mathematical software.
Section 5 presents the results obtained from the simulation of the virtual system and its comparison with task execution on the real robot, as well as a usability evaluation.
Section 6 discusses the role of symmetry in enhancing modeling accuracy, control robustness, and implementation efficiency. Finally,
Section 7 outlines the conclusions derived from using the virtual training system.
2. Methodology
The use of physical laboratories to manipulate and control robots, such as UFACTORY, poses a number of technical and logistical challenges that limit their effectiveness in educational and research contexts. One of the main problems is the scarcity of available equipment, which limits access and learning opportunities to a small number of users, creating bottlenecks in the training process. In addition, the high cost of acquiring and maintaining these robotic systems and their peripheral components is a significant barrier, especially in organizations with limited resources. The risks inherent in the operation of industrial or service robots, such as the risk of collisions or malfunctions that could endanger the safety of operators, are risks that cannot be ignored. These risks also extend to possible physical damage to equipment, which could result in costly repairs or the need for replacement. In addition, the inherent limitations of physical laboratories limit the number of tests and experiments that can be performed, as each experimental session requires the direct supervision of a specialized trainer or instructor, which increases the demand for time and skilled human resources. To overcome the inherent limitations of physical laboratories, a methodology is proposed, as outlined in
Figure 1, which integrates MATLAB simulation with the creation of advanced virtual environments in Unity to optimize the training and experimentation process in robotics. A distinctive feature of this methodology is the explicit incorporation of symmetry conservation principles at every stage, from mathematical modeling to control design and experimental validation, ensuring that virtual and physical systems maintain structural, kinematic, and dynamic equivalence. This approach reduces modeling complexity, promotes the reuse of control strategies, and improves the fidelity of the Digital Twin when transferring algorithms to the real robot.
This methodology consists of several steps: (i) Virtualization of environments and systems, by virtualizing and simulating a 3D model of the robot in both MATLAB for preliminary testing and in Unity for immersive, advanced simulation: MATLAB facilitates the implementation and initial validation of control algorithms, while Unity provides a detailed visual representation of the robot and enables the creation of complex environments and scenarios. In both cases, the virtual models are developed to respect the robot’s geometric and kinematic symmetries, ensuring consistency in coordinate frames, link dimensions, and joint configurations. (ii) Mathematical modeling, accurate kinematic and dynamic models of the UFACTORY robot are developed, explicitly identifying and preserving symmetry properties in the Denavit–Hartenberg parameters, Jacobian structure, and inertia matrices. These properties are exploited to simplify computations and ensure model scalability to other manipulators with similar architectures. (iii) Design and implementation of control algorithms: Two robust control strategies are developed, the first based on inverse processes and the second on sliding mode control; both are formulated to preserve the symmetrical structure of the robot’s dynamics. This ensures that control responses remain consistent across all symmetrical joint configurations, facilitating smooth and predictable behavior in both simulation and reality. The algorithms are first validated in MATLAB under ideal conditions and then tested in Unity across various scenarios to assess their stability and robustness against disturbances. Finally, a TCP/IP protocol is implemented to link the virtual simulation or the real robotic system with MATLAB control software in real time. This integration allows seamless switching between the Digital Twin and the physical robot without modifying the control architecture, ensuring that the preserved symmetry in the models is reflected in the actual system’s performance.
This methodological approach not only minimizes the risks and costs associated with the use of physical robots, but also greatly expands the possibilities for experimentation and training, allowing users to perform multiple tests without constant supervision and without exposing the equipment to potential damage.
4. Virtualization of the Environment
This section presents the virtualization of the virtual training system, as shown in
Figure 6. The full simulation is performed using Unity3D software, which provides a detailed and realistic three-dimensional environment for the training of the UFACTORY robot, including the creation of interactive scenes and scripts with the mathematical model of the robot to simulate and give more realism to the environment. In addition, MATLAB is used to perform a simulation of the controller, in which the proposed control algorithm is executed. Although MATLAB allows effective validation of the control with its ability to handle complex calculations, its graphical capabilities are more limited.
When virtualizing the system, two main files are generated: one for the interactive environment in Unity and another for the simulation in MATLAB. The graphical simulation in MATLAB includes the ability to animate the robot in basic graphics, while Unity provides an advanced visual representation.
For the virtualization of the system, several external resources were used, including different scenarios, as well as the industrial robot Ufactory 850. The robot design was implemented in the CAD modeling software SolidWorks ver. 2023. From this design, an STL file was created in 3DS Max software, which was used for simulation in MATLAB, adjusting the reference axes of the robot’s joints. In addition, the STL file was converted to FBX format, which was necessary to integrate it into the Unity graphics engine. The exported models were assembled in their respective software, as shown in
Figure 7.
Additionally, the Unity 3D engine can be used to develop various environments that are part of the virtual training system, such as a research laboratory, an industrial setting represented by an assembly line, and a service environment simulating a bar. Digitized in FBX format, these environments focus on the field of service and industrial robotics, making them highly useful for the teaching and learning process, facilitating robot interaction in performing position tasks assigned by the user.
The programming scripts in Unity include lines of code that emulate the movement of the UFactory robot, generated through the mathematically derived model, both kinematic and dynamic. Additionally, other scripts have been added for animation, fault management, and other objects. A menu scene has also been incorporated into the Unity environment, allowing the user to switch between different scenes at will, enhancing flexibility and navigation within the virtual training system.
Channel Communication
Figure 8 illustrates the information exchange scheme between MATLAB and Unity3D, implemented via the TCP/IP protocol in a communication environment facilitated by ROS (Robot Operating System). This protocol enables real-time data transmission and reception, facilitating bidirectional communication between MATLAB and Unity or MATLAB and the robot in real time [
25]. In this system, MATLAB contains the main control algorithm, where it receives the robot’s joint states and generates the necessary control actions. These actions are sent to Unity via ROS, where programming scripts process the received data and update the position and orientation of the robotic model in the graphical environment. Thus, Unity receives the information from MATLAB and simulates the robot’s movement in the virtual environment, providing an intuitive and realistic visualization environment that allows the user to interact with the model and observe the effect of the control actions in real time.
Additionally, after completing the use of the virtual training system, the same control algorithm can be implemented on the UFactory 850 robot without requiring additional modifications. Communication between the control software and the physical robot is efficiently carried out through the TCP/IP protocol, enabling the rapid and precise transfer of commands and control data. Similar to the training system, the control algorithm receives the positions and orientations of the end-effector to calculate the necessary control actions for each joint. These actions are then transmitted to the robot, ensuring precise and coordinated movement according to the established parameters. This integration ensures a seamless transition from the simulator to the real robot, facilitating the practical validation of the algorithms developed in the virtual environment. This guarantees that users can test and adjust their algorithms in a safe environment before applying them directly to the physical robot, reducing risks and improving the reliability of the results.
The integration of ROS into this architecture not only facilitates information exchange but also enables the system to be expanded to include other simulation and control modules, providing greater flexibility in the design of robotics applications and optimizing the simulation process.
6. Discussion
This paper presents the mathematical model of the UFactory 850 robotic arm, based on its kinematic and dynamic characteristics. which has proven fundamental both for generating realistic simulations in Unity and for the design of precise and robust control algorithms [
26]. Unlike conventional approaches, the proposed model explicitly identifies and preserves geometric, kinematic, and dynamic symmetries in the manipulator structure. From a theoretical perspective, these symmetries can be interpreted as invariants under specific transformations in configuration space, which simplify the underlying equations of motion. In practice, their exploitation reduces computational load, improves numerical stability, and ensures consistent control performance across equivalent joint configurations.
The symmetry present in the robot’s design has facilitated the formulation of generalizable models that can be adapted to different control strategies and operating scenarios. This property simplifies the modeling process and strengthens the scalability of the simulation framework, in contrast to previous works that do not explicitly exploit this structural feature [
27,
28]. Likewise, the integration of MATLAB for developing and tuning control algorithms together with Unity for immersive simulation has resulted in a highly effective validation environment, which demonstrates fidelity between simulation and physical execution.
The quantitative results obtained reinforce this claim. Across multiple repetitions in different scenarios, the symmetry-preserving control framework exhibited RMS position errors below 1.8 mm and orientation errors under 1°, with no statistically significant differences between simulation and real execution. Furthermore, under controlled disturbances, the sliding mode control consistently outperformed the inverse process law, reducing deviations and recovery times by up to 17% without compromising stability. These outcomes validate the effectiveness of the proposed model in terms of accuracy and robustness.
The developed virtual environment also provides a safe and versatile space for experimentation, allowing the exploration of extreme configurations and the validation of algorithms under conditions that would be risky or costly to reproduce physically. Unlike studies focused exclusively on hardware testing or theoretical models disconnected from practice, this research proposes a hybrid Digital Twin solution that, by leveraging the structural symmetry of the robot, enables predictive simulation and early validation of control algorithms. Compared to vision-based approaches, such as that of Shahria et al. [
13], our method removes the dependency on optical feedback, achieving precise trajectory tracking and effective disturbance rejection even in environments where cameras cannot be reliably deployed.
In this context, the integration of mathematical modeling, control algorithm design, and immersive simulation based on symmetry constitutes a comprehensive framework for the validation of robotic systems. The results confirm that symmetry is not merely a geometric convenience but a strategic advantage that enhances control accuracy, simulation fidelity, and development efficiency.