Next Article in Journal
Data-Driven Diagnostics for Pediatric Appendicitis: Machine Learning to Minimize Misdiagnoses and Unnecessary Surgeries
Previous Article in Journal
The Role of AI-Based Chatbots in Public Health Emergencies: A Narrative Review
Previous Article in Special Issue
Framework of Best Practices to Drive the Digital Transition: Towards a 4.0 Paradigm Based on Evidence from Case Studies
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Integration of a Digital Twin Framework for Trajectory Control of a 2RRR Planar Parallel Manipulator Using ROS/Gazebo and MATLAB

by
Carlos Andrés Mesa-Montoya
1,
Néstor Iván Marín Peláez
1,
Kevin David Ortega-Quiñones
2,
German Andrés Holguín-Londoño
2,
Libardo Vicente Vanegas-Useche
1,
Gian Carlo Daraviña-Peña
1,
Edwan Anderson Ariza-Echeverri
3 and
Diego Vergara
4,*
1
Programa de Ingeniería Mecánica, Facultad de Mecánica Aplicada, Universidad Tecnológica de Pereira, Pereira 660003, Colombia
2
Programa de Ingeniería Eléctrica, Facultad de Ingenierías, Universidad Tecnológica de Pereira, Pereira 660003, Colombia
3
Grupo de Nuevos Materiales y Didáctica de las Ciencias, Facultad de Ingeniería, Universidad del Magdalena, Santa Marta 470004, Colombia
4
Technology, Instruction and Design in Engineering and Education Research Group (TiDEE.rg), Catholic University of Ávila, 05005 Ávila, Spain
*
Author to whom correspondence should be addressed.
Future Internet 2025, 17(4), 146; https://doi.org/10.3390/fi17040146
Submission received: 22 January 2025 / Revised: 17 March 2025 / Accepted: 21 March 2025 / Published: 26 March 2025
(This article belongs to the Special Issue Digital Twins in Next-Generation IoT Networks)

Abstract

:
Digital twin (DT) technology is transforming industrial automation by enabling the real-time simulation, predictive control, and optimization of complex systems. This study presents a DT-based kinematic control method designed for trajectory planning and execution in a 2RRR planar parallel manipulator. The framework utilizes ROS/Gazebo for virtual modeling and MATLAB’s Guide tool for a human–machine interface, establishing a synchronized virtual–physical environment. By dynamically bridging design and manufacturing phases, the DT model enhances operational insight through real-time data exchange and control flexibility. Statistical analyses, including the comparative hypothesis testing of angular positions and velocities with a 95% confidence level, validate the model’s precision, demonstrating a high degree of fidelity between the virtual model and the physical system. These findings confirm the DT’s reliability as an effective tool for trajectory programming, highlighting its potential in industrial robotics where adaptability and data-driven decision making are essential. This approach contributes to the evolving landscape of Industry 4.0 by supporting intelligent manufacturing systems with improved accuracy and efficiency.

1. Introduction

The Digital twin (DT) has emerged as a transformative technology within the landscape of smart manufacturing and Industry 4.0. Its capability to seamlessly integrate virtual and physical environments has positioned digital twins as recognition a key innovation, garnering significance in both academic research and industrial applications. Since its inception, the DT concept has enabled numerous successful implementations across diverse industries, including product design, production optimization, predictive maintenance, and operational management [1]. Despite the increasing adoption of digital twin technology, a limited number of comprehensive reviews exist that focus specifically on its industrial applications [2,3]. This gap highlights the need for further exploration and analysis of DT’s role in enhancing industrial processes.
The effectiveness of digital twins in industrial settings has been greatly amplified by advancements in complementary technologies. Innovations in augmented reality (AR) and virtual reality (VR) facilitate intuitive visualization and enable more natural user interaction with virtual models. Furthermore, the widespread adoption of smart sensors and the deployment of 5G networks have significantly improved real-time data collection and transmission capabilities. This real-time synchronization between virtual and physical systems is essential for maintaining the accuracy and efficiency of digital twin models [4]. Additionally, the integration of artificial intelligence (AI) and deep learning algorithms is expanding the predictive and optimization functionalities of digital twins. These advancements empower industries to anticipate equipment failures, optimize production processes, and make data-driven decisions in complex industrial environments. This convergence of cutting-edge technologies has fostered the development of highly adaptable and efficient smart factories, where digital twins enable the seamless integration, monitoring, and coordination of interconnected production systems [3,5,6].
The concept of the digital twin (DT) has gained significant attention in recent years as a powerful tool for the design, control, and optimization of robotic systems. Originally proposed by Grieves in 2003, the digital twin has rapidly evolved, finding applications across multiple fields of engineering and manufacturing [7,8].
In the field of robotics, digital twins have proven to be versatile and invaluable tools. Huang et al. [9] reviewed AI-driven digital twin applications in the industry, emphasizing their potential to enhance the efficiency and precision of robotic systems and manufacturing processes. In the context of production, digital twins enable the simulation of multiple scenarios and the optimization of resource allocation, leading to notable improvements in productivity and cost reduction [10,11]. Aligned with these advancements, the integration of digital twins with robotic operating systems like the ROS (Robot Operating System) is transforming robotic simulations and real-world implementations [12,13,14]. The ROS offers a flexible and robust platform for robot simulation and control, facilitating seamless interaction between digital twins and physical systems [13]. This integration not only enables the simulation of robotic operations but also supports real-time synchronization and continuous feedback, enhancing the adaptability and efficiency of robotic systems [15]. For instance, Chinnasamy et al. [16] developed a digital twin of a 5-degree-of-freedom industrial robotic manipulator using a miniaturized, additively manufactured model. The system was integrated with IoT sensors such as accelerometers and rotary encoders, as well as a ROS and MATLAB 2021®, enabling the simulation of pick-and-place operations and state monitoring of the robotic arm. Their architecture, which involved real-time data collection and remote control, allowed for the performance monitoring and analysis of failure mechanisms, showcasing the predictive capabilities of digital twins. Similarly, Kousi et al. [17] developed a ROS-based simulation environment where digital twins enhanced the flexibility of modern production systems. Bilberg and Malik [18] explored the integration of digital twins with Industry 4.0 technologies to create adaptive and collaborative manufacturing cells. Their study demonstrated how digital twins facilitate real-time simulation, dynamic task allocation based on worker skills, and trajectory planning for collaborative robots. This approach enables quick adaptation to changes in the production environment, improving the efficiency of human–robot collaboration in assembly systems.
The applications of digital twins are not limited to robotics; they have also been applied to energy systems for real-time optimization. For example, in the Rinascimento III district in Rome, digital twins integrated with IoT, AI, and machine learning (ML) technologies are used to simulate and optimize energy systems. These models allow for accurate evaluations of intervention scenarios, improving energy generation and distribution efficiency while facilitating informed decision making [19,20]. Kamyabi et al. [21] further highlight that data-driven digital twins developed in real-time, data-rich environments improve decision making and predictive capabilities, particularly in renewable energy technologies. In a robotic simulation, Allevato et al. [22] proposed TuneNet, a model that fine-tunes simulator parameters to match real-world conditions. This method enables the seamless transfer of skills from simulation to reality (sim-to-real) in robotic systems. Similarly, Castellani et al. [23] combined supervised learning with digital twins for anomaly detection in industrial systems. They generated training datasets by simulating the normal operations of a monitoring system then applied machine learning models such as Siamese autoencoders for detecting real-world anomalies. In the energy sector, Huang and Hou [24] presented a parallel control scheme using the ACP method to enhance the operational flexibility of ultra-supercritical (USC) thermal power plants. Their artificial control system, built on digital twin technology, reflects real-time operating conditions and guides USC units through computational experiments, ensuring stable operations. Meanwhile, Viola and Chen [25] introduced the Self-Optimizing Parallel Control (SOC) framework, combining parallel intelligence, digital twins, and the derivative-free Simultaneous Perturbation Stochastic Approximation (SPSA) algorithm to enhance smart process control. Specifically in the domain of parallel manipulators, Song et al. [26] proposed an advanced control method for a four-degree-of-freedom parallel robot. Their approach, based on modal decoupling and gravity-load compensation, significantly improved control precision and robust system stability.
In the robotics field, Liu [27] explores human–robot collaboration in customized production using digital twins to enhance interaction and safety. However, challenges remain in developing accessible and effective systems for managing both physical and virtual environments. To address this, Liu proposes a modular web-based system built on a client/server architecture, employing MySQL and the Microsoft NET Framework. The study includes a case of human–robot collaborative assembly, presenting findings that contribute to the standardization and effective management of digital twin applications in industrial settings. Similarly, Li [28] introduces a digital twin prototype named “Alita”, which improves robotic manipulation by implementing an open kinematic chain manipulator. The system supports task replanning and real-time human–robot control through a four-stage representation that integrates control dynamics. Two strategies are proposed: one based on a deep learning model for task replanning and another using hybrid mapping for collaborative control. Experimental results demonstrate the system’s effectiveness in reducing the operational interference and adapting to dynamic changes. Touhid [29] highlights the transformative role of Industry 4.0 and smart manufacturing in modern production systems. By leveraging automation, artificial intelligence (AI), and data analysis, digital twins serve as virtual replicas of physical assets that synchronize real-time data with virtual environments. Touhid addresses synchronization in robotic assembly systems, employing YOLOv8 (Yolov8.1 model) for real-time tracking and deviation analysis. The results underscore how computer vision technologies improve synchronization accuracy, thereby optimizing the efficiency and reliability of manufacturing processes. Focusing on object manipulation, Yun [30] presents a method for robotic gripping in complex environments with multiple stacked objects—an essential yet challenging task for robots. Yun develops a digital twin model designed to plan and execute multi-object grasping while enabling virtual–real interaction. The model integrates a serial robot information system with a perception method to establish logical relationships between virtual models of stacked objects. The system employs the ROS and Unity3D to monitor and visualize critical elements of the physical robot in real time. Experimental results reveal an 80% accuracy in detecting interactive relationships between objects, validating the model’s reliability and effectiveness in complex stacking environments.
The existing literature predominantly focuses on serial manipulators and their applications in manufacturing environments, with limited attention given to closed kinematic chain manipulators. This gap can be attributed to the inherent complexity involved in analyzing the kinematics of closed-chain systems. Addressing this limitation, the novelty of this article lies in the kinematic control proposal for a 2RRR planar parallel manipulator through the implementation of a digital twin framework. The proposed system integrates a virtual model of the manipulator developed using ROS/Gazebo with a human–machine interface (HMI) programmed in MATLAB 2021®. This configuration provides an intuitive design environment and enables accurate trajectory simulation while accounting for the physical and electronic constraints of the real system. The virtual model plays a key role in extracting inverse kinematics and generating joint data vectors required for real-time trajectory execution. Additionally, the MATLAB-based interface facilitates seamless communication between the virtual model and the physical prototype. This integration allows for the monitoring of system variables in real time, trajectory execution, and comparative statistical analysis between simulated data and the data obtained from the physical system during execution. In the physical environment, the manipulator is equipped with an Arduino MEGA 2560 microcontroller (Arduino, Turin, Italy) and Dynamixel MX-64 actuators (Robotis, California, EEUU), ensuring precise control and effective validation of the proposed digital twin model. By successfully combining these components, this study presents a novel and practical solution for the kinematic control of closed kinematic chain manipulators, an area that has remained underexplored in the digital twin domain. The proposed system demonstrates its potential for trajectory planning, real-time execution, and enhanced system monitoring, contributing to the advancement of digital twin applications in robotics.

2. Materials and Methods

2.1. Direct and Inverse Kinematics

Robotic systems consist of links connected by joints that allow relative motion between adjacent links. The degrees of freedom (DOFs) of a robot defines the number of independent variables required to determine the position and orientation of all components in the mechanism. At the end of the chain of links is the end-effector, whose configuration depends on the robot’s function. The end-effector may incorporate tools such as grippers, soldering irons, electromagnets, or other specialized devices. The position and orientation of the robot are typically described in terms of a tool reference frame attached to the end-effector, relative to the fixed base reference frame of the robot. The forward kinematic model calculates the position and orientation of the end-effector when provided with a specific set of joint angles relative to the robot’s base frame. This model determined the spatial location of the end-effector based on the given joint coordinates and also facilitated velocity control of the end-effector.
An essential aspect of robot control is solving for the end-effector position using measurements of the joint coordinates, which involves solving the system of equations defined by the forward kinematics. However, for parallel manipulators, this problem often leads to multiple solutions because there can be several valid configurations of the manipulator that correspond to the same joint coordinates [31]. The complexity of forward kinematics for parallel manipulators arises due to the closed-chain structure of these systems. Consequently, solving for the inverse kinematics—determining the joint angles from a desired position and orientation of the end-effector—becomes equally crucial. This process enables precise trajectory planning and control by converting the desired spatial position into corresponding joint movements.

2.2. Analytical Study of Forward Kinematics

The goal here is to determine the coordinates of point C ( x c ,   y c ), which represents the position of the end-effector, given the input angles θ 1 and θ 4 of the actuators. This process involves analyzing the manipulator’s geometry based on the constraints of its closed kinematic chain, as shown in Figure 1.
As depicted in Figure 1, the manipulator configuration consists of two fixed points, A and E :
  • Point A is located at the origin ( 0,0 ) .
  • Point E is displaced along the x-axis at position ( x E , 0 ).
The links L 1 , L 2 , L 3 , and L 4 connect the joints at points A , B , C , D , and E , where each joint has a specific angle: θ 1 at A ; θ 2 at B ; θ 3 at D ; and θ 4 at E . The positions of points B and D were derived using trigonometric relationships of the link lengths and input angles.
The position of points B and D can be found from an analysis of the configuration shown in Figure 1. Given the fixed base at A , the coordinates of point B and D are as follows:
x B = L 1 cos θ 1
y B = L 1 sin θ 1
x D = x E + L 4 cos θ 4
y D = y E   + L 4 sin θ 4
To determine the position of point C , which lies at the intersection of links L 2 and L 3 , the following conditions must be satisfied:
L 2 2 = x C x B 2 + y C y B 2
Substituting Equations (1) and (2) in Equation (5), we obtain the following:
L 2 2 = x C L 1 cos θ 1 2 + y C L 1 sin θ 1 2
L 2 2 = x C 2 + y C 2 2 x C L 1 cos θ 1 2 y C L 1 sin θ 1
L 3 2 = x C x D 2 + y C y D 2
L 3 2 = x C x E + L 4 cos θ 4 2 + y C y E + L 4 sin θ 4 2
L 3 2 = x C 2 + y C 2 + 2 L 4 cos θ 4 2 x E x C 2 L 4 sin θ 4 y C + L 4 2 + x E 2 + 2 L 4 x E cos θ 4
To determine the position of C , subtracting Equation (8) from Equation (10), to eliminate x C 2 and y C 2 , and solving for x c in terms of y c , Equation (12) is obtained:
x C 2 x E + 2 L 4 cos θ 4 2 L 1 cos θ 1 + y C 2 L 4 sin θ 4 2 L 1 cos θ 1 + L 1 2 + L 3 2 L 2 2 L 4 2 x E 2 2 L 4 x E cos θ 4 = 0
x C = e × y c + f
where
e = L 1 sin θ 1 L 4 sin θ 4 x E + L 4 cos θ 4 L 1 cos θ 1
f = L 1 2 + L 3 2 L 2 2 L 4 2 x E 2 2 L 4 x E cos θ 4 2 L 1 cos θ 1 2 L 4 cos θ 4 2 x E
Substituting Equation (12) into Equation (7),
L 2 2 = e × y c + f 2 + y C 2 2 e × y c + f L 1 cos θ 1 2 y C L 1 sin θ 1 + L 1 2
Simplifying to obtain a quadratic equation,
y C 2 e 2 + 1 + y C 2 e f 2 e L 1 cos θ 1 2 L 1 sin θ 1 + f 2 2 f L 1 cos θ 1 + L 1 2 L 2 2 = 0
d y C + g y c + h = 0
where
d = e 2 + 1
g = 2 e f 2 e L 1 cos θ 1 2 L 1 sin θ 1
h = f 2 2 f L 1 cos θ 1 + L 1 2 L 2 2
Solving for y C ,
y C = g ± σ g 2 4 d h 2 d
The parameter σ = 1   o   ( 1 ) yields two possible solutions [11] corresponding to two assembly modes (Figure 2):
In this study, the upper configuration was used.
Once x c and y c are known, the angles θ 2 and θ 3 are calculated as follows:
θ 2 = acos x c L 1 cos θ 1 L 2
θ 3 = acos x c x E L 4 cos θ 4 L 3

2.3. Inverse Kinematic Model

Inverse kinematics focuses on determining the angles of the robot’s joints that correspond to a desired position and orientation of the end-effector. This is essential for controlling the robot’s motion along a predefined trajectory. Specifically, the objective is to calculate the input angles θ 1 and θ 4 for the actuators when the coordinates of point C   x c , y c are known. This analysis serves as the foundation for precise trajectory control of the robot’s tool. Below, in Figure 3, a geometric scheme for the study of inverse kinematics is shown.
From the triangle A E C ¯ and using the law of cosines,
L E C 2 = L A C 2 + x E 2 2 L E C x E cos ϕ 1
Solving for ϕ 1 ,
ϕ 1 = a c o s L A C 2 + x E 2 L E C 2 2 L E C x E
From the vector relationships in triangle A E C ¯ ,
A C ¯ = A E ¯ + E C ¯
Decomposing this equation,
L A C cos θ 1 = x E + L E C cos ϕ 4
L A C sin θ 1 = y E + L E C cos ϕ 4
From Equation (27), solving for ϕ 4 ,
ϕ 4 = a c o s L A C cos θ 1 x E L E C
where
L A C = x c 2 + y c 2
L E C = x C x E 2 + y C y E 2
Applying the law of cosines to triangle A B C ¯ ,
L 2 2 = L 1 2 + L A C 2 2 L 1 L A C cos β 1
Solving for β 1 ,
β 1 = a c o s L 1 2 + L A C 2 L 2 2 2 L 1 L A C
Similarly, applying the law of cosines to triangle C D E ¯ ,
L 3 2 = L 4 2 + L E C 2 2 L 4 L E C cos β 4
Solving for β 4 ,
β 4 = a r c c o s L 4 2 + L E C 2 L 3 2 2 L 4 L E C
Using the results from Equations (33) and (35), the input angles θ 1 and θ 4 are calculated as follows:
θ 1 = β 1 ± ϕ 1
θ 4 = ϕ 4 ± β 4
From Equations (33)–(37), there are four possible solutions for the inverse kinematics problem, corresponding to different assembly modes of the manipulator (Figure 4). These configurations are as follows:
  • “+ −” model: θ 1 = β 1 + ϕ 1 , θ 4 = ϕ 4 β 4
  • “− −” model: θ 1 = β 1 ϕ 1 , θ 4 = ϕ 4 β 4
  • “+ +” model: θ 1 = β 1 + ϕ 1 , θ 4 = ϕ 4 + β 4
  • “− +” model: θ 1 = β 1 ϕ 1 , θ 4 = ϕ 4 + β 4
These configurations are illustrated in Figure 4, where each model represents a different working mode of the manipulator.
In this manner, the inverse kinematic model provides a framework for calculating the input angles θ 1 and θ 4 based on the desired position x c , y c of the end-effector. By leveraging geometric constraints and trigonometric relationships, this study ensures precise control of the manipulator’s motion. This inverse kinematic analysis is critical for determining the joint movements required for the end-effector to follow a desired trajectory.

2.4. Workspace Analysis

The workspace of the 2-RRR planar parallel manipulator is defined as the set of points that the end-effector can reach when the joint angles θ 1   and θ 4 vary between 0 and 2 π . This analysis excluded any interference between the manipulator’s links and ignores singularities. The workspace is bounded by surfaces that encompass all accessible points for the manipulator, whether it is fully extended or fully folded.
It is important to note that not all points within the workspace have the same level of accessibility. Points on the boundary of the workspace, which can only be reached with specific joint configurations, represent areas of minimum accessibility.
The workspace of the first kinematic chain ( A B C ¯ ) was determined by two concentric circles:
  • The outer circle, with a radius of ( L 1 + L 2 ), represents the maximum reach when the manipulator is fully extended:
    C 1 o = x C 2 + y C 2 = L 1 + L 2 2
  • The inner circle, with a radius of ( L 1 L 2 ), represents the minimum reach when the manipulator is fully folded:
    C 1 i = x C 2 + y C 2 = L 1 L 2 2
These two circles define the workspace region of the first kinematic chain as the area between the circles C 1 o and C 1 i .
Similarly, the workspace of the second kinematic chain ( E D C ¯ ) was defined by two concentric circles:
3.
The outer circle, centered at ( x E , , 0 ), with a radius of ( L 4 + L 3 ) :
C 2 o = x C x E 2 + y C 2 = L 4 + L 3 2
4.
The inner circle, also centered at ( x E , , 0 ), with a radius of ( L 4 L 3 ) :
C 2 i = x C x E 2 + y C 2 = L 4 L 3 2
The workspace region of the second kinematic chain is the area between the circles C 2 o and C 2 i .
When both kinematic chains are considered, the theoretical workspace of the 2-RRR manipulator is defined as the intersection of the workspace regions of the two chains. If the following condition holds, x E 2 > L 1 + L 2 and x E 2 > L 4 + L 3 . No intersection exists, meaning the manipulator has no workspace. If x E 2 = L 1 + L 2 and x E 2 = L 4 + L 3 , the workspace is reduced to a single point, located at the center of the line segment A E ¯ . If the condition L 1 = L 2 , L 4 = L 1 and L 3 = L 2 is met, the theoretical workspace is a region that corresponds to the overlapping area of the two concentric circles, as illustrated in Figure 5.
In real-world applications, the actual workspace may be smaller than the theoretical workspace due to physical constraints, such as interference between the manipulator’s links; singularities were induced by configurations where the manipulator loses degrees of freedom, and joint limits were caused by restrictions on the angles θ 1 and θ 4 .

2.5. Development of the 3D Model

A 3D model of the 2RRR planar parallel manipulator was developed using ROS/Gazebo, enabling motion analysis through simulations. These simulations evaluated several critical aspects of the manipulator’s functionality, including the following:
  • Trajectory Analysis: Ensuring smooth and accurate movement along predefined paths.
  • Workspace Evaluation: Determining the range of accessible points for the manipulator.
  • Joint Limitations: Assessing the mechanical constraints of the joints.
  • Interference Checks: Identifying potential collisions or obstructions between links.
  • The simulation results provided valuable insights into the manipulator’s reach and accuracy across various positions. They also helped identify areas for improvement, allowing adjustments to the design to enhance performance and ensure the manipulator meets operational requirements.
The initial virtual design model created in ROS/Gazebo is shown in Figure 6. This setup allows for analyzing the movement, reach, and response of the system under different trajectory profiles.
At this stage of this study, no specific methodology was implemented for directly capturing the laser position using vision sensors or tracking systems. Instead, a reference trajectory was designed using SolidWorks 2024 generating multiple points to precisely define the ideal manipulator path. This trajectory was used as a basis for evaluating the behavior of the digital twin in comparison to the physical execution of the manipulator, facilitating the analysis and comparison of results. However, we recognize that integrating visual servo-control techniques, such as Eye-to-Hand systems, could provide real-time position feedback using a vision sensor. This improvement would allow for direct and more accurate acquisition of the trajectory, minimizing errors and ensuring greater correlation between the ideal trajectory generated in the virtual environment and the trajectory executed by the physical system. Given these potential advantages, this integration represents a key area for future research to enhance trajectory tracking accuracy and system adaptability.
The physical implementation of the manipulator, based on the virtual design, was successfully constructed. The top view of the fabricated 2RRR manipulator is shown in Figure 7. This configuration allows for real-time trajectory execution and feedback within the digital twin framework.

2.6. Control Kinematics

The control kinematics of the 2RRR planar parallel manipulator involve defining a desired trajectory in the XY plane and using inverse kinematics to calculate the joint angles θ 1 and θ 4 required for the end-effector to follow this path. The process begins by computing the angles for each trajectory point and adjusting them iteratively to minimize the error between the desired and current positions, with the process concluding when the measured position matches the desired position within an acceptable margin. A proposed control algorithm employed inverse kinematic equations for real-time trajectory tracking, continuously adjusting joint angles to account for external factors such as load variations and joint friction. Simulations conducted with linear and curved trajectories evaluated the algorithm’s precision and stability, demonstrating its effectiveness in maintaining accuracy and consistent motion under varying conditions.

2.6.1. Human–Machine Interface

The development in MATLAB included the creation of an interface that facilitates communication between the virtual model and the physical prototype of the manipulator. This interface allows real-time monitoring and extraction of kinematic data, ensuring that the operator can observe and analyze the system’s behavior in real time.
The interface provides bidirectional communication, allowing both the sending of commands to the manipulator and the reception of data from it. Additionally, it includes analysis tools to compare the simulated data with those obtained from the real system. This ensures the integration of the digital twin with the physical system, enabling adjustments and improvements in the manipulator’s control based on accurate and up-to-date data.

2.6.2. Electronic Communication System

The electronic communication system of the 2RRR manipulator comprises an ATMEGA2560 microcontroller (Arduino, Turin, Italy) and Dynamixel MX64 servomotors (Robotis, California, EEUU), interfaced through a Smile Robotics Dynamixel Shield. The system also includes a power supply, a voltage regulator, and a relay for the end effector. Figure 8 shows the software–hardware communication flow and illustrates the interaction between the virtual environment, the microcontroller, and the hardware components of the manipulator. The MATLAB environment generates trajectory and control commands, which were transferred to the Arduino MEGA 2560 microcontroller. This microcontroller is responsible for executing kinematic calculations, controlling motor movements, and managing system operations. Additionally, the Dynamixel motors provided real-time feedback on angular positions, which were sent back to MATLAB to determine the manipulator’s final position using the kinematic model. The communication loop allows synchronized execution of trajectories with the physical prototype.
The microcontroller utilizes a switch-case algorithm to decode and execute received instructions. To prevent trajectory execution from being interrupted by the reception of new parameters, the inverse kinematic data vectors were pre-stored in the microcontroller.
During the development of the digital twin, trajectories were simulated in the virtual model to validate its ability to reach desired points without encountering singular configurations. The simulations considered the physical and electronic constraints of the actuators and control boards, resulting in a motion-position relationship engine. Displacement and angular velocity data obtained during simulations were exported in CSV format and transmitted to the HMI, which served as input for the microcontroller to execute the trajectory instructions.
Figure 9 shows the configuration and operation diagram of the manipulator. The system was powered by a 12V power supply (1). The Arduino MEGA 2560 and Dynamixel Shield (2) managed the manipulator’s movements by controlling the Dynamixel MX-64 motors (3). A relay module (4) activated and deactivated the DC-DC LM2596 Step-Down converter (5), which regulated the power supplied to the laser system (6) for trajectory tracing. This configuration enables real-time control of the laser and actuators through coordinated software and hardware interaction.
The trajectory transmission and monitoring process, managed by Algorithm 1, ensures smooth execution of the manipulator’s motion:
Algorithm 1: Trajectory transmission and monitoring
1:      Initialization: t 0 0 ,   L 1 0
2:      while samples sent < vector size do
3:                                Read the microcontroller’s internal clock and store in variable t 0
4:                                Send movement instruction
5:                                Take readings from the servomotors
6:                                Send data to the interface
7:                                Increment the sample sent counter by one
8:      while L 1 < : t 0   + sampling time do:
9: Read the microcontroller’s internal clock and store in L 1
10: Wait for the sampling time
11:                                end while
12:      end while
The kinematic control architecture (Figure 10) integrated design and analysis tools to generate inverse kinematic solutions. This architecture enabled the calculation of joint coordinates required for the manipulator to follow trajectories defined in the virtual model. The trajectory data were transmitted from the virtual model to the microcontroller, ensuring precise control and synchronization between the digital twin and the physical prototype.

3. Results and Discussion

To validate the digital twin, the designed trajectory in the virtual model was compared with the one executed by the physical prototype using a knife-handle type trajectory. Inverse kinematic data and actuator readings were analyzed using trajectory graphs, position and angular velocity charts, and statistical tests.
The trajectory was set for a clockwise path of six seconds with a cycloidal profile, capturing results at 25 frames per second. Figure 11 and Figure 12 confirm that the positions and velocities are within permissible limits, and the sampling time ensures data transmission.
When analyzing two datasets to determine if one has greater variability than the other, an equality of variances test, a key statistical tool, was used. This test evaluates whether the variability within the datasets is similar, using a significance level of 5%, which implies operating with 95 % confidence, a standard recommended by various authors for result validation. According to the results presented in Table 1 and Table 2, the obtained p-values are greater than the 5 % significance level, and the confidence interval includes the number one, specified in the null hypothesis of equal variances. A high p-value suggests strong evidence in favor of not rejecting the null hypothesis, implying no statistically significant difference in the variability between the data of the trajectory designed in the virtual model and the data obtained from the trajectory executed by the physical prototype.
Figure 13 illustrates the trajectory traced by the prototype’s laser compared to the trajectory calculated by the virtual model. The high similarity between the two trajectories confirms that the digital twin accurately reproduces the behavior of the physical prototype. This validation highlights the system’s excellent performance, demonstrating precise alignment between the virtual and physical environments.
The integration of a digital twin with a physical prototype demonstrated its effectiveness as a tool for trajectory planning and control in robotic manipulators, aligning with the growing emphasis on digital twins in Industry 4.0. The comparison of trajectories in the virtual and physical environments revealed a high level of fidelity, as evidenced by statistical tests confirming the equivalence of variances and means for both actuator positions and velocities. This outcome underscores the reliability of the digital twin in replicating real-world behavior, validating its capability for precise synchronization and control. Furthermore, the use of cycloidal profiles in trajectory generation ensured smooth transitions, minimizing abrupt changes in angular velocity and reducing the mechanical strain on the manipulator’s joints. These findings highlight the importance of integrating digital twin technology into the development cycle, enabling iterative design and testing processes that optimize performance before deployment.
The proposed control architecture and human–machine interface enhanced the overall system performance by enabling real-time monitoring, bidirectional communication, and the seamless integration of simulated and experimental data. By leveraging the digital twin, trajectory errors were minimized through iterative adjustments, which were validated under various operational conditions, including different loads and friction levels. This adaptability demonstrates the robustness of the system for industrial applications, where dynamic environments demand precise and reliable control mechanisms. The application of statistical tools, such as variance and mean comparisons, not only provided quantitative validation of the system’s performance but also established a rigorous framework for future evaluations of robotic systems. These results contribute to the existing body of knowledge on digital twin technology, emphasizing its potential to improve the accuracy, efficiency, and adaptability of modern robotic systems.
To further validate the real-time adaptability of the digital twin, controlled external disturbances were introduced during the manipulator’s operation. These disturbances included applying small external forces to the joints to assess how the system compensates for mechanical perturbations and varying the manipulator’s loading conditions to analyze its response under different operational constraints. In both cases, the system successfully adjusted the control signals sent to the actuators, allowing the manipulator to correct deviations and maintain its planned trajectory within acceptable error margins. These findings confirm the system’s ability to dynamically respond to unforeseen interferences, beyond just compensating for mechanical inaccuracies or servo drive signal processing errors.
The developed digital twin presents high potential for implementation in industrial environments, particularly in tasks that require the precision and advanced control of parallel manipulators. To improve the accuracy and adaptability of the proposed system, it is feasible to propose the incorporation of computer vision-based methodologies that provide real-time feedback on the position of both the manipulator and its digital twin. In particular, implementing Eye-to-Hand visual servo control would enhance target localization, reducing execution errors and improving the correlation between the ideal trajectory generated in the virtual environment and the trajectory executed by the physical system. This integration would be especially valuable in automated manufacturing processes, where precision and stability in manipulator control are critical factors for performance.
Beyond trajectory optimization, the digital twin can also support quality control, deviation detection, and predictive maintenance by enabling the continuous real-time monitoring of the manipulator. Additionally, this system can serve as a training tool, allowing operators to safely simulate and test robotic operations without risks, thus facilitating the adoption of Industry 4.0 technologies and improving overall efficiency in production environments.

4. Conclusions

This study developed and validated a digital twin of the 2RRR planar parallel manipulator, integrating CAD software (SolidWorks 2024), real-time monitoring tools, and an interactive graphical interface for trajectory generation and system control. The digital twin allowed seamless communication with the physical prototype through a scalable electronic communication system that utilized microcontrollers, servomotors, and specialized algorithms. This integration enabled real-time trajectory execution, ensuring precision and adaptability in the manipulator’s operations.
The results of the statistical analysis confirmed a high level of concordance between the angular movements of the digital model and the physical prototype, despite minor differences. Hypothesis tests, conducted with a 95% confidence level, validated the statistical equivalence of position and velocity data between the virtual and physical systems. These findings underscore the reliability of the digital twin in replicating the behavior of the physical prototype. The observed differences in angular velocities were attributed to the dynamics of the system, including the limitations of the servomotors’ precision and potential calibration errors, which may affect the exact reproduction of trajectories.
The developed system demonstrates the potential of digital twin technology for improving the design, control, and validation of robotic systems. By enabling iterative testing and real-time adjustments, the digital twin enhances efficiency, reduces mechanical strain, and facilitates the optimization of robotic trajectories under various conditions. This work contributes to the growing body of knowledge on digital twins in robotics and highlights their role as a reliable and effective tool for trajectory planning, system validation, and performance improvement in industrial applications.

Author Contributions

Conceptualization, C.A.M.-M., N.I.M.P., K.D.O.-Q., G.A.H.-L., L.V.V.-U. and G.C.D.-P.; methodology, C.A.M.-M., N.I.M.P., K.D.O.-Q., G.A.H.-L., L.V.V.-U. and G.C.D.-P.; software, C.A.M.-M., N.I.M.P., K.D.O.-Q., G.A.H.-L., L.V.V.-U. and G.C.D.-P.; validation, C.A.M.-M., N.I.M.P., K.D.O.-Q., G.A.H.-L., L.V.V.-U., G.C.D.-P., E.A.A.-E. and D.V.; formal analysis, C.A.M.-M., N.I.M.P., K.D.O.-Q., G.A.H.-L., L.V.V.-U., G.C.D.-P., E.A.A.-E. and D.V.; investigation, C.A.M.-M., N.I.M.P., K.D.O.-Q., G.A.H.-L., L.V.V.-U. and G.C.D.-P.; resources, C.A.M.-M., N.I.M.P., K.D.O.-Q., G.A.H.-L., L.V.V.-U. and G.C.D.-P.; data curation, C.A.M.-M., G.C.D.-P., E.A.A.-E. and D.V.; writing—original draft preparation, C.A.M.-M., G.C.D.-P., E.A.A.-E. and D.V.; writing—review and editing, C.A.M.-M., G.C.D.-P., E.A.A.-E. and D.V.; visualization, C.A.M.-M., N.I.M.P., K.D.O.-Q., G.A.H.-L., L.V.V.-U., G.C.D.-P., E.A.A.-E. and D.V.; supervision, C.A.M.-M., G.A.H.-L., L.V.V.-U. and D.V.; project administration, C.A.M.-M., G.A.H.-L. and L.V.V.-U.; funding acquisition, C.A.M.-M., G.A.H.-L. and L.V.V.-U. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Universidad Tecnológica de Pereira, Colombia, through the Vicerrectoría de Investigación, Innovación y Extensión (Research project “8-23-1”) entitled “Desarrollo de una Metodología para la Implementación de Gemelos Digitales en Procesos de Monitoreo y Gestión de la Integridad Mecánica de Activos”.

Data Availability Statement

Data available upon request from the authors.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Thelen, A.; Zhang, X.; Fink, O.; Lu, Y.; Ghosh, S.; Youn, B.D.; Todd, M.D.; Mahadevan, S.; Hu, C.; Hu, Z. A comprehensive review of digital twin—Part 1: Modeling and twinning enabling technologies. Struct. Multidiscip. Optim. 2022, 65, 354. [Google Scholar] [CrossRef]
  2. Zeb, S.; Mahmood, A.; Hassan, S.A.; Piran, J.; Gidlund, M.; Guizani, M. Industrial digital twins at the nexus of NextG wireless networks and computational intelligence: A survey. J. Netw. Comput. Appl. 2022, 200, 103309. [Google Scholar] [CrossRef]
  3. Mihai, S.; Yaqoob, M.; Hung, D.V.; Davis, W.; Towakel, P.; Raza, M.; Karamanoglu, M.; Barn, B.; Shetve, D.; Prasad, R.V.; et al. Digital twins: A survey on enabling technologies, challenges, trends, and future prospects. IEEE Commun. Surv. Tutor. 2022, 24, 2255–2291. [Google Scholar] [CrossRef]
  4. Zhang, Z.; Wen, F.; Sun, Z.; Guo, X.; He, T.; Lee, C. Artificial intelligence-enabled sensing technologies in the 5G/internet of things era: From virtual reality/augmented reality to the digital twin. Adv. Intell. Syst. 2022, 4, 2100228. [Google Scholar] [CrossRef]
  5. Min, Q.; Lu, Y.; Liu, Z.; Su, C.; Wang, B. Machine learning-based digital twin framework for production optimization in the petrochemical industry. Int. J. Inf. Manag. 2019, 49, 502–519. [Google Scholar] [CrossRef]
  6. Wang, P.; Luo, M. A digital twin-based big data virtual and real fusion learning reference framework supported by industrial internet towards smart manufacturing. J. Manuf. Syst. 2021, 58, 16–32. [Google Scholar] [CrossRef]
  7. Tao, F.; Xiao, B.; Qi, Q.; Cheng, J.; Ji, P. Digital twin modeling. J. Manuf. Syst. 2022, 64, 372–389. [Google Scholar] [CrossRef]
  8. Grieves, M.; Vickers, J. Digital twin: Mitigating unpredictable, undesirable emergent behavior in complex systems. In Transdisciplinary Perspectives on Complex Systems: New Findings and Approaches; Kahlen, F.J., Flumerfelt, S., Alves, A., Eds.; Springer: Cham, Switzerland, 2017; pp. 85–113. [Google Scholar] [CrossRef]
  9. Huang, Z.; Lu, Y.; Liu, Z.; Su, C.; Wang, B. A survey on AI-driven digital twins in industry 4.0: Smart manufacturing and advanced robotics. Sensors 2021, 21, 6340. [Google Scholar] [CrossRef]
  10. Soori, M.; Arezoo, B.; Dastres, R. Digital twin for smart manufacturing: A review. Sustain. Manuf. Serv. Econ. 2023, 1, 100017. [Google Scholar] [CrossRef]
  11. Lattanzi, L.; Rafaelli, R.; Peruzzni, M.; Pellicciari, M. Digital twin for smart manufacturing: A review of concepts towards practical industrial implementation. Int. J. Comput. Integr. Manuf. 2021, 34, 567–597. [Google Scholar] [CrossRef]
  12. Zafar, M.H.; Langas, E.F.; Sanfilippo, F. Exploring the synergies between collaborative robotics, digital twins, augmentation, and industry 5.0 for smart manufacturing: A state-of-the-art review. Robot. Comput. Integr. Manuf. 2024, 89, 102769. [Google Scholar] [CrossRef]
  13. Coronado, E.; Ueshiba, T.; Ramirez-Alpiraz, I.G. A path to Industry 5.0 digital twins for human-robot collaboration by bridging NEP+ and ROS. Robotics 2024, 13, 28. [Google Scholar] [CrossRef]
  14. Rocca, R.; Rosa, P.; Sasssanelli, C.; Fumagalli, L.; Terzi, S. Integrating virtual reality and digital twin in circular economy practices: A laboratory application case. Sustainability 2020, 12, 2286. [Google Scholar] [CrossRef]
  15. Koubaa, A. Robot Operating System (ROS); Springer: Cham, Switzerland, 2017; Volume 1. [Google Scholar] [CrossRef]
  16. Chinnasamy, S.K.; Sura, H.P.; Saleem, A.; Kathirvel, A.; Rangan, P. Digital twin of robot manipulator using ROS. AIP Conf. Proc. 2023, 2946, 40004. [Google Scholar] [CrossRef]
  17. Kousi, N.; Gkournelos, C.; Aivaliotis, S.; Giannoulis, C.; Michalos, G.; Makris, S. Digital twin for adaptation of robots’ behavior in flexible robotic assembly lines. Procedia Manuf. 2019, 28, 121–126. [Google Scholar] [CrossRef]
  18. Bilberg, A.; Malik, A.A. Digital twin driven human-robot collaborative assembly. CIRP Ann. 2019, 68, 499–502. [Google Scholar] [CrossRef]
  19. Agostinelli, S.; Cumo, F.; Guidi, G.; Tomazzoli, C. Cyber-physical systems improving building energy management: Digital twin and artificial intelligence. Energies 2021, 14, 2338. [Google Scholar] [CrossRef]
  20. Kaewunruen, S.; Rungskunroch, P.; Welsh, J. A Digital-Twin Evaluation of Net Zero Energy Building for Existing BuildingsSustainability. Buildings 2018, 11, 159. [Google Scholar] [CrossRef]
  21. Kamyabi, L.; Lie, T.T.; Madanian, S. Applications of digital twins in power systems: A perspective. Trans. Energy Syst. Eng. Appl. 2022, 3, 1–9. [Google Scholar] [CrossRef]
  22. Allevato, A.D.; Short, E.S.; Pryor, M.; Thomaz, A. Iterative residual tuning for system identification and sim-to-real robot learning. Auton. Robots 2020, 44, 1167–1182. [Google Scholar] [CrossRef]
  23. Castellani, S.; Schmitt, S.; Squartini, S. Real-world anomaly detection by using digital twin systems and weakly supervised learning. IEEE Trans. Ind. Inform. 2020, 17, 4733–4742. [Google Scholar] [CrossRef]
  24. Huang, T.; Hou, G. Parallel control strategy for flexible operation of ultra-supercritical units under digital twin theory. In Proceedings of the 2022 IEEE 2nd International Conference on Digital Twins and Parallel Intelligence (DTPI), Boston, MA, USA, 24–28 October 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 124–129. [Google Scholar] [CrossRef]
  25. Viola, J.; Chen, Y. Parallel self-optimizing control framework for digital twin-enabled smart control engineering. In Proceedings of the 2021 IEEE 1st International Conference on Digital Twins and Parallel Intelligence (DTPI), Beijing, China, 15 July–15 August 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 85–92. [Google Scholar] [CrossRef]
  26. Song, X.; Zhao, Y.; Jin, L.; Zhang, P.; Chen, C. Dynamic feedforward control in decoupling space for a four-degree-of-freedom parallel robot. Int. J. Adv. Robot. Syst. 2019, 16, 1729881418820451. [Google Scholar] [CrossRef]
  27. Liu, X.; Li, G.; Xiang, F.; Tao, B.; Jiang, G. Web-Based Human–Robot Collaboration Digital Twin Management and Control System. Adv. Eng. Inform. 2024, 62, 102907. [Google Scholar] [CrossRef]
  28. Li, X.; He, B.; Wang, Z.; Zhou, Y.; Li, G.; Zhu, Z. A Digital Twin System for Task-Replanning and Human-Robot Control of Robot Manipulation. Adv. Eng. Inform. 2024, 62, 102570. [Google Scholar] [CrossRef]
  29. Touhid, M.T.B.; Zhu, E.; Ehteshamfar, M.V.; Yang, S. Synchronization Evaluation of Digital Twin for a Robotic Assembly System Using Computer Vision. Manuf. Lett. 2024, 41, 1257–1263. [Google Scholar] [CrossRef]
  30. Yun, J.; Li, G.; Jiang, D.; Xu, M.; Xiang, F.; Huang, L.; Jiang, G.; Liu, X.; Xie, Y.; Tao, B.; et al. Digital Twin Model Construction of Robot and Multi-Object under Stacking Environment for Grasping Planning. Appl. Soft Comput. 2023, 149, 111005. [Google Scholar] [CrossRef]
  31. Daraviña, G.C.; Valencia, J.L.; Holguin, G.A.; Quintero, H.F.; Ariza, E.A.; Vergara, D. Visual Servoing and Kalman Filter Applied to Parallel Manipulator 3-RRR. Electronics 2024, 13, 2703. [Google Scholar] [CrossRef]
Figure 1. Two-degree-of-freedom planar parallel manipulator 2-RRR.
Figure 1. Two-degree-of-freedom planar parallel manipulator 2-RRR.
Futureinternet 17 00146 g001
Figure 2. Assembly modes: (a) upper configuration and (b) lower configuration.
Figure 2. Assembly modes: (a) upper configuration and (b) lower configuration.
Futureinternet 17 00146 g002
Figure 3. Schematic of the parallel plane manipulator for the study of inverse kinematics. Points A and E are the fixed base joints of the manipulator; point C ( x c , y c ) is the end-effector or terminal point. Links L 1 , L 2 , L 3 , and L 4 connect the joints AB, BC, DC, and DE, respectively. The dashed lines L A C and L E C represent the distances from point C to base points A and E. The angles θ 1 and θ 4 correspond to the input joint angles at the actuators located at A and E. Angles β 1 and ϕ 1 are intermediate angles used for computing θ 1 , and β 4 and ϕ 4 are used similarly for θ 4 .
Figure 3. Schematic of the parallel plane manipulator for the study of inverse kinematics. Points A and E are the fixed base joints of the manipulator; point C ( x c , y c ) is the end-effector or terminal point. Links L 1 , L 2 , L 3 , and L 4 connect the joints AB, BC, DC, and DE, respectively. The dashed lines L A C and L E C represent the distances from point C to base points A and E. The angles θ 1 and θ 4 correspond to the input joint angles at the actuators located at A and E. Angles β 1 and ϕ 1 are intermediate angles used for computing θ 1 , and β 4 and ϕ 4 are used similarly for θ 4 .
Futureinternet 17 00146 g003
Figure 4. Four working modes of the manipulator: (a) “+ −” model, (b) “− −” model, (c) “+ +” model, and (d) “− +” model. Points A and E represent the base joints of the manipulator, while points B and D are intermediate joints in each kinematic chain. Point C  x c , y c denotes the end-effector or tool center point of the manipulator. The “+” and “−” signs correspond to the two possible angular configurations ( θ 1 = β 1 ± φ 1 ,   θ 4 = β 4 ± φ 4 ) derived from the inverse kinematics, leading to four different assembly modes.
Figure 4. Four working modes of the manipulator: (a) “+ −” model, (b) “− −” model, (c) “+ +” model, and (d) “− +” model. Points A and E represent the base joints of the manipulator, while points B and D are intermediate joints in each kinematic chain. Point C  x c , y c denotes the end-effector or tool center point of the manipulator. The “+” and “−” signs correspond to the two possible angular configurations ( θ 1 = β 1 ± φ 1 ,   θ 4 = β 4 ± φ 4 ) derived from the inverse kinematics, leading to four different assembly modes.
Futureinternet 17 00146 g004
Figure 5. The shaded area represents the theoretical workspace of the 2-RRR planar parallel manipulator, determined by the intersection of the two workspace regions defined by Equations (38) and (40). Points A and E represent the fixed base joints of the manipulator. The curves C 1 o and C 1 i define the outer and inner boundaries, respectively, of the reachable region for the first kinematic chain (A–B–C). Similarly, curves C 2 o and C 2 i represent the outer and inner limits for the second kinematic chain (E–D–C). The intersection of these regions defines the total workspace where the end-effector (point C) can be located.
Figure 5. The shaded area represents the theoretical workspace of the 2-RRR planar parallel manipulator, determined by the intersection of the two workspace regions defined by Equations (38) and (40). Points A and E represent the fixed base joints of the manipulator. The curves C 1 o and C 1 i define the outer and inner boundaries, respectively, of the reachable region for the first kinematic chain (A–B–C). Similarly, curves C 2 o and C 2 i represent the outer and inner limits for the second kinematic chain (E–D–C). The intersection of these regions defines the total workspace where the end-effector (point C) can be located.
Futureinternet 17 00146 g005
Figure 6. Virtual model of the 2RRR manipulator designed in ROS/Gazebo. The figure shows the 2-RRR kinematic chains forming the parallel manipulator, with the rotational joints and links clearly represented. The base actuators are shown at both ends of the model. The orange line illustrates the planned trajectory for the end-effector, generated and visualized in the simulation environment.
Figure 6. Virtual model of the 2RRR manipulator designed in ROS/Gazebo. The figure shows the 2-RRR kinematic chains forming the parallel manipulator, with the rotational joints and links clearly represented. The base actuators are shown at both ends of the model. The orange line illustrates the planned trajectory for the end-effector, generated and visualized in the simulation environment.
Futureinternet 17 00146 g006
Figure 7. Top view of the physical 2RRR manipulator. The image shows the aluminum links forming the closed kinematic chains, connected by rotational joints. The base contains two Dynamixel MX-64 servo motors responsible for actuation. The electronic control system on the right includes a Smile Robotics Dynamixel shield, an Arduino MEGA 2560 microcontroller, a DC-DC step-down converter, and a relay module for laser control.
Figure 7. Top view of the physical 2RRR manipulator. The image shows the aluminum links forming the closed kinematic chains, connected by rotational joints. The base contains two Dynamixel MX-64 servo motors responsible for actuation. The electronic control system on the right includes a Smile Robotics Dynamixel shield, an Arduino MEGA 2560 microcontroller, a DC-DC step-down converter, and a relay module for laser control.
Futureinternet 17 00146 g007
Figure 8. System block diagram of the electronic communication system. Arrows indicate the flow of control signals, power supply, and feedback data. The Arduino Mega 2560, combined with the Dynamixel Shield (Smile Robotics), sends commands to the actuators and receives sensor feedback. A relay and voltage regulator manages the power to the laser tool, controlled via the interface developed in MATLAB.
Figure 8. System block diagram of the electronic communication system. Arrows indicate the flow of control signals, power supply, and feedback data. The Arduino Mega 2560, combined with the Dynamixel Shield (Smile Robotics), sends commands to the actuators and receives sensor feedback. A relay and voltage regulator manages the power to the laser tool, controlled via the interface developed in MATLAB.
Futureinternet 17 00146 g008
Figure 9. Connection diagram of the manipulator’s components. The diagram shows the main hardware elements, including the 12V 3A power supply (1), the Arduino Mega 2560 and Smile Robotics Dynamixel Shield (2), the Dynamixel MX-64 motors (3), a relay module (4), a DC-DC converter (5), and the laser pointer (6). The arrows indicate the direction of electrical power and digital signal flow, with red lines representing power supply lines, blue lines representing data communication (TTL), and black lines indicating ground connections.
Figure 9. Connection diagram of the manipulator’s components. The diagram shows the main hardware elements, including the 12V 3A power supply (1), the Arduino Mega 2560 and Smile Robotics Dynamixel Shield (2), the Dynamixel MX-64 motors (3), a relay module (4), a DC-DC converter (5), and the laser pointer (6). The arrows indicate the direction of electrical power and digital signal flow, with red lines representing power supply lines, blue lines representing data communication (TTL), and black lines indicating ground connections.
Futureinternet 17 00146 g009
Figure 10. Kinematic control architecture illustrating the steps involved in trajectory control of the 2-RRR manipulator. The process begins with trajectory design, which is split into defining the accuracy level (frames per second) and inverse kinematic extraction. These components feed into trajectory transmission and monitoring and direct kinematic calculation, respectively. Arrows indicate the flow of data and control signals through the system. The architecture concludes with the visualization and actuator control stages, where real-time position and performance are evaluated and adjusted accordingly.
Figure 10. Kinematic control architecture illustrating the steps involved in trajectory control of the 2-RRR manipulator. The process begins with trajectory design, which is split into defining the accuracy level (frames per second) and inverse kinematic extraction. These components feed into trajectory transmission and monitoring and direct kinematic calculation, respectively. Arrows indicate the flow of data and control signals through the system. The architecture concludes with the visualization and actuator control stages, where real-time position and performance are evaluated and adjusted accordingly.
Futureinternet 17 00146 g010
Figure 11. Angular position.
Figure 11. Angular position.
Futureinternet 17 00146 g011
Figure 12. Angular velocity.
Figure 12. Angular velocity.
Futureinternet 17 00146 g012
Figure 13. Trajectory traced.
Figure 13. Trajectory traced.
Futureinternet 17 00146 g013
Table 1. Comparison of variances.
Table 1. Comparison of variances.
Actuator PositionsActuator Velocities
Null hypothesis H 0 : σ x 2 σ y 2 = 1 H 0 : σ x 2 σ y 2 = 1
Alternative hypothesis H A : σ x 2 σ y 2 1 H A : σ x 2 σ y 2 1
Confidence interval[0.740; 1.408][0.809; 1.538]
p-value0.8970.503
Significance level0.0500.050
ResultThe null hypothesis is not rejectedThe null hypothesis is not rejected
Table 2. Comparison of means.
Table 2. Comparison of means.
Actuator PositionsActuator Velocities
Null hypothesis H 0 : μ x μ y = 0 H 0 : μ x μ y = 0
Alternative hypothesis H A : μ x μ y 0 H A : μ x μ y 0
Confidence interval[−2.14; 1.984][−0.513; 3.226]
p-value0.8170.154
Significance level0.0500.050
ResultThe null hypothesis is not rejectedThe null hypothesis is not rejected
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Mesa-Montoya, C.A.; Peláez, N.I.M.; Ortega-Quiñones, K.D.; Holguín-Londoño, G.A.; Vanegas-Useche, L.V.; Daraviña-Peña, G.C.; Ariza-Echeverri, E.A.; Vergara, D. Integration of a Digital Twin Framework for Trajectory Control of a 2RRR Planar Parallel Manipulator Using ROS/Gazebo and MATLAB. Future Internet 2025, 17, 146. https://doi.org/10.3390/fi17040146

AMA Style

Mesa-Montoya CA, Peláez NIM, Ortega-Quiñones KD, Holguín-Londoño GA, Vanegas-Useche LV, Daraviña-Peña GC, Ariza-Echeverri EA, Vergara D. Integration of a Digital Twin Framework for Trajectory Control of a 2RRR Planar Parallel Manipulator Using ROS/Gazebo and MATLAB. Future Internet. 2025; 17(4):146. https://doi.org/10.3390/fi17040146

Chicago/Turabian Style

Mesa-Montoya, Carlos Andrés, Néstor Iván Marín Peláez, Kevin David Ortega-Quiñones, German Andrés Holguín-Londoño, Libardo Vicente Vanegas-Useche, Gian Carlo Daraviña-Peña, Edwan Anderson Ariza-Echeverri, and Diego Vergara. 2025. "Integration of a Digital Twin Framework for Trajectory Control of a 2RRR Planar Parallel Manipulator Using ROS/Gazebo and MATLAB" Future Internet 17, no. 4: 146. https://doi.org/10.3390/fi17040146

APA Style

Mesa-Montoya, C. A., Peláez, N. I. M., Ortega-Quiñones, K. D., Holguín-Londoño, G. A., Vanegas-Useche, L. V., Daraviña-Peña, G. C., Ariza-Echeverri, E. A., & Vergara, D. (2025). Integration of a Digital Twin Framework for Trajectory Control of a 2RRR Planar Parallel Manipulator Using ROS/Gazebo and MATLAB. Future Internet, 17(4), 146. https://doi.org/10.3390/fi17040146

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop