Next Article in Journal
A Fast Globally Convergent Particle Swarm Optimization for Defect Profile Inversion Using MFL Detector
Previous Article in Journal
Speed Tracking for IFOC Induction Motor Speed Control Using Hybrid Sensorless Speed Estimator Based on Flux Error for Electric Vehicles Application
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on a Visual Servoing Control Method Based on Perspective Transformation under Spatial Constraint

School of Electrical and Electrical Engineering, Shandong University of Technology, Zibo 255000, China
Machines 2022, 10(11), 1090; https://doi.org/10.3390/machines10111090
Submission received: 19 October 2022 / Revised: 6 November 2022 / Accepted: 14 November 2022 / Published: 18 November 2022
(This article belongs to the Topic Smart Manufacturing and Industry 5.0)

Abstract

:
Visual servoing has been widely employed in robotic control to increase the flexibility and precision of a robotic arm. When the end-effector of the robotic arm needs to be moved to a spatial point without a coordinate, the conventional visual servoing control method has difficulty performing the task. The present work describes space constraint challenges in a visual servoing system by introducing an assembly node and then presents a two-stage visual servoing control approach based on perspective transformation. A virtual image plane is constructed using a calibration-derived homography matrix. The assembly node, as well as other objects, are projected into the plane after that. Second, the controller drives the robotic arm by tracking the projections in the virtual image plane and adjusting the position and attitude of the workpiece accordingly. Three simple image features are combined into a composite image feature, and an active disturbance rejection controller (ADRC) is established to improve the robotic arm’s motion sensitivity. Real-time simulations and experiments employing a robotic vision system with an eye-to-hand configuration are used to validate the effectiveness of the presented method. The results show that the robotic arm can move the workpiece to the desired position without using coordinates.

1. Introduction

Image-based visual servoing (IBVS) is a humanoid control method for a robotic arm [1]. The main purpose of IBVS is to design a global controller that employs visual feedback signal to generate a screw velocity as the control input for the robotic arm, resulting in the desired joint velocity. As a result, the robotic arm will become faster and more dexterous in applications such as robotic assembly, unmanned aerial vehicles [2], and robotized tracking [3,4]. However, the relationship between the robotic arm’s motion and the evolution of visual input is non-linear. In contrast, the model used in a controller is a linearization result of the robotic system, making it difficult to respond effectively to some unique circumstances. For instance, it is not easy to obtain an effective control signal for the robotic arm using existing methods without complete information [5]. Furthermore, another well-known problem emerges in the case of significant rotation about the target, where the target moves away from the desired position and then back again [6]. This phenomenon may cause the target to move out of view (FOV). However, to calculate the feedback signal during the servoing process, the target must be confined inside the FOV of the camera. Using classical control theories, it is not easy to achieve, especially when substantial rotational motion is involved [7,8,9]. Several constraints must be imposed on the controller to ensure that the robotic arm follows the desired trajectory to avoid the scenarios described above.
The constraints, which refer to the limitations imposed on the motion of the robotic arm by the camera’s FOV and equipment requirements, are issues to consider when designing a visual servoing controller. Two widely used techniques for incorporating constraints into controllers are model predictive control (MPC) and trajectory planning [10,11]. The MPC is primarily used in the field of industry. Its premise is to solve an online finite horizon open-loop-constrained optimization problem by combining acquired image information with system constraints [12]. The resulting sequence is then considered the system control signals. An MPC method based on the discrete-time visual servoing model was published in [13,14,15,16] to obtain the convergence of robot motion by non-linear constraint optimization. The MPC method allows the robotic arm to move closer to a straight line, keeping the end-effector in the camera’s field of view and preventing the controller from generating signals that violate physical constraints [17]. Moreover, the control signal produced by the MPC controller cannot cause robotic joint limits to be exceeded [18]. However, in the presence of obstacles, the controller based on MPC cannot actively modify the trajectory, implying that the robotic arm cannot be driven to follow a non-linear trajectory.
The other approach for effectively solving the constraint problem is trajectory planning, which involves creating an executable image trajectory within the constraints of a dynamic, unstructured environment, and then driving the robotic arm along the planned trajectory to accomplish the task [19,20,21]. Trajectory planning methods employed in visual servoing can be classified into three categories based on the features and assumptions [22]. The first one is to generate an image trajectory initially using polar geometry or projective geometry, then a controller drives the robotic arm along this image trajectory [23,24,25]. The end-effector can travel in a straight line in the workspace and is always in the FOV of the camera, thereby dealing with the issue of system constraint. This method, however, is not always practical, and it is challenging to create a trajectory when we are unable to obtain the projection of the desired position. The second method employs a potential artificial field [26]. The controller uses the sum of potential energy to drive the robotic arm away from the obstruction and toward the target position [27]. It is worth noting that different approaches are required to overcome the problem of local minimization. The final one is to use optimization algorithms to find an optimized spatial trajectory for the robotic arm to reach the target position swiftly [28,29,30]. On the other hand, the optimization-based approach needs precise environmental data and camera models. In many cases, this is impossible to achieve [31].
It should be noted that when a robotic arm is required to transfer a workpiece to an unmarked position under uncalibrated conditions, these existing approaches are ineffective owing to a lack of critical position information. This work first establishes a geometric model to describe the spatial constraint. Then a visual servo control approach based on perspective transformation is proposed to handle the problem successfully. The central concept of the proposed method is to create a two-dimensional virtual image plane and then project all the targets in the plane. By tracking the image features in the virtual image plane, the workpiece will be moved to the unmarked desired position. The rest of this research is organized as follows. In Section 2, a geometric model of spatial constraint is developed to forecast the future behavior of a robotic arm. Then, a visual servo control method based on perspective transformation is proposed in Section 3 and Section 4. The simulations and experiments are conducted in Section 5 and Section 6 to demonstrate the effectiveness of the proposed method. Finally, Section 7 draws conclusions.

2. Problem Statements

Two automated assembly procedures with a robotic arm are depicted in Figure 1. An air compressor assembly in an outside air conditioning production line is depicted in Figure 1a Four pre-drilled screw holes in the air compressor should be passed vertically through the stud on the base plate to finish the assembly. Figure 1b depicts a rectangular workpiece assembly that must be inserted into a slot.
A feature that all of the items represented in Figure 1 have in common is that the interface between the workpieces and the base plates has been designed in a unique form to ensure the robustness of the products. As a result, the workpieces should be moved to a spatial node in a confident attitude and then moved perpendicular to the base plates to finish the assembly. The constraint imposed by the interface can be defined as a spatial constraint. The spatial node satisfying the spatial constraint can also be regarded as an assembly node. Without calibration, it is difficult for an IBVS controller to obtain any position information about the assembly node, making it difficult for the robotic arm to reach the assembly node precisely. As seen above, while developing an IBVS assembly controller, the issue of spatial constraint must be addressed.
A more intuitive geometric model was constructed to better illustrate the spatial constraint in IBVS, as shown in Figure 2. There is a purple workpiece with three through holes and a base plate with three columns. The holes have the same spatial relationship as the columns, allowing the workpiece to be securely connected to the base plate. Additionally, 1 , 2 , and 3 are three assembly nodes, each with its own individual curve. The yellow curve depicts the intended trajectory of the robotic arm. In contrast, the green curve indicates the actual trajectory of the robotic arm. While the yellow curve is the most energy-efficient path between the workpiece and the base plate, it does not meet the spatial constraint. In comparison, the red-blue trajectories, while longer, are consistent with our expectations for this assembly task. The spatial constraint could be repeated. When a workpiece reaches the assembly nodes i confidently, it must be moved closer to the base plate in a perpendicular direction to complete the assembly task.
Notably, the number of assembly nodes is not constant, resulting in diverse assembly trajectories. These trajectories pass through the assembly nodes i , independent of their morphologies. Each assembly trajectory can be divided into two parts, denoted by the blue and red curves. These parts can be referred to as the transfer and docking trajectories. The shape of the transfer trajectory is unknown, whereas the docking trajectory is a straight line. Suppose the workpiece can be brought smoothly to the assembly node confidently. In that case, the workpiece and base can be docked successfully within the attitude limitation. The image features of assembly nodes, on the other hand, cannot be retrieved without calibration, as assembly nodes lack apparent identity in space.

3. Visual Servoing Control Method Based on Perspective Transformation

3.1. Methodology

A visual servo control method based on perspective transformation is presented in this research to overcome the issue of spatial constraint in IBVS. The method is divided into three steps, which are detailed below.
(1)
A virtual image plane γ ˜ is generated, and then two homography matrixes H α and H β are established.
(2)
Assuming that p i α and p i β are the projections of spatial points P i α and P i β , respectively, in an image. Then, using matrix H α to map f i α into the virtual image plane γ ˜ , a new feature f ˜ i α is created. In the same way, mapping f i β into the virtual image plane γ ˜ with H β yields a new feature f ˜ i β . When f ˜ i α = f ˜ i β , we believe that P i α deviates from P i β exclusively in the direction of the Z-axis. If F i α represents a set of feature points on the workpiece and P i β represents the corresponding feature points on the base plate, when f ˜ i α equals f ˜ i β , the workpiece has already arrived at the assembly node.
(3)
Assuming that the workpiece is located on the end-effector of a robotic arm. After that, the attitude of the end-effector is extracted, and the robotic arm is driven along a linear trajectory under the attitude, thereby docking the workpiece with the base plate.

3.2. Feasibility Analysis

The model of perspective transformation is shown in Figure 3. The world frame R r is composed of the axes X r , Y r , and Z r and the point O r . α and β are two planes which equations are shown in (1) and (2), respectively.
Z = Z α
Z = Z β
where Z α = Δ Z + Z β . In Figure 3, there are three cameras with the same internal matrix M c , which defined in (3).
M c = f / d x 0 u 0 0 f / d y v 0 0 0 1
where where f is focal length, d x and d y are the distances between adjacent pixels in the u and v axes, respectively. u 0 and v 0 are row and column numbers of the center.
The frame R s of camera s is composed of X s , Y s , and Z s axes and the point O s . Z s is not parallel to the planes. The frame R e 1 of camera e 1 is composed of the axes X e 1 , Y e 1 , Z e 1 , as well as the point O e 1 . The frame R e 2 of camera e 2 is made up of the axes X e 2 , Y e 2 , Z e 2 and the point O e 2 . Both Z e 1 and Z e 2 are parallel to α and β . I e 1 , I e 2 and I s are three image planes. P ˜ i r denotes a spatial point, which can be expressed by P e 1 and P e 2 in the frame R e 1 and R e 2 . The relation between P e 1 and P e 2 can be expressed as (4).
P e 2 = H e 1 e 2 P e 1
where
H e 1 e 2 = 1 0 0 0 0 1 0 0 0 0 1 Δ Z 0 0 0 1
It is self-evident that for any point P i β in the plane β , a corresponding point p i β in the image plane I s must exist, and the relationship between P i β and p i β can be expressed as (6).
p i β = ξ i β M c H s r P i β
where ξ i β is a scale factor. The projection points p i e 1 of p i β in I e 1 are given by (7).
p i e 1 = H e 1 s p i β ξ i e 1
where H e 1 s is a homography matrix and ξ i e 1 is a scaling factor. Similarly, for point P ˜ i r , a corresponding point p ˜ i in the image plane I s must exist, and the relationship between P ˜ i r and p ˜ i can be represented as (8).
p ˜ i = ξ i α M c H s r P ˜ i r
where ξ i β is another scaling factor. (9) can be used to describe the projection points p i e 2 of p ˜ i in I e 2 .
p i e 2 = H e 2 s p ˜ i ξ i e 2
where H e 2 s is a homography matrix. If p i e 1 equals p i e 2 , then (10) can be derived by combining (7) and (9) and simplifying.
ξ i e 2 ξ i α H e 2 s M c H s r P i = ξ i e 1 ξ i β H e 1 s M c H s r P i β
Assuming that H e 1 s and H e 2 s are selected as
H e 1 s = M c H e 1 r M c H s r 1 ξ i e 2 ξ i β H e 2 s = M c H e 2 r M c H s r 1 ξ i e 1 ξ i α
Substituting (11) into (10) yields
H e 2 r P ˜ i r = H e 1 r P i β
where H e 1 r is a transformation matrix between the frames R e 1 and R r , H e 1 r is also a transformation matrix between frames R e 2 and R r . Then, multiply the inverse of H e 2 r left by (12) to obtain (13).
P ˜ i r = H e 1 e 2 P i β
where H e 1 e 2 = ( H e 2 r ) 1 H e 1 r . The points P ˜ i r must be on the plane α according to (13). The preceding analysis demonstrates that the workpiece can be moved above the base plate when the transformation matrixes are obtained, i.e., the workpiece can be moved into the assembly node. The above analysis demonstrates the efficacy of the visual servoing control method proposed in this research based on perspective transformation.

3.3. Calculation of the Transformation Matrix

Although the transformation matrix is defined in (12), it comprises not only the intrinsic and external matrixes of the camera but also multiple scaling factors, making it difficult to calculate the matrix directly. Suppose the geometric relationship between several spacial points is known in advance. The transformation matrix can be generated using the direct linear transformation (DLT) method in conjunction with the pre-selection of calibration points. The method is detailed below.
(1)
Creating a square with a side length of d and retrieving all of its corners points P i , where P i u represents the four upper corner points, and P i d represents the four lower corner points. The corresponding image points p i u and p i d can be extracted using the image processing approaches.
(2)
A virtual image plane is created, and four image points p ˜ i forming a square are selected.
(3)
The transformational matrix H e 1 r and H e 2 r can be obtained by substituting p i u , p i d and p ˜ i DLT method, respectively.

3.4. Docking Trajectory Planning

There are two different methods for docking trajectory planning. The first way is known as the conventional method. When the workpiece reaches the assembly node, each transformation matrix is replaced with a unit matrix with the same dimension. A conventional IBVS controller drives the robotic arm to place the workpiece in the desired position. The other method can be called the attitude extraction method. When the workpiece reaches the assembly node, the attitude of the end-effector can be obtained immediately. The workpiece is moved to the desired position by driving the robotic arm along a linear trajectory within this attitude. Both methods are capable of performing the assembly task in theory. Although future motions are unaffected in the first method when the workpiece does not entirely reach the assembly node, the robotic arm cannot be driven to follow a straight trajectory due to the absence of constraint. The second method ensures that the robot arm’s trajectory is always straight, notwithstanding the possibility of assembly failure due to the lack of a correcting mechanism. Taken together, we chose the attitude extraction method overall, and one of the future goals is to improve the proposed method.

4. Design of Visual Servoing Controller Based on ADRC

4.1. Image Features Selection

Image features are critical for the visual servoing system to perform effectively, and research into practical image features is a significant focus of visual servoing technology. Although a variety of simple image features have been successfully used in the IBVS, these image features are inherently flawed. For instance, decoupling control is difficult when a controller employs point features, whereas linear features are insensitive to displacement. If numerous simple features can be combined to generate a composite image feature that retains all of the advantages of the simple image features, the system’s dynamic performance will be excellent [9]. Thus, this research chooses a composite image feature f ( x , y , A , l 1 , l 2 , l 3 , l 4 ) consisting of image moment, area, and lines. The first two components ( x , y ) are the center of mass used to describe object location. The center of mass is expressed by the first moment, which is the result of all points’ joint action, and the role of each image point at the moment is limited. When some image points are affected by noise, it does not bring a significant fluctuation to the moment. The commonly used equation for the center of mass is shown in (14).
x ¯ = i = 0 m f x i , y i x i i = 0 m f x i , y i , y ¯ = j = 0 m f x i , y i x i j = 0 m f x j , y j
The third component A is an area value. The area size is used to achieve position control when combined with image moments since it is susceptible to object depth. It is because the area reflects the “large near and small far” rule of objects. The last four components ( l 1 , l 2 , l 3 , l 4 ) are line parameters used to describe object rotation. The pose is the most challenging state to control in visual servoing due to the solid non-linear relationship between image features and spatial poses. This means we need to explore visual features that can make the robotic trajectory smoother and more robust. Many image features have been successfully used to describe the pose, and in this research, the linear feature is used to describe the pose as the most suitable. The reason for this is that the linear feature has the highest sensitivity to the pose [9], which is beneficial to improve the performance of the closed-loop system, and lines are less challenging to obtain. The linear equation can be shown in (15).
x cos θ + y sin θ = ρ
where θ is an angle between a line and x axis, and θ is the minimum distance from the origin to the line. The Jacobi matrix based on the linear feature can be expressed as [9]:
θ ˙ = L θ v x L θ v y 1 2 z c 2 1 2 z c 2 ρ 1 cos θ ρ 1 cos θ 1 v c a ω c a

4.2. Controller Design

The active disturbance rejection controller (ADRC) is a non-linear uncertain system control method based on the traditional proportional-integral-differential (PID) control method and modern control theory [32]. An ADRC should be consists of a tracking differentiator(TD), a control law of non-linear state error feedback (NLSEF), and an extended state observer(ESO). The earliest application of ADRC to visual servoing technology was by Jianbo Su [33]. The main idea of ADRC in an IBVS system is to first create a linear system model with a constant Jacobi matrix and then use the ESO and NLSEF to estimate and dynamically compensate for non-linear model and positional errors [34]. Figure 4 shows the schematic of an ADRC-based visual servoing system.
Figure 5 illustrates the structure of the composite visual feature-based ADRC used in this research. The controller receives the composite image features p i * as input, and the output u i are six-velocity signals for the robotic arm. Next, the ADRC controller is described in the following three aspects. A second-order TD chosen in this research is shown in (17).
ε 1 = z 1 ( k ) p ˜ 1 ( k ) z 1 ( k + 1 ) = z 1 ( k ) h · r · f a l ε 1 , α 1 , δ 1
There are two parameters to be adjusted in (17), which are the speed factor α 1 and the filtering factor δ 1 . α 1 determines the tracking speed. The larger the value, the faster the tracking speed of TD; δ 1 determines the tracking accuracy. The larger the value, the higher the tracking accuracy of TD. Since TD has better independence, parameter adjustment can be performed offline according to the object’s needs. The ESO is designed as shown in (18).
ε 2 = z 2 ( k ) p 2 ( k ) z 2 ( k + 1 ) = z 2 ( k ) h z 3 ( k ) b 1 · f a l ε 2 , α 2 , δ 2 + J i · u ( k + 1 ) z 3 ( k + 1 ) = z 3 ( k ) h · b 2 · f a l ε 2 , α 3 , δ 3
where ε 2 are tracking errors, z 2 is tracking signal, z 3 is the observation of disturbance; b 1 and b 2 are gains of ESO, α 2 and α 3 are nonlinear factors which values in the range ( 0 , 1 ] . The larger the values of α 2 and α 3 , the greater the nonlinearity of f a l . δ 2 and δ 3 are the widths of the linear interval of the function f a l .
The NLSEF is designed as shown in (19), and it employs non-linear feedback of errors instead of linear feedback in classical PID, which is a highly efficient control strategy. The non-linear calculation of the visual characteristic error signal using NLSEF can improve the control accuracy and robustness of the system.
ε 3 = z 1 ( k ) z 2 ( k ) u = h · k · f a l ε 3 , α 3 , δ 3 u ( k ) = J 1 u 1 z 3 1 ( k ) u 6 z 3 6 ( k )
where ε 3 are tracking errors, α 3 , ε 3 , and δ 3 are three factors of f a l . J is the image jacobi matrix and u i are desired values.

5. Simulation

5.1. Simulation Parameters

To demonstrate the efficiency of the proposed method, a visual servoing simulation system was built using a six-degree-of-freedom (DOF) robotic arm model coupled with an eye-to-hand (ETH) camera configuration. The camera was used to project numerous spatial points into the image plane, and the parameters listed in Table 1 do not apply to the visual servoing controller. For convenience, the lens distortion of the camera was neglected.
A transformation matrix of the robotic end-effector frame to the camera frame is
T e c = 1 0 0 0.01 0 1 0 0.01 0 0 1 0 0 0 0 1
The transformation matrixes H 1 and H 2 were obtained by the DLT method.
H 1 = 1.25 1.25 350 1.25 1.25 1570 0 0 1
H 2 = 1.0937 1.0937 350 1.0937 1.0937 1570 0 0 1
The simulation parameters in the ADRC controller are listed in Table 2.
In the simulation, the step of image processing was skipped. Four coplanar spatial coordinates P i with fixed relationships were used to represent a workpiece, with the starting and desired positions in the world and image frames given in Table 3. In the world frame, the coordinates of P i were unknown. However, the servoing controller knows the projection coordinates of P i in the image plane.
The steady-state error, which can be defined as (23), was used to evaluate the controller’s performance for point-to-point control. p ˜ i and p i are the projections of the desired and current positions in the image plane, respectively. When the positioning error between the current and desired positions is less than 0.05 pixels in the image, we consider the workpiece to have reached the assembly point.
E = i = 1 4 p i p ˜ i

5.2. Simulation and Discussion

In the first simulation, the efficiency of the proposed visual servoing control method based on perspective transformation was evaluated, and the results are shown in Figure 6. The spatial trajectory of the robotic arm is smooth, with no cases of camera retreat. The position error drops dramatically within the first 100 iterations, reaching a threshold of 0.05 pixels by the 158th iteration. As illustrated in the simulation results, the control method proposed in this research accomplishes the desired goal of delivering the workpiece to the assembly node in an attitude.
In the second simulation, on the other hand, the transformation matrixes H 1 and H 2 were replaced by unit matrixes of the exact dimensions while all other simulation settings remained unchanged. The results shown in Figure 7 demonstrate that the trajectory of the robotic arm is generally smooth, with few large fluctuations. However, P i reaches the target position immediately and does not pass via the assembly node, demonstrating that the conventional control method cannot resolve the spatial constraint problem.
The third simulation was performed to ensure that the method used in Section 3.4 is valid. When the workpiece reaches the assembly node, H 1 and H 2 are replaced with unit matrixes of the same size, and the docking trajectory is planned using the conventional method based on ADRC, as illustrated in Figure 8. Despite the small distance between the assembly node and the destination position, the conventional controller has difficulty driving the robotic arm in a straight trajectory, as demonstrated in Figure 6 and Figure 8. The assembly task cannot be completed in this situation, even though the workpiece has been transported into the assembly node.
The fourth simulation, in which the point features were used to create the image Jacobi matrix and other parameters were intact, was performed to demonstrate the superiority of the composite visual features. The result is shown in Figure 9. Although the point feature-based ADRC controller can drive the arm to the desired position, the trajectory is not smooth since the workpiece is first moved in the direction of increasing position error and then returned to normal. This behavior is caused by the absence of uncoupling capacity in the point-based controller, which increases the probability of spatial points becoming displaced from the FOV of the camera. Furthermore, the steady-state error of the first simulation converges faster than the fourth, demonstrating that the composite image feature is more sensitive to robotic arm motion.
Finally, a simulation based on the PID controller was conducted to demonstrate the advantages of the ADRC controller in IBVS, with the result shown in Figure 10. The position and attitude of the workpiece are continually modified as it approaches the assembly node. The results demonstrate how difficult it is to achieve satisfactory performance for a strongly coupled visual servoing system using a conventional PID controller.

6. Experiment and Discussion

As demonstrated in Figure 11, a visual servoing system is established. The experimental setup consists of a camera, a computer, and a robot (Dobot Magician) with four DOF. The software was coded by MFC with OpenCV 3.2 and consisted of three parts: (1) a camera and a robot control system, which includes initialization, start and stop functions, and parameter setting; (2) a real-time display system consisting of an image display and information display; and (3) an information storage system, which was designed to save important data throughout the program operation. The camera is MER-200-14GC with a 12-mm lens and a 1628 × 1236 image resolution. The robotic arm has a repeated positioning accuracy of 0.2 mm and a minimum movement distance of 0.05 mm. As illustrated in Figure 12, the workpiece is a white card with four colored circles, and the base plate is a slot the same size as the white card. The inside slot is also marked with colored circular marks, ensuring that the relationship between the white card and the slot meets the space constraint.
The homography matrixes mentioned in Section 3.1 were produced using a customized calibration block with two parallel plates, as shown in Figure 12a. Each plate has four incomplete circular regions, the centers of which create a cuboid with known dimensions in space. The most significant advantage of the calibration block is that it allows the camera to observe all circular regions simultaneously without obstruction. Figure 12b depicts an aluminum calibration block with a production error of less than 0.1 mm, and Figure 12c depicts the exact dimensions of the calibration block. All circular regions were marked with different colored stickers, and the purple sticker was used to differentiate the plate.
H 1 = 2.76 0.67 2163.40 0.66 4.08 719.50 1.07 × 10 5 0.00037 1
H 2 = 3.15 0.69 2554.26 0.67 4.28 1730.30 2.22 × 10 5 0.00032 1
The first test was carried out; the results are shown in Figure 13. The starting position of the robotic arm is depicted in Figure 13a, and it then begins to move toward the assembly node, driven by the controller. The robotic arm has reached the assembly node in Figure 13b, and the white card is just above the slot. The card’s position continues to descend the Z-axis until it is inserted into the slot. However, the card cannot reach the bottom of the slot since the surface of the lower plate does not coincide with the genuine working plane. As a result, a pressure sensor was fitted at the robotic arm’s end. When the sign of the measured value changes, it is indicated that the workpiece has arrived at the predetermined point.
Another test was performed in which the transformation matrixes H 1 and H 2 were replaced with unit matrixes while the other experimental settings remained the same. Figure 14 shows the outcomes of this test. As seen in Figure 14b, the card has collided with the slot and cannot be inserted into the slot because the gap between the card and the slot is smaller than 1mm. Due to the low movement speed, the robotic arm did not stop moving after colliding with the card, resulting in significant deformation. However, if a collision occurs during an assembly, the robotic arm will be damaged, which is not permitted in an assembly operation.
Experiments are repeated 50 times to ensure that the presented method works and the results are shown in Table 4. As a comparison, 50 experiments were conducted using the conventional IBVS controller. The method proposed in this research has a 100% success rate and a position accuracy of less than 1 mm. On the other hand, the collision problem described in Figure 14, on the other hand, occurs in all assembly experiments using the conventional IBVS controller. This fully demonstrates that the method proposed in this research effectively solves the problem of spatial constraint.

7. Conclusions

This study presents a visual servo control method based on perspective transformation to transport a workpiece to an unmarked spatial position using a robotic arm under uncalibrated conditions. A customized calibration block with two parallel plates was created, and all circular areas’ centers were used to generate two transformation matrixes. Following that, a virtual image plane was created using the two matrixes. Then projections of the target position and workpiece were obtained in the virtual image plane. Finally, a composite visual feature-based ADRC controller was built to increase the robotic arm system’s performance. The workpiece was successfully moved to the desired position by tracking a given image feature in the virtual plane. The experiment findings indicate that the method proposed in this work achieved a success rate of 100% and a position precision of less than 1 mm, which meets the assembly task requirements.

Funding

This research received no external funding.

Data Availability Statement

The data generated and/or analyzed during the current study are not publicly available for legal/ethical reasons but are available from the corresponding author on reasonable request.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Hutchinson, S.; Chaumette, F. Visual servo control, Part I: Basic approaches. IEEE Robot. Autom. Mag. 2006, 13, 82–90. [Google Scholar]
  2. Bateux, Q.; Marchand, E. Histograms-based visual servoing. IEEE Robot. Autom. Lett. 2017, 2, 80–87. [Google Scholar] [CrossRef] [Green Version]
  3. Marchand, E. Subspace-based visual servoing. IEEE Robot. Autom. Lett. 2019, 4, 2699–2706. [Google Scholar] [CrossRef]
  4. Cheah, C.C.; Hirano, M.; Kawamura, S.; Arimoto, S. Approximate Jacobian control for robots with uncertain kinematics and dynamics. IEEE Trans. Robot. Autom. 2003, 19, 692–702. [Google Scholar] [CrossRef]
  5. Ma, Z.; Su, J. Robust uncalibrated visual servoing control based on disturbance observer. ISA Trans. 2015, 59, 193–204. [Google Scholar] [CrossRef]
  6. Corke, P.I.; Hutchinson, S.A. A new partitioned approach to image-based visual servo control. IEEE Trans. Robot. Autom. 2001, 17, 507–515. [Google Scholar] [CrossRef] [Green Version]
  7. Iwatsuki, M.; Okiyama, N. A new formulation of visual servoing based on cylindrical coordinate system with shiftable origin. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems, Lausanne, Switzerland, 30 September–4 October 2002; pp. 354–359. [Google Scholar]
  8. Janabi-Sharifi, F.; Deng, L.; Wilson, W.J. Comparison of basic visual servoing methods. IEEE-ASME Trans. Mechatron. 2011, 16, 967–983. [Google Scholar] [CrossRef]
  9. Xu, D.; Lu, J.; Wang, P.; Zhang, Z.; Liang, Z. Partially decoupled image-based visual servoing using difierent sensitive features. IEEE Trans. Syst. Man Cybern. Syst. 2017, 47, 2233–2243. [Google Scholar] [CrossRef]
  10. Lazar, C.; Burlacu, A. Visual servoing of robot manipulators using model-based predictive control. In Proceedings of the 2009 7th IEEE International Conference on Industrial Informatics, Cardiff, UK, 23–26 June 2009; pp. 690–695. [Google Scholar]
  11. Allibert, G.; Courtial, E.; Chaumette, F. Predictive control for constrained image-based visual servoing. IEEE Trans. Robot. 2010, 26, 933–939. [Google Scholar] [CrossRef] [Green Version]
  12. Wang, T.T.; Xie, W.F.; Liu, G.D.; Zhao, Y.M. Quasi-min-max model predictive control for image-based visual servoing with tensor product model transformation. Asian J. Control 2015, 17, 402–416. [Google Scholar] [CrossRef]
  13. Qin, S.J.; Badgwell, T.A. A survey of industrial model predictive control technology. Control Eng. Pract. 2003, 11, 733–764. [Google Scholar] [CrossRef]
  14. Milman, R.; Davison, E.J. Evaluation of a new algorithm for model predictive control based on non-feasible search directions using premature termination. In Proceedings of the 42nd IEEE Conference on Decision and Control, Maui, HI, USA, 9–12 December 2003; pp. 2216–2221. [Google Scholar]
  15. Hajiloo, A.; Keshmiri, M.; Xie, W.F.; Wang, T.T. Robust On-Line Model Predictive Control for a Constrained Image Based Visual Servoing. IRE Trans. Ind. Electron. 2016, 63, 2242–2250. [Google Scholar] [CrossRef]
  16. Besselmann, T.; Lofberg, J.; Morari, M. Explicit MPC for LPV systems: Stability and optimality. IEEE Trans. Autom. Control 2012, 57, 2322–2332. [Google Scholar] [CrossRef] [Green Version]
  17. Lofberg, J. YALMIP: A toolbox for modeling and optimization in MATLAB. In Proceedings of the 2004 IEEE International Symposium on Computer-Aided Control System Design, Taipei, Taiwan, 2–4 September 2004; pp. 284–289. [Google Scholar]
  18. Besselmann, T.; Lofberg, J.; Morari, M. Explicit model predictive control for linear parameter-varying systems. In Proceedings of the 47th IEEE Conference on Decision and Control, Cancun, Mexico, 9–11 December 2008; pp. 3848–3853. [Google Scholar]
  19. LaValle, S.M.; González-Banos, H.H.; Becker, C.; Latombe, J.C. Motion strategies for maintaining visibility of a moving target. In Proceedings of the IEEE International Conference on Robotics and Automation, Albuquerque, NM, USA, 25 April 1997; pp. 731–736. [Google Scholar]
  20. Gans, N.R.; Hutchinson, S.A.; Corke, P.I. Performance tests for visual servo control systems, with application to partitioned approaches to visual servo control. Int. J. Robot. Res. 2003, 22, 955–984. [Google Scholar] [CrossRef]
  21. Chesi, G.; Hashimoto, K.; Prattichizzo, D.; Vicino, A. Keeping features in the field of view in eye-in-hand visual servoing: A switching approach. IEEE Trans. Robot. Autom. 2004, 20, 908–914. [Google Scholar] [CrossRef]
  22. Mezouar, Y.; Chaumette, F. Path planning for robust imagebased control. IEEE Trans. Robot. Autom. 2002, 18, 534–549. [Google Scholar] [CrossRef] [Green Version]
  23. Hosoda, K.; Sakamoto, K.; Asada, M. Trajectory generation for obstacle avoidance of uncalibrated stereo visual servoing without 3D reconstruction. In Proceedings of the 1995 IEEE/RSJ International Conference on Intelligent Robots and Systems—Human Robot Interaction and Cooperative Robots, Pittsburgh, PA, USA, 5–9 August 1995; pp. 29–34. [Google Scholar]
  24. Hartley, R.; Zisserman, A. Multiple View Geometry in Computer Vision; Cambridge University Press: Cambridge, UK, 2003; pp. 1865–1872. [Google Scholar]
  25. Gonçalves, P.S.; Mendonça, L.F.; Sousa, J.M.C.; Pinto, J.C. Uncalibrated eye-to-hand visual servoing using inverse fuzzy models. IEEE Trans. Fuzzy Ssyt. 2008, 16, 341–353. [Google Scholar] [CrossRef] [Green Version]
  26. Khatib, O. Real-time obstacle avoidance for manipulators and mobile robots. Int. J. Robot. Res. 1986, 5, 90–98. [Google Scholar] [CrossRef]
  27. Kirkpatrick, S.; Gelatt, C.D., Jr.; Vecchi, M.P. Optimization by simulated annealing. Science 1983, 220, 606–615. [Google Scholar] [CrossRef]
  28. Sharma, R.; Sutanto, H. A framework for robot motion planning with sensor constraints. IEEE Trans. Robot. Autom. 1997, 13, 61–73. [Google Scholar] [CrossRef]
  29. Chesi, G. Straight line path-planning in visual servoing. J. Dyn. Syst. Meas. Control 2007, 129, 541–543. [Google Scholar] [CrossRef]
  30. Chesi, G. Visual servoing path planning via homogeneous forms and LMI optimizations. IEEE Trans. Robot. 2009, 25, 281–291. [Google Scholar] [CrossRef]
  31. Keshmiri, M.; Xie, W.F. Image-based visual servoing using an optimized trajectory planning technique. IEEE /ASME Trans. Mechatron. 2017, 22, 359–370. [Google Scholar] [CrossRef]
  32. Han, J. From PID to active disturbance rejection control. IEEE Trans. Ind. Electron. 2009, 56, 900–906. [Google Scholar] [CrossRef]
  33. Su, J.B. Robotic uncalibrated visual serving based on ADRC. Control Decis. 2015, 30, 1–8. [Google Scholar]
  34. Huang, Y.; Xue, W. Active disturbance rejection control: Methodology and theoretical analysis. ISA Trans. 2014, 53, 963–976. [Google Scholar] [CrossRef]
Figure 1. Two examples of robot-based assembly. (a) An air compressor assembly. (b) A rectangular workpiece assembly.
Figure 1. Two examples of robot-based assembly. (a) An air compressor assembly. (b) A rectangular workpiece assembly.
Machines 10 01090 g001
Figure 2. Schematic diagram of assembly nodes.
Figure 2. Schematic diagram of assembly nodes.
Machines 10 01090 g002
Figure 3. The relationship between camera pose and viewing field.
Figure 3. The relationship between camera pose and viewing field.
Machines 10 01090 g003
Figure 4. Control system block diagram.
Figure 4. Control system block diagram.
Machines 10 01090 g004
Figure 5. Control system block diagram.
Figure 5. Control system block diagram.
Machines 10 01090 g005
Figure 6. The First Simulation Result by The Proposed Method: (a) Complete Spatial trajectory of the robotic arm. (b) Docking trajectory. (c) Image trajectory. (d) Position error in the image.
Figure 6. The First Simulation Result by The Proposed Method: (a) Complete Spatial trajectory of the robotic arm. (b) Docking trajectory. (c) Image trajectory. (d) Position error in the image.
Machines 10 01090 g006
Figure 7. Simulation results by the classical controller: (a) Complete Spatial trajectory of the robotic arm. (b) Image trajectory.
Figure 7. Simulation results by the classical controller: (a) Complete Spatial trajectory of the robotic arm. (b) Image trajectory.
Machines 10 01090 g007
Figure 8. Simulation results by the classical controller: (a) Complete Spatial trajectory of the robotic arm. (b) Docking trajectory.
Figure 8. Simulation results by the classical controller: (a) Complete Spatial trajectory of the robotic arm. (b) Docking trajectory.
Machines 10 01090 g008
Figure 9. Results of the fourth simulation: (a) Complete Spatial trajectory of the robotic arm. (b) Docking trajectory. (c) Image trajectory. (d) Position error in the image.
Figure 9. Results of the fourth simulation: (a) Complete Spatial trajectory of the robotic arm. (b) Docking trajectory. (c) Image trajectory. (d) Position error in the image.
Machines 10 01090 g009aMachines 10 01090 g009b
Figure 10. Results of the last simulation: (a) Complete Spatial trajectory of the robotic arm. (b) Docking trajectory. (c) Image trajectory. (d) Position error in the image.
Figure 10. Results of the last simulation: (a) Complete Spatial trajectory of the robotic arm. (b) Docking trajectory. (c) Image trajectory. (d) Position error in the image.
Machines 10 01090 g010
Figure 11. Experimental setup: (a) Complete experimental platform. (b) The white card and the slot.
Figure 11. Experimental setup: (a) Complete experimental platform. (b) The white card and the slot.
Machines 10 01090 g011
Figure 12. Calibration block: (a) Design drawing. (b) The aluminum calibration block. (c) Exact dimensions of the calibration block.
Figure 12. Calibration block: (a) Design drawing. (b) The aluminum calibration block. (c) Exact dimensions of the calibration block.
Machines 10 01090 g012
Figure 13. Experimental result of visual servoing control method based on perspective transformation: (a) Starting position of the robotic arm. (b) The robotic arm reached the assembly node. (c) The assembly task is accomplished. (d) Complete Spatial trajectory of the robotic arm. (e) Image trajectory. (f) Position error in the image.
Figure 13. Experimental result of visual servoing control method based on perspective transformation: (a) Starting position of the robotic arm. (b) The robotic arm reached the assembly node. (c) The assembly task is accomplished. (d) Complete Spatial trajectory of the robotic arm. (e) Image trajectory. (f) Position error in the image.
Machines 10 01090 g013
Figure 14. Experimental result of conventional method: (a) Starting position of the robotic arm. (b) The collision between the card and the slot. (c) Image trajectory. (d) Position error in the image.
Figure 14. Experimental result of conventional method: (a) Starting position of the robotic arm. (b) The collision between the card and the slot. (c) Image trajectory. (d) Position error in the image.
Machines 10 01090 g014
Table 1. Simulation Parameters of the Camera.
Table 1. Simulation Parameters of the Camera.
ParameterValue
Focal length0.008
Length1024
Width1024
Coordinates of the projection center(512,512)
Scaling factors(0.00001,0.00001)
Table 2. Parameters of The ADRC.
Table 2. Parameters of The ADRC.
PartParametersValue
TDh0.1
α 1 0.02
δ 1 0.12
ESO α 2 0.5
δ 2 0.5
α 3 0.01
δ 3 60
γ 1200
b 1 15
b 2 0.7
NLSEF α 4 0.5
δ 4 10.5
Table 3. Starting and Desired Positions of Feature Points In The Simulation.
Table 3. Starting and Desired Positions of Feature Points In The Simulation.
PositionNumSpatial PointImage Point
Starting Position1(−0.48,−0.81,1.83)(301.82,158.65)
2(−0.81,−0.08,1.89)(169.46,476.81)
3(−0.12,0.21,2.17)(468.07,588.85)
4(0.21,−0.52,2.11)(592.84,315.47)
Desired Position1(0.2,0.2,5)(544,544)
2(0.2,1,5)(544,672)
3(1,1,5)(672,672)
4(1,0.2,5)(689.24,544)
Table 4. Results of 50 experiments.
Table 4. Results of 50 experiments.
TermsThe Proposed MethodConventional IBVS Method
Total Times5050
Successful Times500
Average Error< 1 mm 1.69 mm
Time Consumption 17.45 s > 40 s
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Cao, C. Research on a Visual Servoing Control Method Based on Perspective Transformation under Spatial Constraint. Machines 2022, 10, 1090. https://doi.org/10.3390/machines10111090

AMA Style

Cao C. Research on a Visual Servoing Control Method Based on Perspective Transformation under Spatial Constraint. Machines. 2022; 10(11):1090. https://doi.org/10.3390/machines10111090

Chicago/Turabian Style

Cao, Chenguang. 2022. "Research on a Visual Servoing Control Method Based on Perspective Transformation under Spatial Constraint" Machines 10, no. 11: 1090. https://doi.org/10.3390/machines10111090

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