Next Article in Journal
A New Data Fusion Algorithm for Wireless Sensor Networks Inspired by Hesitant Fuzzy Entropy
Next Article in Special Issue
A Precise and GNSS-Free Landing System on Moving Platforms for Rotary-Wing UAVs
Previous Article in Journal
Fluid Pressure Monitoring-Based Strategy for Delicate Grasping of Fragile Objects by A Robotic Hand with Fluid Fingertips
Previous Article in Special Issue
Obstacle Avoidance of Two-Wheel Differential Robots Considering the Uncertainty of Robot Motion on the Basis of Encoder Odometry Information
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Positioning, Navigation, and Book Accessing/Returning in an Autonomous Library Robot using Integrated Binocular Vision and QR Code Identification Systems

1
School of Automation, Northwestern Polytechnical University, Xi’an 710072, China
2
School of Electrical and Electronic Engineering, Nanyang Technological University, 50 Nanyang Avenue, Singapore 639798, Singapore
*
Author to whom correspondence should be addressed.
Submission received: 24 January 2019 / Revised: 8 February 2019 / Accepted: 12 February 2019 / Published: 14 February 2019
(This article belongs to the Special Issue Mobile Robot Navigation)

Abstract

:
With rapid advancements in artificial intelligence and mobile robots, some of the tedious yet simple jobs in modern libraries, like book accessing and returning (BAR) operations that had been fulfilled manually before, could be undertaken by robots. Due to the limited accuracies of the existing positioning and navigation (P&N) technologies and the operational errors accumulated within the robot P&N process, however, most of the current robots are not able to fulfill such high-precision operations. To address these practical issues, we propose, for the first time (to the best of our knowledge), to combine the binocular vision and Quick Response (QR) code identification techniques together to improve the robot P&N accuracies, and then construct an autonomous library robot for high-precision BAR operations. Specifically, the binocular vision system is used for dynamic digital map construction and autonomous P&N, as well as obstacle identification and avoiding functions, while the QR code identification technique is responsible for both robot operational error elimination and robotic arm BAR operation determination. Both simulations and experiments are conducted to verify the effectiveness of the proposed technique combination, as well as the constructed robot. Results show that such a technique combination is effective and robust, and could help to significantly improve the P&N and BAR operation accuracies, while reducing the BAR operation time. The implemented autonomous robot is fully-autonomous and cost-effective, and may find applications far beyond libraries with only sophisticated technologies employed.

1. Introduction

With the rapid advancement of artificial intelligence, robots are playing an increasingly important role in both industry and daily routines [1]. More and more robots are being developed and widely deployed to undertake various jobs that had been fulfilled manually before [2,3]. For example, in modern libraries, mobile robots are being employed to fulfill the tedious yet simple book accessing and returning (BAR) tasks [4,5]. To enable such high-precision functions, however, numerous technologies (e.g., sensing, actuation, manipulation, locomotion, environmental interaction, positioning and navigation (P&N), and human-robot interaction) are involved. Among all those required technologies, the indoor robot P&N technologies are the key factors in determining the accuracies of robot movements, book identification, and accessing and returning operations.
The current navigation technologies typically include satellite navigation, magnetic navigation, sensor navigation, inertial navigation, and visual navigation [6,7]. Satellite and magnetic navigation technologies are two conventional ways of navigation, yet are seldom utilized for indoor P&Ns. This is because the satellite signals can not penetrate through the buildings, while the magnetic navigation guide lines are expensive and difficult to expand or replace once located [8]. Sensor navigation, including infrared, laser, and ultrasound navigation, are typically based on nonvisual sensors to measure the transmitting and reflecting signals from the objects. Owing to their limited navigation accuracies, navigation distances, and high prices, sensor navigation is commonly adopted for military purposes [9,10]. Inertial navigation is a sophisticated way for autonomous navigation without relying on any external information. However, its cost is high and it also requires a large amount of time for calibration before use, due to the influences of the accumulated navigation errors [11]. Vision navigation, including monocular vision, binocular vision, and multi-vision, is based on camera systems to collect surrounding information to establish environment maps for P&Ns [12]. Due to the limited field of view (FOV) of the cameras, however, vision navigation suffers from a lack of accuracy in large distance positioning, and it is typically utilized for indoor navigation [13,14].
To address the limited accuracy issues with these existing navigation technologies, new schemes—simultaneously utilizing two or more existing navigation technologies—have been proposed in the literature [11,15,16,17,18,19]. Based on integrated inertial and binocular vision navigation technologies, Wang et al. proposed a global map generation method to tackle the difficulties in indoor navigation map constructions [16]. While by utilizing the simultaneous vision positioning and indoor map construction technologies to generate real-time incremental maps, authors in [17] showed that the accumulated navigation system errors could be reduced effectively. Recently, Wang et al. adopted a visual odometer [17,18] to achieve unmanned aerial vehicle (UAV) positioning based on the visual optical flow information and inertial sensing data [19]. However, it is worth noting that the amount of data to be processed with the integrated visual and inertial navigation technologies is huge, which thus limits the accuracy of the library digital maps generated for real-time applications.
To further improve the digital map accuracy while reducing the computational load, quick response (QR) code-based technology has also been introduced for mobile robot P&Ns [20,21,22,23]. QR codes are well-known for their low cost, large data storage, robustness against damages, and easy productivity/readability, etc., and they have been widely deployed in various cases in recent years. Eimon et al. pioneered the research by utilizing QR codes as personal identification tags and developed a human-tracking robot for services in public places like airports or supermarkets [20]. Later, Suriyon et al. proposed to utilize QR codes as landmarks for a visitor guide robot traversing between two specified locations [23], and Zhang et al. implemented an indoor mobile robot localization and navigation mechanism by utilizing QR codes to provide global location information and robot pose references [21]. However, it is worth noting that all these developed robots either have only fixed targets or could only traverse between fixed locations without route re-planning functions, even though obstacles may block the robot trajectory occasionally in indoor environment. Furthermore, due to the limited FOV of the QR code scanners, those robots may also suffer from certain practical issues, such as the rediscovery issue in case of object missing, the QR code running outside issue at turning points, QR code access issues caused by light/sheltering conditions, and so on. Although some of those issues can be addressed by faster QR code scanners [22], effective mechanisms are still needed for the ever-increasing high-precision mobile robot applications.
To benefit from the advantages of both binocular vision navigation and QR code identification technologies, we propose, for the first time (to the best of our knowledge), to integrate these two technologies together to improve the mobile robot P&N accuracies, and also construct an autonomous robot to implement the high-precision BAR operations, based on such a technology combination. In this paper, the binocular vision system is utilized to fulfill the rapid QR code region localization, dynamic digital map construction, autonomous robot P&N, as well as obstacle identification and avoiding functions. While the QR code identification technique is used to identify those QR code labels, and then access their contents for both robot operational error eliminations and robotic arm BAR operation calculations. With those two technologies working together, the robot is able to establish a high-precision library digital map, and then identify and avoid those obstacles to fulfil the real-time autonomous route-planning functions. Meanwhile, by accessing the QR code labels, it is also able to update the digital map frequently to eliminate the errors accumulated during its P&N process and, thus, realize the high-precision BAR operations. Both simulations and experiments have been conducted to verify the effectiveness of such a technology combination and the robot functionalities in different cases.
The remainder of this paper is organized as follows. Section 2 presents the robot structure design and its binocular vision system. Section 3 describes the proposed binocular vision and QR code identification technology integration based robot P&N and BAR operation mechanisms. Section 4 presents the experiments conducted for mechanism and system verifications, and Section 5 concludes the paper.

2. Library Robot Structure and Its Vision System

2.1. Robot Structure Design

To verify the applicability of the technique integration, we designed and fabricated a mobile robot prototype for BAR operations. Figure 1a presents the overall robot structure. As shown, such a robot consists mainly of two parts (i.e., the motion platform and the robot body). The motion platform, with both swerving and forward/backward moving functions, acts as the robot carrier. When given the motion command, it is able to navigate along the calculated trajectory to send the robot to a desired place. The robot body fixed on the motion platform is comprised of the inertial navigation system, the binocular vision system, and the QR code reader, as well as two robotic arms fixed on a lifting rod, and it is utilized to realize the BAR operations. The inertial navigation system helps identify the robot position and motion gestures in its operation process. The binocular vision system is responsible for rapid QR code region localization, dynamic digital map construction, autonomous robot P&N, as well as the obstacle identification and avoiding. Hence, when moving around in the library, the robot is able to update its given library digital map dynamically to eliminate the system operational errors, and also perform real-time route planning with the inertial navigation system, binocular vision system, and QR code reader working together. The two robotic arms, each of which is a serial manipulator with 4 degrees-of-freedom (DoFs), as shown in Figure 1b, are utilized to fulfill the BAR operations. Once reaching the target position, the robot would search for the target book with its QR code scanner, and determine the book position with its binocular vision system. The book positioning information finally drives the two robotic arms to fulfill the BAR operations. In this study, a two-arm structure is adopted, in which the two arms work cooperatively, with one arm being responsible for pulling the desired book out from the shelf, while the other is controlled to hold the book across its spine and put it to the basket fixed on the motion platform.
It is worth noting that, in this study, the size of the motion platform is customized to fit the space requirements of our lab. In practice, however, such a size could be changed and optimized according to the library requirements, such that the robot is able to navigate freely to the desired targets. Furthermore, as the heights of library bookshelves may also impact the library robot performance, the robot body is equipped with a lifting rod to adjust its height. As shown in the inset of Figure 1a, such a lifting rod is a mechanical structure with both rotating and rising functions. While the rotating function enables the robotic arms to access the books on both sides of a bookshelf corridor, the rising function helps the robot to reach the books that are high on the bookshelves. The serial design of the robotic arms themselves could also enable the robot to reach the books on bookshelves with certain heights.
In this study, two kinds of QR code labels, the book labels and the landmark labels, are generated with typical QR code generation software. The book labels containing detailed information of a book are utilized for robot BAR operations. Specifically, for each book, two identical book labels are used. One of such two book labels is pasted on the book spines for book accessing purpose, and the other one is pasted on the bookshelf at the corresponding position of the book, for book return purposes. In practice, since the page number varies from book to book, the size of the book labels should be different with both the page number and the QR code image scanner parameters taken into account. In this study, the size of QR code images were set to be 8 mm × 8 mm and 15 mm × 15 mm for books with small and large page numbers, respectively. As compared with the book labels, those landmark labels contain accurate 3D library coordinate spatial information, and they are pasted around the library for library map establishment and robot P&N accuracy improvements.
As compared with those book labels, the QR code landmarks contain accurate library 3D spatial coordinate information, and they are pasted around the library for library digital map updating and robot operational error corrections. When navigating around the library, the robot would identify the QR code region rapidly with its binocular vision system, and then access those landmarks with its QR code reader. The accurate library 3D spatial coordinate information contained within the QR code landmarks would help update the robot location information. Meanwhile, a closed-loop control system is also adopted to adjust the robot gestures such that it navigates along the calculated trajectory. In such a way, the robot operational errors accumulated within the robot P&N process would be eliminated, while the P&N accuracy could be significantly improved. All information of the books and the library digital map is maintained by a library management software system, and once the robot is given an operation command, it would navigate along the calculated trajectory to the desired target autonomously to perform the desired BAR operations.

2.2. Robot Binocular Vision System

2.2.1. Robot Binocular Vision System Working Mechanism

The binocular vision system is one of the key components of the constructed robot. In this study, it is analogous to human binocular vision system, and is responsible for object identification and 3D co-ordinate calculations.
Figure 2 presents the main working flow of the robot binocular vision system. As seen, it consists of three main steps: Binocular vision system calibration, object feature extraction, and identification (O-FEI) and object 3D coordinate positioning. By acquiring a number of standard object images, the binocular vision system calibration process is used to determine the vision system property parameters. Those parameters include both intrinsic camera parameters (e.g., the camera focal lengths, camera optic center positions, and extrinsic camera parameters), like translational and rotational vectors. In contrast, the last two steps are responsible for the rapid QR code region identification, dynamic digital map construction, and autonomous P&N, as well as the obstacle identification and avoiding. Specifically, the O-FEI process helps the robot identify both QR code regions and obstacles in the robot trajectory. Once the QR code landmarks are identified, the robot would access such landmarks for the accurate coordinate information, which thus helps eliminate the robot operational errors and improve the P&N accuracy. While if obstacles are identified, the robot would update the library digital map and conduct real-time route re-planning to avoid such obstacles. The 3D coordinate positioning process is utilized to determine 3D coordinates of those objects and obstacles. With all those steps working together, the robot fulfills the rapid QR code regions identification, dynamic digital map construction, autonomous P&N, as well as the obstacle identification and avoiding functions.
Among those three steps, the binocular vision system calibration determines the overall operation accuracies of the robot. Below, we explain the binocular vision system calibration for camera parameter characterizations first, and then present the camera distortion error corrections.

2.2.2. Binocular Vision System Calibration

A binocular vision system, consisting of two identical cameras, is adopted for the robot. Those two cameras are parallel to each other, and each of them could be modeled as a linear pinhole system, as shown in Figure 3. In such a model, there are four coordinate systems, of which O w X w Y w Z w is the free space coordinate system and O c X c Y c Z c is the camera coordinate system, while O 1 X Y and O 2 U V are the image plane coordinate system and pixel plane 2D coordinate system, respectively. The free space coordinate system is utilized to denote the positions of both cameras and the other objects in the world.
Assume that the position of the coordinate system O 1 X Y origin O 1 in the coordinate system O 2 U V is ( u 0 , v 0 ) , then for any point ( x , y ) in O 1 X Y , its position in O 2 U V could be described by the homogeneous coordinate transformation matrix as shown in Equation (1),
u v 1 = 1 d x 0 u 0 0 1 d y v 0 0 0 1 x y 1 ,
where d x and d y are the physical size of each pixel in the X and Y axis directions, respectively.
Further, assume that P ( X c , Y c , Z c ) is a point in the camera coordinate system O c X c Y c Z c , and p is the image point of P within the image plane coordinate system O 1 X Y . Hence, the coordinate ( x , y ) of p in O 1 X Y could be calculated as below,
Z c x y 1 = f 0 0 0 0 f 0 0 0 0 0 1 X c Y c Z c 1 ,
where f is the focal length of the camera.
In practice, any point ( X w , Y w , Z w ) in the free space coordinate system O w X w Y w Z w could be mapped to the camera coordinate system O c X c Y c Z c using a translational vector T and rotational vector R as below,
X c Y c Z c 1 = R T 0 T 1 X w Y w Z w 1 ,
where 0 T = [ 0 0 0 ] , and T = [ t x , t y , t z ] is the position of the coordinate origin O w in the camera coordinate system O c X c Y c Z c . Hence, the projection of any free space point ( X w , Y w , Z w ) in the pixel plane 2D coordinate system O 2 U V could be described as follows,
Z c u v 1 = 1 d x 0 u 0 0 1 d y v 0 0 0 1 f 0 0 0 0 f 0 0 0 0 1 0 R T 0 T 1 X w Y w Z w 1 = f x 0 u 0 0 0 f y v 0 0 0 0 1 0 R T 0 T 1 X w Y w Z w 1 = M 1 M 2 X W = M X W ,
where f x = f d x , f y = f d y , M is a 3 × 4 projection matrix, M 1 is a parameter determined by the camera properties f x , f y , u 0 , v 0 , and M 2 is the position of camera in the free space coordinate system.
There are various calibration methods, such as manual calibration, Matlab tool box-based calibration, and OpenCV based self-calibration, for determining both the intrinsic and extrinsic parameters of a binocular vision system. In this study, the Matlab tool box-based calibration method is adopted for its higher accuracy and robustness as compared with the other methods. Once a number of standard target QR code images are collected, both intrinsic and extrinsic parameters of the system could be obtained and, finally, the mapping function between the free space coordinate system and image plane coordinate system can be obtained.

2.2.3. Binocular Vision System Error Correction

Due to the practical manufacturing or assembly errors, however, the camera sensors are not always on its optical axis, especially for wide-angle cameras. In such a case, there may exist distortions in those out-off-center positions for the binocular vision cameras. Such distortions typically include the radial distortion, centrifugal distortion, and thin prism distortion, among which the radial distortion is regarded to be the factor contributing the most [24,25]. Since the radial distortion is typically regarded to be symmetrical relative to optical axis, two new parameters δ x and δ y , as shown below, are introduced to correct the pinhole system,
δ x = k 1 x ( x 2 + y 2 ) δ y = k 2 y ( x 2 + y 2 ) ,
where ( x , y ) is the coordinate of any imaging point, and k 1 and k 2 are distortion coefficients in the radial direction.
Therefore, the coordinates ( x , y ) of any point within linear pinhole system as illustrated by Equation (1) could be corrected as below,
x ¯ = x + δ x = x ( 1 + k 1 r 2 ) y ¯ = y + δ y = y ( 1 + k 2 r 2 ) ,
where r 2 = x 2 + y 2 . The equation above indicates that the binocular vision system distortions in the directions of x and y are proportional to the square of the radius.
To calibrate the binocular vision system while correcting the radial distortion, a two-step iteration algorithm is adopted to separate the intrinsic and extrinsic camera parameters from those distortion ones, and process them separately. The linear transformation (LT) or perspective transformation matrix (PTM) method could be adopted to obtain the camera parameters first and, then, those obtained parameters are utilized as initial values for the second step iteration to obtain the optimal solutions. In such a way, the influences of both the initial values and distortion coefficients to binocular vision system calibrations are considered and minimized. In this study, the LT method is adopted to obtain the camera parameters.

3. Library Robot P & N and BAR Mechanism

Compared to the structure design, the mechanism implementation for robot P&N and BAR operations is more complicated. This is because such a mechanism consists of many other functional sub-mechanisms; that is, the real-time robot route planning algorithm, the QR-code feature extraction and identification (QR-FEI) algorithm, and the QR-code based positioning accuracy correction algorithm, as well as the robot BAR operation algorithm. Each of those mechanisms will be described below.

3.1. Real-Time Robot Route Planning

Once given the target, the library robot would start to navigate along the calculated shortest route to it. In practice, however, as the obstacles in libraries are usually distributed randomly and sometimes may even appear suddenly and block the robot trajectory, the robot has to perform real-time route planning. Such a function helps the robot find the shortest path to the target, and also avoid those obstacles. In this study, the improved D * Lite algorithm, which supports incremental re-planning, is adopted for real-time robot route planning [26,27,28].
Figure 4a presents the binocular vision system imaging-based robot real-time route planning mechanism. When navigating to the target, the robot would acquire images along its trajectory periodically with the binocular vision system, and then calculate a depth value d i immediately based upon its binocular vision system parallax. Such a d i value is finally compared to a predefined threshold d s a f e to determine whether there is any obstacle along the route or not. When d i is larger than d s a f e , it is assume that there is no obstacle and the robot keeps moving along its trajectory, while if d i is smaller than d s a f e , it is assumed that obstacles are detected in the robot trajectory, and the shortest robot trajectory should be recalculated. In such a case, position information of the detected obstacles in library base coordinate system has to be calculated and remapped back to the library grid map.
Assume that the library base coordinate system in 2D plane is O X Y and the robot 2D coordinate system is O 1 X 1 Y 1 , while the position of an obstacle P in O 1 X 1 Y 1 is P ( X p , Y p ) , as shown in Figure 4b. Once a depth value d i is smaller than d s a f e for the robot at a position ( x i , y i , θ i ) , the obstacle position P in the base coordinate system (i.e., O P ), has to be calculated as follows,
( X p , Y p ) = O P = O O 1 + O 1 P = ( x i + d i cos θ i , y i + d i sin θ i ) ,
where O O 1 = ( x i , y i ) and O 1 P = ( d i cos θ i , d i sin θ i ) as shown in Figure 4b.
The position of P in library grid map could be obtained using the equation below,
( x [ ] , y [ ] ) = F ( x p , y p ) ,
where ( x [ ] , y [ ] ) are arrays, while F ( x , y ) is the function utilized to remap the position ( x , y ) from base coordinate to grid map and is given by Equation (4) in Section 2.2.
Therefore, once ( x [ ] , y [ ] ) is obtained, the elements ( x [ ] , y [ ] ) are updated with ( x [ ] , y [ ] ) = 1 to denote that those positions in the library grid map are occupied by obstacles, and then the improved D * Lite algorithm is adopted to re-compute a shortest route for the robot. The main working steps of such a route planning mechanism are shown in Algorithm 1, wherein the Dijkstra’s shortest path algorithm could be modified to compute the shortest path between any two positions in the grid map. To achieve a balance between the computation load and the navigation accuracy, the camera image acquisition period was set to be 50 ms in this study. Such a period guarantees that once an obstacle is detected, the robot is able to perform real-time re-routing in time to avoid it.
Algorithm 1 The improved D * Lite algorithm for real-time robot route planning.
Input: Target location S g o a l , Robot starting point S s t a r t , Library grid map M.
Output: Planned trajectory T r for library robot. 1.8
 1: Initialization. d s a f e ; S l a s t = S s t a r t ;
 2:  T r = Computeshortestpath(M, S s t a r t , S g o a l );
 3: while S l a s t S s t a r t do
 4:      S s t a r t = arg min s S u c c ( S s t a r t ) ( c ( S s t a r t , s ) + g ( s ) ) ;
 5:     Move to S s t a r t ;
 6:     Scan library grid map M for changed edge costs;
 7:     if any edge costs changed then
 8:          update grid map M according Equation (8);
 9:           k m = k m + h ( S l a s t , S s t a r t ) ;
 10:          S l a s t = S s t a r t ;
 11:         for all directed edges ( u , v ) with changed edge costs do
 12:             updated the edge cost c ( u , v ) ;
 13:              T r = Computeshortestpath(M, S s t a r t , S g o a l );
 14:         end for
 15:     end if
 16: end while
 17: Return robot trajectory T r .

3.2. The QR-FEI Algorithm

The Haar-like feature, which is group of characteristics consisting mainly of the edge, line, point, and diagonal features, as shown in Figure 5a [29], was adopted for the QR code identifications in this study. To denote an object, such a feature is typically made up of at least two rectangles, as shown in Figure 5b, and its value is the difference between the sums of the pixel values within the black and white rectangles.
Owing to its reduced computational complexity and improved operating speed, the Viola-Jones integral graph algorithm [30] was adopted for QR code Haar-like feature extraction in this study. Hence, for an image i, its integral graph i i at location of a point p i x e l ( x , y ) contains the sum of the pixel values above and left of this pixel ( x , y ) (i.e., the upper left corner of p i x e l ( x , y ) ), and its feature value could be calculated as shown in Equation (9).
i i ( x , y ) = x x y y i ( x , y )
When detecting the target QR codes, the image is scanned by a sub-window that contains a specific Haar-like feature as shown in Figure 5b. Based on each Haar-like feature, h i ( x ) , the corresponding classifier f i ( x ) is given by Equation (10) below,
f i ( x ) = 1 p i h i ( x ) < p i θ i 1 otherwise . ,
where x is the sample within the sub-window, h i ( x ) is the value of the i-th Haar feature h i of the sample x, p i 1 , 1 is the symbol of classification direction, f i is the classifier made up of features h i , and θ i is the threshold of classifier f i .
In this study, the stable self-adaptive Adaboost learning algorithm [31] was adopted to improve the object detection accuracy. The Adaboost algorithm is based on a cascade classification model, as shown in Figure 6, wherein a series of weak classifiers are cascaded together to improve the detection accuracy iteratively until the desired accuracy is achieved. The main purpose of such a strategy is to find an optimal weak classifier to achieve the lowest misclassification rate. Owing to the selective properties of those multi-level weak classifiers, the selection efficiency of the Adaboost learning algorithm was largely improved.

3.3. QR Code Based Positioning Accuracy Correction Algorithm

To improve the robot P&N accuracy, the robot operational errors accumulated in its navigation process must be eliminated. In this paper, a parallax processing-based 3D reconstruction algorithm was proposed, for such a purpose.
Figure 7 presents a schematic of the robot binocular vision system, wherein two identical cameras are utilized. Suppose that O C 1 and O C 2 are optical centers of the two cameras, d is the distance between those two optical centers, and f is the focal length of the camera. Further, assume that the coordinates of an object P within the left and right camera coordinate systems, which are denoted to be O C 1 X C 1 Y C 1 Z C 1 and O C 2 X C 2 Y C 2 Z C 2 , are ( x 1 , y 1 , z 1 ) and ( x 2 , y 2 , z 2 ) , while its location in the two images acquired by the two cameras, is ( u 1 , v 1 ) and ( u 2 , v 2 ) , respectively. Hence, Equation (11) can be obtained,
u 1 u 0 = f x x 1 z 1 v 1 v 0 = f y y 1 z 1 u 2 u 0 = f x x 2 z 1 = f x 1 d z 1 .
While the position of point P within the 3D camera system could be obtained, as shown in Equation (12),
X = x 1 = d ( u 1 u 0 ) u 1 u 2 Y = y 1 = d f x ( v 1 v 0 ) f y ( u 1 u 2 ) Z = z 1 = d f x u 1 u 2 ,
where u 0 , v 0 , f x , and f y are intrinsic parameters of the cameras. They are the same as those in Equation (4), and are determined in the camera calibration process.
Therefore, once a number of QR code landmarks are identified, both the landmark position information within the 3D camera system and the relative position between the robot and the landmarks can be determined. Finally, the robot position within the free space coordinate system can also be obtained. In such a way, the robot positioning error accumulated within the robot navigation process could be eliminated. Meanwhile, both the robot gestures and its trajectory to the target could be adjusted.

3.4. Robot BAR Operation Algorithm

The robot BAR operations were implemented with its two robotic arms, and the binocular vision based robot BAR operation control mechanism is shown in Figure 8a. Specifically, once the robot reaches the target along the calculated trajectory, its binocular cameras are turned on to search for the target QR code labels, and then the QR-code shape and feature point detection mechanism is utilized to extract the detailed book information (i.e., the position and orientation information within 3D free space coordinate system). Such acquired book coordinate information would finally drive the two robotic arms to work cooperatively to fulfill the BAR operations.
To fulfill such a BAR function, both the robotic kinematics [32] and inverse kinematics [33] of the library robot’s two robotic arms have to be determined. The robotic kinematics is used to calculate the final position of the robot accessing hand when given the operations of each joint structure, while the inverse kinematics (IK) is used to determine the operations of each robot joint structure once given the final position of the accessing hands. In this study, the robotic 4-DoFs manipulator, shown in Figure 1b, was modeled as a serial joint link structure based upon the modified-DH convention [34]. The link diagram for such a manipulator is illustrated in Figure 8b, and its modified DH parameters are shown in Table 1. Furthermore, since the relation between i 1 -th and i-th frame could be expressed by Equation (13),
i i 1 T = c θ i s θ i 0 a i 1 s θ i c α i 1 c θ i c α i 1 s α i 1 s α i 1 d i s θ i s α i 1 c θ i s α i 1 c α i 1 c α i 1 d i 0 0 0 1 ,
where c and s correspond to the c o s and s i n functions, a i and α i are link length and torsion angle along a axis for frame i 1 , respectively, and d i and θ i are the link offset and rotation angle along z axis for frame i 1 , respectively. Then, the robotic kinematics of the two robotic arms could be expressed as shown in Equation (14):
4 0 T = 1 0 T 2 1 T 3 2 T 4 3 T = n x o x a x p x n y o y a y p y n z o z a z p z 0 0 0 1 ,
where the 3 × 3 matrix in the left upper corner describes the robot accessing hand gestures, while [ p x , p y , p z ] T denotes the accessing hand position within the spatial coordinate.
Further introducing Equation (13) into Equation (14), we have the parameters as follows,
n x = s θ 1 s θ 4 + c θ 4 c θ 23 c θ 1 n y = c θ 1 s θ 4 + c θ 4 c θ 23 s θ 1 n z = s θ 23 c θ 4 o x = s θ 1 c θ 4 s θ 4 c θ 23 c θ 1 o y = c θ 1 c θ 4 s θ 4 c θ 23 s θ 1 o z = s θ 23 s θ 4 a x = s θ 23 c θ 1 a y = s θ 23 s θ 1 a z = c θ 23 p x = c θ 1 ( a 3 c θ 23 + a 2 c θ 2 ) p y = s θ 1 ( a 3 c θ 23 + a 2 c θ 2 ) p z = a 3 s θ 23 a 2 s θ 2 ,
where θ 23 = θ 2 + θ 3 .
In order to characterize the IK model for the library robot, those joint link parameters θ 1 to θ 4 have to be determined. By utilizing Equation (15), θ 1 could be calculated with p x and p y (i.e., θ 1 = arctan p y p x ). Also, by using o z = s θ 23 s θ 4 and n z = s θ 23 c θ 4 , θ 4 could be obtained as θ 4 = arctan o z n z only when s θ 23 0 (when s θ 23 = 0 , the joint axis is at a singular point, and the IK model can not be solved). The parameter θ 23 could be obtained with o z and a z as θ 23 = arctan o z a z s θ 4 when s θ 4 0 . By utilizing p y and p z , the parameter θ 2 could also be obtained with Equation (16),
θ 2 = arctan s θ 2 c θ 2 s θ 2 = ( p s + d 4 s θ 23 ) d 3 c θ 2 = ( p y / s θ 1 d 4 c θ 23 ) d 3 ,
while the parameter θ 3 is determined as θ 3 = θ 23 θ 2 .
Finally, the IK model for the two 4-DoFs robotic arms can described as below,
θ 1 = arctan ( p y / p x ) θ 4 = arctan ( o z / n z ) θ 23 = arctan ( o z / a z s θ 4 ) s θ 2 = ( p z + d 4 s θ 23 ) / d 3 c θ 2 = ( p y / s θ 1 d 4 c θ 23 ) / d 3 θ 2 = arctan ( s θ 2 / c θ 2 ) θ 3 = θ 23 θ 2 .
Therefore, once the final position of the accessing hand is determined (i.e., the center point of a bookmark label is accessed by the robot QR code label), such an IK model could be adopted to determine the operation gestures for those two robotic arms to fulfil the desired BAR operations. In this study, since the mechanical structure of those robotic arms are relatively simple, the algebraic method was adopted to obtain the IK model solutions.
While for the book returning process, the procedure of robot P&N is the exactly the same as that of the book accessing process. The only difference between the returning and accessing processes is to find the desired position on book shelf to put the book back. To do so, the robot would scan the book labels on the bookshelves first, and then search for the label IDs such that the ID of the book to be returned falls in between. In such a way, once the ID position is determined, both the robot motion displacement and its arm gestures could be determined. One of the robotic arm is controlled to take the book from the basket, while the other arm is driven to insert the accessing hand into two books that were found to obtain a space for the book. Finally, the book would be placed into this space to fulfill the returning operation.

4. Simulation and Experimental Verification

Both simulations and experiments were conducted with the constructed robot to verify the effectiveness of the proposed technology combination.

4.1. Binocular Vision System Calibration

Several groups of chessboard-like QR code images acquired with the binocular vision system were utilized. The Matlab calibration toolbox was adopted for calibration processing, due to its higher accuracy and robustness. A number of QR code images, as shown in Figure 9a, were imported to the Matlab toolbox first and, then, the corner information for each image was extracted to generate the chessboard-like corner-information image, as shown in Figure 9b. Finally, the binocular vision system calibration was conducted with the corner-point information of all images being extracted.
In the experiments, the system calibration was conducted for the left and right cameras to obtain the intrinsic parameters sequentially. Simulations on such a binocular vision system were also conducted to test the system mapping errors first, before implementation. The calibrated system model and the system mapping errors for the left camera are shown in Figure 10a,b, respectively, while the intrinsic parameters for the left camera are shown in (the left column of) Table 2. The same procedure was also conducted to calibrate the right camera of the binocular system, and the obtained intrinsic parameters are also shown in (the right column of) Table 2.
Finally, the optimal extrinsic parameters of the binocular vision system could also be obtained with the intrinsic parameters of both left and right cameras taken into account. The extrinsic parameters (i.e., rotation vector R and translation vector T), for such a binocular system, are shown in Table 3, while the simulated binocular vision system configuration is presented in Figure 11. The commercially-available binocular vision system (RER-720P2CAM-45, RERVISION Inc., China), as shown in Figure 1, was configured according to the parameters obtained from the simulated system model.

4.2. QR Code Feature Extraction and Identification

The QR code sample generation and training were implemented with the tools provided by Opencv vision library. In this study, 200 positive samples, together with 658 negative samples, were collected. Those positive samples contained only the QR codes, while the negative ones contained no QR codes. Figure 12 presents some representative positive sample images, each of which was normalized to be 50 pixels × 50 pixels, and Figure 13a presents the generated results. Once sample generation and training were completed, Opencv generated an XML file that helped to realize the QR code identification operations. Figure 13b presents an example of the detection results for some desired QR code images, wherein the image areas that contained the QR codes are marked with white rectangular boxes.

4.3. QR Code Based Positioning

The QR-code landmarks were utilized to eliminate the robot operational errors accumulated within its P&N process. Specifically, the binocular vision system was utilized to locate the QR-code region first. To obtain 3D coordinates of the QR code in the free space coordinate system, images of the same target QR code were acquired with the right and left hand-side cameras simultaneously. Figure 14 presents an example of a target QR code image region acquired with the binocular vision system. When those QR code images were acquired, they would be marked by white rectangular boxes; meanwhile, the center points of those rectangles would be calculated and marked. Those blue dots within the QR code images, as shown in Figure 14, denote the calculated center points of the recognized white rectangular boxes. Finally, those rectangular boxes were rearranged, such that their sequences of arrangement were the same in both right- and left-hand side cameras. The Equation (12) was utilized to calculate the 3D coordinates of the QR code images.
Similarly, the mobile robot would also access QR-code book labels to obtain the accurate 3D coordinate information of the target book, and then drive the two robotic arms to perform the desired BAR operations. To do so, both the position and orientation of the target book have to be determined. In this study, such information was obtained from those images acquired by the binocular vision system using the QR-FEI algorithm. Specifically, the book position information was obtained by calculating the pixel plane coordinates of the QR-code image center point first and, then, remapping those pixel plane coordinates back to the 3D coordinates of the free space, using Equation (12). In contrast, the orientation information of the book was determined by the slope of the QR-code image rectangular shape outline. Such an outline slope information together with the position information finally decide the operations of the robotic arms. In case of book misplacement (i.e., books are placed with an arbitrary orientation on the shelf), the slope of the QR-code image rectangular shape outline could also be utilized. For example, the QR-code could designed with a rectangular shape, and thus, slope of the detected rectangular QR-code shape outline could be utilized to determine the orientation of the book. Additional shape marks without any information on the QR code images (e.g., a horizontal or vertical line at certain position of the QR code image), could also be a candidate solution to address such a misplacement issue. For simplicity, without loss of generality, in this study, we assume that the QR-code slope was 90 ° (i.e., all the books are vertical to the shelves with no QR-code occlusions and misplacements).
Table 4 presents the 3D coordinates of a certain position calculated five times. Such results showed that among those five sets of data, the largest error was around 3.7 mm from the Z-axis, which was within the range for the QR code reader to scan and access. Such positioning results also convincingly demonstrate that the accuracy of our proposed mechanism is able to meet the requirements for practical library robot P&N operations.

4.4. Robot Trajectory Planning

4.4.1. Real-Time Robot Trajectory Planning

Experiments were conducted within a lab with floor dimensions of 4.20 m × 4.20 m, while the size of the mobile robot was 0.45 m in length and 0.35 m in width. To establish the library digital map, the lab space was divided into a grid with a resolution of 0.45 m × 0.45 m and, therefore, a 9 × 9 grid map, as shown in Figure 15a, was obtained. In Figure 15a, the red portion indicates that such areas were occupied by the obstacles. As for route planning testing, as shown in Figure 15a, we set the target and the starting point to be g = ( 8 , 6 ) and s = ( 1 , 1 ) in the grid map, respectively. The D * Lite algorithm was adopted for the robot trajectory calculations, and thus, the trajectory denoted by the green dots in Figure 15b was established.
To implement the robot autonomous route re-planning function with the D * Lite algorithm, a safe depth threshold d s a f e had to be calculated to determine the robot’s motion. In this study, such a depth threshold d s a f e was set to be the hypotenuse length of two grids (i.e., d s a f e = 2 × 0.45 × 2 = 1.27 m = 1270 mm ). When navigating along the route to its target, the robot would calculate a depth d i based on its the binocular vision system parallax, and compare d i and d s a f e to determine its motion status. Meanwhile, the position of the robot in the lab spatial map system was also characterized using the camera positioning system and the electronic compass equipped on the robot. Figure 16a,b present the two images of an obstacle that were acquired by the left and right hand-side cameras of the robot binocular vision system, respectively. Based on the parallax generated from the binocular vision system, the depth value d i and the position ( X p , Y p ) in the base coordinate system of such an obstacle was calculated to be 1264.7 mm and ( 2715.85 mm , 2695.16 mm ) , respectively. In addition, the robot’s position was calculated to be ( 1815.2 mm , 1807.3 mm ) in the library digital map, with an angle of 44.59 ° .
Since the depth value d i = 1264.7 mm was smaller than the depth threshold d s a f e = 1270 mm (i.e., d i < d s a f e ), the obstacle was marked as detected. The obstacle spatial position ( X p , Y p ) in the base coordinate system should be re-mapped to the grid map with the re-mapping function, given in Equation (8). Therefore, the obstacle coordinates in the grid map were calculated to be ( 6 , 6 ) . When performing route re-planning function for the robot, the obtained obstacle grid coordinate was set to be g ( 6 , 6 ) = 1 , and the current robot location coordinate was set to be its new starting point. The re-planned new robot route is shown in Figure 17a, wherein the new route avoids the obstacle at g ( 6 , 6 ) , as compared to the original route, shown in Figure 17b.
To further simulate the dynamic environment of real libraries, we also conducted experiments to test the robot’s real-time route re-planning function by placing obstacles to block the robot trajectory during its moving process. Figure 18 presents the X–Y plane projection of a robot obstacle identification and avoiding process in the free space 3D coordinate system. At the beginning, as seen in Figure 18a, both the robot and target were placed at a random position, and robot calculated a shortest path (the red line on the map in Figure 18a), from the robot’s starting point to the target. During the robot navigating process, however, obstacles were placed to block its trajectory. In such a case, the robot identified such obstacles with its binocular vision system and then updated the digital map immediately. Meanwhile, it re-calculated a shortest path from its current location to the target, as shown in Figure 18b. Once it reached the target to fulfill its BAR operations, as shown in Figure 18c, the robot finally calculated another new route from its target to its starting point. Figure 18d presents the robot navigating from the target back to its starting point. We conducted such an experiment 10 times in our lab, and achieved satisfactory results with no obstacles touched. Such results demonstrated that both the binocular vision and QR-code identification integrated technology, as well as the constructed robot, are robust.

4.4.2. Binocular Vision System Function for Robot Trajectory Planning

The binocular vision system plays a critical role in the robot dynamic route planning process, as it helps to detect and avoid obstacles in time. However, if a single global path is calculated for the robot, the robot may not be able to detect and avoid those obstacles in time, especially for those obstacles appearing in the robot navigation process, which, thus, could raise the trajectory planning failing rate. To verify the effectiveness of the binocular vision system, experiments were also conducted to compare robot route planning performances, with and without the binocular vision system when a single global path was calculated.
In the experiments, the robot starting points, targets, and obstacles were placed in the lab area randomly, and each experiment was conducted 10 times. Table 5 presents a comparison of the robot route planning operations, with and without the binocular vision system. Results show that, without the binocular vision system, the robot hit the obstacle five times and also failed two times in reaching the target, while, with such a camera system, the P&N accuracy was largely improved, and all the 10 tests were successfully finished without hitting the obstacle. Specifically, for the time utilized for successful target accessing, it took 321 s for the eight times with a single global route calculated, while it took only 246 s for the 10 successful times with a binocular vision system adopted. The average time spent for a successful route planning operation was ∼40.1 s and ∼24.6 s for the two cases, respectively (i.e., the average operation time was reduced by ∼38.4% with the binocular vision system). Such results demonstrate that the binocular system helps to improve the robot positioning accuracy largely, and also significantly saves route planning time; as compared to the global planing method.

4.5. Robot BAR Operation Verification

Experiments were conducted to test the autonomous library robot BAR operations, by employing more than 40 books with different page numbers in the lab. Those books were randomly divided into five groups, and each group was placed on shelves of different heights. Both the robot navigation starting points and target books were chosen randomly for testing in the experiments. Once given the commands to access/return any target book, the robot would navigate along the calculated trajectory to the desired place, and then access the book label to perform the BAR operations. The IK model, as illustrated in Equation (17), was adopted to determine the operations of the two robotic arms. Specifically, to test the robot BAR operation accuracies, those parameters obtained from the IK model were also utilized as inputs to the robotic kinematics model, shown by Equation (14). Such results obtained from the robotic kinematics model were finally compared to the coordinates of the book to be accessed for evaluations.
Table 6 presents 20 spatial coordinates that were calculated consecutively for a random book by utilizing the IK model solutions as the input of the robotic kinematics model, and Figure 19 shows the calculated coordinate distribution, within the tolerable error range, along three spatial directions. As seen, the coordinates obtained from the robotic kinematic model were very close to the book spatial coordinate ( 24.0 , 91.6 , 276.8 ) , and all the differences between the calculated coordinates and the original book coordinate are within the tolerable error range of ± 3 mm. Such results demonstrate that the IK model is effective and robust, and the integration of a binocular vision system and QR code identification technology could help fulfill the desired accuracy of library robot BAR operations. Experiments with returning operations and for books on shelves of different heights also demonstrated the effectiveness of the proposed technology combination in different cases.

5. Discussions and Conclusions

In this paper, we report an autonomous mobile robot to fulfill the high-precision BAR operations for modern libraries. The main contributions of this work are two-fold: First, we proposed for the first time (to the best of our knowledge), to integrate binocular vision and QR-code identification technologies together for autonomous mobile robots to improve both P&N and operational accuracies. Second, we designed and constructed a fully autonomous mobile robot for high-precision BAR operations and also verified the applicability of integration of this technology onto the constructed robot. Both simulations and experiments were conducted with the constructed robot to verify the effectiveness of such a technological combination in different cases. Results demonstrated that, with the binocular vision technology adopted for dynamic digital map constructions, autonomous P&Ns, obstacle identification and avoiding, and the QR code identification technique utilized for robot operational error eliminations and robotic arm BAR operation calculations, the robot P&N accuracies could be largely improved and the operation time significantly reduced.
It is worth noting that, within the processes of binocular camera system calibration as well as the object feature extraction and identifications, the binocular vision system imaging background is relatively simple and clean and, therefore, the influences of the environmental factors were omitted in this study. In practice, however, the binocular vision system imaging background could be complicated, and some other practical issues, such as people walking around, the QR-code occlusions, losing or misplacement issues, or too-weak illumination light intensities, would also largely impact on the robot’s performance. Such factors would impose a large burden on the combined binocular vision and QR-code identification mechanism, and sometimes may even cause the QR code label missing issue. Hence, both high-accuracy QR-FEI algorithms and efficient light intensity compensation mechanisms are highly desired to alleviate the influences of such environmental factors. Furthermore, since the main objective of this study was to evaluate the feasibility of the integrated binocular vision and QR-code identification technology for indoor mobile robot BAR operations, only sophisticated existing methods (e.g., the binocular vision based P&N, Haar feature-like extraction based QR-FEI algorithm, and D * -Lite algorithm) were deployed. In practice, however, alternative, more efficient methods could also be employed to enable the robot to work more efficiently. The effectiveness and efficiency of such a technological combination also demonstrated its great potential for various other applications. For example, it could be implemented in the companies and laboratories for robots to act as autonomous visitor guides or instructors, or in supermarkets, bookstores, and airports for robots to act as servants or load carriers. Currently, we are evaluating and verifying the applicability of such an integrated binocular vision and QR-code identification technology to an autonomous fruit harvesting robot.
It is also worth noting that, in this study, both the robot hardware fabrication and the software design were implemented according to our lab conditions. The overall cost of such a robot was less than 15 K USD, while the average time spent for each BAR operation conducted in the lab was measured to be 2.6 min. In practice, however, if such a robot was batch produced for practical applications, the robot cost could be further reduced, while the average BAR operation time could also be shortened. This is because the robot could be able to manipulate multiple books each time in practice. As compared to a human librarian (typically with a salary of 1 K USD per month), such a robot could not only help save the labour cost significantly, but also save the time required for BAR operations, especially when the number of books to be processed is large. Long working times and ease of maintenance are the other two advantages of the robot. Due to limited authority to access 3D coordinate information of any public libraries, however, the applicability of such a robot to any real libraries still has to be tested. Currently, we are applying for the permissions to verify the robot applicability within our university libraries.
Our future research work would cover two main aspects. First, sophisticated mechanisms for addressing those issues within real libraries, such as people walking around, the QR-code occlusions, loss or misplacement issues, and too-weak illumination light intensities, have to be developed to improve the robustness of the robot system. Second, more efficient identification and recognition algorithms are to be devised to further improve the P&N and BAR operation accuracies while reducing the system complexity and computational load. In addition, we are also extending the application areas of such an integrated binocular vision and QR code identification technology.

Author Contributions

X.Y. and Z.F. designed the main aspects of the project and wrote the paper; H.W. and J.D. designed and implemented all the software required to performed the experiments; H.W. and Y.H. conceived and designed the experiments; Y.H. performed the experiments and evaluated the data; N.L., Z.Y., and G.X. finalized the paper writing, review, and editing.

Funding

This research was funded by the National Natural Science Foundation of China (Grant No. 61705184 and 51875477), the Natural Science Basic Research Plan in Shaanxi Province of China (Grant No. 2018JQ6014), the Fundamental Research Funds for the Central Universities (Grant No. G2018KY0308), and China Postdoctoral Science Foundation (Grant No. 2018M641013).

Conflicts of Interest

The authors declare no conflict of interest. The founding sponsors had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, and in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
P&NPositioning & Navigation
BARBook Accessing & Returning
QRQuick Response
3DThree-dimensional
QR-FEIQR code Feature Extraction and Identification
LTLinear Transformation
PTMperspective Transformation Matrix
UAVUnmanned Aerial Vehicle
RFIDRadio Frequency Identification
IKInverse Kinematics

References

  1. Gates, B. A robot in every home. Sci. Am. 2007, 296, 58–65. [Google Scholar] [CrossRef] [PubMed]
  2. Šabanović, S. Robots in society, society in robots. Int. J. Soc. Robot. 2010, 2, 439–450. [Google Scholar] [CrossRef]
  3. Ulrich, I.; Borenstein, J. The GuideCane-applying mobile robot technologies to assist the visually impaired. IEEE Trans. Syst. Man Cybern. Part A Syst. Hum. 2001, 31, 131–136. [Google Scholar] [CrossRef] [Green Version]
  4. Ramos-Garijo, R.; Prats, M.; Sanz, P.J.; Del Pobil, A.P. An autonomous assistant robot for book manipulation in a library. In Proceedings of the IEEE International Conference on Systems, Man and Cybernetics, Washington, DC, USA, 5–8 October 2003; Volume 4, pp. 3912–3917. [Google Scholar]
  5. Prats, M.; Martínez, E.; Sanz, P.J.; Del Pobil, A.P. The UJI librarian robot. Intell. Serv. Roboi. 2008, 1, 321. [Google Scholar] [CrossRef]
  6. Grewal, M.S.; Weill, L.R.; Andrews, A.P. Global Positioning Systems, Inertial Navigation, and Integration; John Wiley & Sons: Hoboken, NJ, USA, 2007. [Google Scholar]
  7. Pandey, A.; Pandey, S.; Parhi, D. Mobile robot navigation and obstacle avoidance techniques: A review. Int. Robot. Autom. J. 2017, 2, 00022. [Google Scholar] [CrossRef]
  8. Storms, W.; Shockley, J.; Raquet, J. Magnetic field navigation in an indoor environment. In Proceedings of the Ubiquitous Positioning Indoor Navigation and Location Based Service (UPINLBS), Kirkkonummi, Finland, 14–15 October 2010; pp. 1–10. [Google Scholar]
  9. Weingarten, J.W.; Gruener, G.; Siegwart, R. A state-of-the-art 3D sensor for robot navigation. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS 2004), Sendai, Japan, 28 September–2 October 2004; Volume 3, pp. 2155–2160. [Google Scholar]
  10. Savkin, A.V.; Matveev, A.S.; Hoy, M.; Wang, C. Safe Robot Navigation Among Moving and Steady Obstacles; Butterworth-Heinemann: Oxford, UK, 2015. [Google Scholar]
  11. Fuentes-Pacheco, J.; Ruiz-Ascencio, J.; Rendón-Mancha, J.M. Visual simultaneous localization and mapping: A survey. Artificial Intell. Rev. 2015, 43, 55–81. [Google Scholar] [CrossRef]
  12. Gupta, S.; Davidson, J.; Levine, S.; Sukthankar, R.; Malik, J. Cognitive mapping and planning for visual navigation. arXiv, 2017; 3, arXiv:1702.03920. [Google Scholar]
  13. Cheng, L.; Dai, Y.; Peng, R.; Nong, X. Positioning and navigation of mobile robot with asynchronous fusion of binocular vision system and inertial navigation system. Int. J. Adv. Robot. Syst. 2017, 14. [Google Scholar] [CrossRef]
  14. Nefti-Meziani, S.; Manzoor, U.; Davis, S.; Pupala, S.K. 3D perception from binocular vision for a low cost humanoid robot NAO. Robot. Auton. Syst. 2015, 68, 129–139. [Google Scholar] [CrossRef]
  15. Pol, R.S.; Murugan, M. A review on indoor human aware autonomous mobile robot navigation through a dynamic environment survey of different path planning algorithm and methods. In Proceedings of the 2015 International Conference On Industrial Instrumentation and Control (ICIC), Pune, India, 28–30 May 2015; pp. 1339–1344. [Google Scholar]
  16. Wang, J.; Wang, X.; Wang, S.B.; Li, S.X.; Leng, Y. Floor segmentation algorithm for indoor vision/inertial integrated navigation. J. Chin. Inert. Technol. 2011, 19, 553–558. [Google Scholar]
  17. Scaramuzza, D.; Fraundorfer, F. Visual odometry [tutorial]. IEEE Robot. Autom. Mag. 2011, 18, 80–92. [Google Scholar] [CrossRef]
  18. Yebes, J.J.; Bergasa, L.M.; García-Garrido, M. Visual object recognition with 3D-aware features in KITTI urban scenes. Sensors 2015, 15, 9228–9250. [Google Scholar] [CrossRef] [PubMed]
  19. Wang, T.; Cai, Z.; Wang, Y. Integrated vision/inertial navigation method of UAVs in indoor environment. J. Beijing Univ. Aeronaut. Astronaut. 2018, 44, 176–186. [Google Scholar]
  20. Eimon, K.; Anezaki, T.; Tansuriyavong, S.; Yagi, Y. Development of Human-Tracking Robot by Using QR Code Recognition. IEEJ Trans. Ind. Appl. 2011, 131, 151–158. [Google Scholar] [CrossRef]
  21. Zhang, H.; Zhang, C.; Yang, W.; Chen, C.Y. Localization and navigation using QR code for mobile robot in indoor environment. In Proceedings of the IEEE International Conference on Robotics and Biomimetics, Zhuhai, China, 6–9 December 2015; pp. 2501–2506. [Google Scholar]
  22. Li, W.; Duan, F.; Chen, B.; Yuan, J.; Tan, J.T.C.; Xu, B. Mobile robot action based on QR code identification. In Proceedings of the IEEE International Conference on Robotics and Biomimetics, Guangzhou, China, 11–14 December 2012; pp. 860–865. [Google Scholar]
  23. Suriyon, T.; Keisuke, H.; Choompol, B. Development of guide robot by using QR code recognition. In Proceedings of the Second TSME International Conference on Mechanical Engineering, 19–21 October 2011; Volume 21. [Google Scholar]
  24. Zhang, B.F.; Tian, X.Z.; Zhang, X.L. A camera calibration method based on plane grid points. Adv. Mater. Res. 2011, 230, 723–727. [Google Scholar] [CrossRef]
  25. Wang, W.; Hong, J.; Tang, Y.; Shi, B. A multi-camera calibration technique based on active vision. In Proceedings of the International Conference on Information Engineering and Computer Science (ICIECS 2009), Wuhan, China, 19–20 December 2009; pp. 1–4. [Google Scholar]
  26. Stentz, A. The D* Algorithm for Real-Time Planning of Optimal Traverses; Technical Report; Robotics Institute, Carnegie Mellon University: Pittsburgh, PA, USA, 1994. [Google Scholar]
  27. Ferguson, D.; Stentz, A. Field D*: An interpolation-based path planner and replanner. In Robotics Research; Springer: Berlin/Heidelberg, Germany, 2007; pp. 239–253. [Google Scholar]
  28. Koenig, S.; Likhachev, M. Fast replanning for navigation in unknown terrain. IEEE Trans. Robot. 2005, 21, 354–363. [Google Scholar] [CrossRef] [Green Version]
  29. Lienhart, R.; Maydt, J. An extended set of haar-like features for rapid object detection. In Proceedings of the 2002 International Conference on Image Processing, Rochester, NY, USA, 22–25 September 2002; Volume 1. [Google Scholar] [CrossRef]
  30. Viola, P.; Jones, M. Rapid object detection using a boosted cascade of simple features. In Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR 2001), Kauai, HI, USA, 8–14 December 2001; Volume 1. [Google Scholar]
  31. Xiong, S.W.; Zong, X.L.; Zhu, G.F. Improved face detection method based on AdaBoost algorithm. Appl. Res. Comput. 2007, 24, 298–300. [Google Scholar]
  32. Jones, B.A.; Walker, I.D. Kinematics for multisection continuum robots. IEEE Trans. Robot. 2006, 22, 43–55. [Google Scholar] [CrossRef]
  33. Wampler, C.W. Manipulator inverse kinematic solutions based on vector formulations and damped least-squares methods. IEEE Trans. Syst. Man Cybern. 1986, 16, 93–101. [Google Scholar] [CrossRef]
  34. Corke, P.I. A simple and systematic approach to assigning Denavit–Hartenberg parameters. IEEE Trans. Robot. 2007, 23, 590–594. [Google Scholar] [CrossRef]
Figure 1. Structure design of the library mobile robot for book accessing and returning (BAR) operations. (a) The overall library robot structure. Inset: The robot body with a lifting rod fixed on it; (b) The robotic arm structure design for BAR operations.
Figure 1. Structure design of the library mobile robot for book accessing and returning (BAR) operations. (a) The overall library robot structure. Inset: The robot body with a lifting rod fixed on it; (b) The robotic arm structure design for BAR operations.
Sensors 19 00783 g001
Figure 2. Working flow of the robot binocular vision system.
Figure 2. Working flow of the robot binocular vision system.
Sensors 19 00783 g002
Figure 3. A pinhole system utilized for modeling a camera of the robot binocular vision system. It consists of four coordinate systems, wherein O c and Z c denote the optical center and optical axis of the camera, respectively.
Figure 3. A pinhole system utilized for modeling a camera of the robot binocular vision system. It consists of four coordinate systems, wherein O c and Z c denote the optical center and optical axis of the camera, respectively.
Sensors 19 00783 g003
Figure 4. (a) Binocular vision system imaging based robot real-time route planning mechanism. (b) A schematic image showing the 2D robot and library base coordinate systems.
Figure 4. (a) Binocular vision system imaging based robot real-time route planning mechanism. (b) A schematic image showing the 2D robot and library base coordinate systems.
Sensors 19 00783 g004
Figure 5. Haar features for object identification. (a) Typical Haar-like features. (b) Denoting a face utilizing the Haar-like feature.
Figure 5. Haar features for object identification. (a) Typical Haar-like features. (b) Denoting a face utilizing the Haar-like feature.
Sensors 19 00783 g005
Figure 6. Cascaded classification model for quick response (QR)-code feature extraction.
Figure 6. Cascaded classification model for quick response (QR)-code feature extraction.
Sensors 19 00783 g006
Figure 7. Schematic for 3D reconstruction for a point P in the binocular vision system.
Figure 7. Schematic for 3D reconstruction for a point P in the binocular vision system.
Sensors 19 00783 g007
Figure 8. (a) The binocular vision based robot BAR operation control mechanism. (b) The modified- DH convention based link diagram for the robotic arms.
Figure 8. (a) The binocular vision based robot BAR operation control mechanism. (b) The modified- DH convention based link diagram for the robotic arms.
Sensors 19 00783 g008
Figure 9. Library robot binocular vision system calibration. (a) The original QR code images utilized for calibration. (b) The corner-point images extracted from the original QR code images.
Figure 9. Library robot binocular vision system calibration. (a) The original QR code images utilized for calibration. (b) The corner-point images extracted from the original QR code images.
Sensors 19 00783 g009
Figure 10. Calibrated camera system and its mapping effects. (a) The left camera model of the binocular vision system. (b) The projection error of the left camera system.
Figure 10. Calibrated camera system and its mapping effects. (a) The left camera model of the binocular vision system. (b) The projection error of the left camera system.
Sensors 19 00783 g010
Figure 11. Simulated binocular vision system model configuration.
Figure 11. Simulated binocular vision system model configuration.
Sensors 19 00783 g011
Figure 12. Part of the positive QR code image samples.
Figure 12. Part of the positive QR code image samples.
Sensors 19 00783 g012
Figure 13. (a) QR code image classification results, based on the Haar feature; (b) QR code identification results.
Figure 13. (a) QR code image classification results, based on the Haar feature; (b) QR code identification results.
Sensors 19 00783 g013
Figure 14. A set of QR code images acquired by the robot binocular vision system. (a) QR images obtained by left-hand side camera. (b) QR images acquired by the right-hand side camera.
Figure 14. A set of QR code images acquired by the robot binocular vision system. (a) QR images obtained by left-hand side camera. (b) QR images acquired by the right-hand side camera.
Sensors 19 00783 g014
Figure 15. The library grid map utilized for robot route planning experiments. (a) A 9 × 9 grid map established for the lab space; (b) The robot route established with D * Lite algorithm.
Figure 15. The library grid map utilized for robot route planning experiments. (a) A 9 × 9 grid map established for the lab space; (b) The robot route established with D * Lite algorithm.
Sensors 19 00783 g015
Figure 16. Two images of an obstacles identified acquired by robot binocular vision system for obstacle position calculation. (a) An obstacle image acquired by the left hand-side camera; (b) An obstacle image acquired by right hand-side camera.
Figure 16. Two images of an obstacles identified acquired by robot binocular vision system for obstacle position calculation. (a) An obstacle image acquired by the left hand-side camera; (b) An obstacle image acquired by right hand-side camera.
Sensors 19 00783 g016
Figure 17. Re-planned trajectory route compared to the original one. (a) The re-planned robot trajectory after an obstacle was detected at g ( 6 , 6 ) ; (b) The original robot trajectory route.
Figure 17. Re-planned trajectory route compared to the original one. (a) The re-planned robot trajectory after an obstacle was detected at g ( 6 , 6 ) ; (b) The original robot trajectory route.
Sensors 19 00783 g017
Figure 18. Experimental verification of the robot real-time route re-planning function with the binocular vision system using the X–Y plane projection map. (a) A shortest path route calculated on the initial digital map between the robot and target; (b) A new path calculated from the new robot location to target once obstacles were identified during its navigation process; (c) Robot reaches the target with the obstacles avoided; (d) Robot route planning process for returning back to the starting point.
Figure 18. Experimental verification of the robot real-time route re-planning function with the binocular vision system using the X–Y plane projection map. (a) A shortest path route calculated on the initial digital map between the robot and target; (b) A new path calculated from the new robot location to target once obstacles were identified during its navigation process; (c) Robot reaches the target with the obstacles avoided; (d) Robot route planning process for returning back to the starting point.
Sensors 19 00783 g018
Figure 19. The 20 spatial coordinates fall within the coordinate error range.
Figure 19. The 20 spatial coordinates fall within the coordinate error range.
Sensors 19 00783 g019
Table 1. The modified DH parameters for a single robotic arm.
Table 1. The modified DH parameters for a single robotic arm.
Link No.Joint Angle θ i Link Offset d i (cm)Link Length a i (cm)Torsion Angle α i
1 θ 1 000
2 θ 2 00 90 °
3 θ 3 017.460
4 θ 4 202 90 °
Table 2. Binocular vision system parameters.
Table 2. Binocular vision system parameters.
CamerasLeft CameraRight Camera
Parameters Central ValueError Range (±)Central ValueError Range (±)
Focal length f[993.26787 992.43228][4.01299 4.18855][984.20729 977.31964][3.33835 3.23414]
Principal point[330.55970 203.43986][4.07621 5.80814][299.56229 260.10626][5.570527 4.04667]
Skew: α r i g h t 0.000000.000000.000000.00000
Angles of pixel axes90.000000.0000090.000000.00000
Distortion: k c r i g h t [0.03398 0.74095 −0.2645 −0.00608 0.00000][0.02857 0.25087 0.00277 0.00212 0.00000][0.18789 −0.49039 0.00654 −0.01838 0.00000][0.03149 0.23166 0.00187 0.00329 0.00000]
Table 3. Binocular vision system calibration results.
Table 3. Binocular vision system calibration results.
Central ValuesError Range (±)
Rotation vector R[0.05895 0.04133 −0.00169][0.00677 0.00690 0.00028]
Translation vector T[62.10517 −0.23686 −2.96750][0.24132 0.20697 1.58224]
Table 4. X, Y, and Z coordinates of a point in base coordinate system, calculated five times.
Table 4. X, Y, and Z coordinates of a point in base coordinate system, calculated five times.
X (mm)Y (mm)Z (mm)
123.84394991.087583273.609231
224.01399991.216968274.830701
324.12120491.494224274.830701
424.22937191.626013276.063126
524.50787091.904512277.306653
Table 5. Binocular vision system versus conventional method.
Table 5. Binocular vision system versus conventional method.
Successful TimesFailed TimesNumber of Obstacles HitTime Used for BAR Operations
Global planning algorithm adopted825321
Binocular vision system1000246
Table 6. The 20 spatial coordinates determined with the inverse kinematics (IK) model for a book.
Table 6. The 20 spatial coordinates determined with the inverse kinematics (IK) model for a book.
x (mm)y (mm)z (mm)
123.8439491124.618266191.0875831192.0387431273.60923111277.306653
224.0139991224.618266291.2169681292.0387432274.83070112277.306653
324.1212041324.618266391.4942241392.0387433274.83070113277.306653
424.2293711424.618266491.6260131492.0387434276.06312614277.306653
524.2293711524.72966591.6260131592.3184965276.06312615277.306653
624.2293711624.72966691.6260131692.3184966276.06312616277.306653
724.507871724.72966791.9045121792.3184967276.06312617277.306653
824.507871824.898019891.9045121892.4552088276.06312618278.561435
924.507871925.010679991.9045121992.4552089276.06312619278.561435
1024.507872025.0106791092.0387432092.45520810276.06312620278.561435

Share and Cite

MDPI and ACS Style

Yu, X.; Fan, Z.; Wan, H.; He, Y.; Du, J.; Li, N.; Yuan, Z.; Xiao, G. Positioning, Navigation, and Book Accessing/Returning in an Autonomous Library Robot using Integrated Binocular Vision and QR Code Identification Systems. Sensors 2019, 19, 783. https://0-doi-org.brum.beds.ac.uk/10.3390/s19040783

AMA Style

Yu X, Fan Z, Wan H, He Y, Du J, Li N, Yuan Z, Xiao G. Positioning, Navigation, and Book Accessing/Returning in an Autonomous Library Robot using Integrated Binocular Vision and QR Code Identification Systems. Sensors. 2019; 19(4):783. https://0-doi-org.brum.beds.ac.uk/10.3390/s19040783

Chicago/Turabian Style

Yu, Xiaojun, Zeming Fan, Hao Wan, Yuye He, Junye Du, Nan Li, Zhaohui Yuan, and Gaoxi Xiao. 2019. "Positioning, Navigation, and Book Accessing/Returning in an Autonomous Library Robot using Integrated Binocular Vision and QR Code Identification Systems" Sensors 19, no. 4: 783. https://0-doi-org.brum.beds.ac.uk/10.3390/s19040783

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