scieee AI-readable full text Open interactive document viewer

Moving objects and removing obstacles with two robotic hands

Rodr guez Pacheco, Carlos Arturo

Abstract

This work deals with the problem of planning the movements of a two-hand system in order to grasp an object with one hand and using the other to remove potential obstacles. The approach is based on a Probabilistic Road Map that does not rule out samples with collisions with removable objects but instead classifies them according to the collided obstacle(s), and allows the search of free paths with the indication of which objects must be removed from the work-space to make the path be valid. The approach has been implemented and some examples are presented in this work.

Full text

Universitat Polit` ecnica de Catalunya Master in Artificial Intelligence Master Thesis Moving objects and removing obstacles with two robotic hands Carlos Arturo Rodr´ıguez Pacheco Advisor: Ra´ul Su´arez Feij´oo September 2012 Contents Abstract 7 Acknowledgment 9 1 Introduction 11 1.1 Motivation.................................... 11 1.2 Objectivesandscope.............................. 11 1.3 Relatedworks.................................. 12 1.4 Documentstructure............................... 14 2 Basic background 15 2.1 Deterministic methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.1.1 Visibilitygraphs ............................ 15 2.1.2 Potentialfield.............................. 16 2.2 Random and Probabilistic methods . . . . . . . . . . . . . . . . . . . . . . 17 2.2.1 Randomized path planner RPP . . . . . . . . . . . . . . . . . . . . 17 2.2.2 Rapidly exploring random tree RRT . . . . . . . . . . . . . . . . . 18 2.2.3 Probabilistic road map PRM . . . . . . . . . . . . . . . . . . . . . . 19 3 Proposed Approach 23 3.1 Formal description of the approach . . . . . . . . . . . . . . . . . . . . . . 24 3.1.1 Algorithm solvedProblem ........................ 25 1 Moving objects and removing obstacles with two robotic hands 2 3.1.2 Algorithm findPath ........................... 26 3.1.3 Algorithm testGrasps .......................... 26 3.1.4 Algorithm PRMwO ........................... 28 3.1.5 Algorithm obstaclesRecognition .................... 30 4 Implementation 33 4.1 Hardwaretools ................................. 33 4.1.1 St¨aubli TX90 Indutrial Robot . . . . . . . . . . . . . . . . . . . . . 33 4.1.2 Schunk Dexterous Hand SDH2 . . . . . . . . . . . . . . . . . . . . . 34 4.1.3 Schunk Anthropomorphic Hand SAH . . . . . . . . . . . . . . . . . 36 4.1.4 Sony Camera FCB-IX45CP . . . . . . . . . . . . . . . . . . . . . . 37 4.2 Softwaretools.................................. 38 4.2.1 Robot Operating System ROS . . . . . . . . . . . . . . . . . . . . . 38 4.2.2 The Kautham Project . . . . . . . . . . . . . . . . . . . . . . . . . 39 4.2.3 KauthamROS ............................. 39 5 Experimental Results 45 5.1 GeneralConsiderations............................. 45 5.2 Experiments................................... 47 5.2.1 Experiment1 .............................. 47 5.2.2 Experiment2 .............................. 49 5.2.3 Experiment3 .............................. 50 6 Conclusions and Future works 55 6.1 Conclusions ................................... 55 6.2 Futureworks .................................. 56 Bibliography 57 List of Tables 4.1 D-H parameters for the robot St¨aubli TX90. . . . . . . . . . . . . . . . . . 34 4.2 Joint range of values in degrees for the St¨aubli TX90 robot. . . . . . . . . 35 4.3 Value range in degrees of joint fingers SDH2. . . . . . . . . . . . . . . . . . 35 4.4 Value range in degrees of joint fingers SAH. . . . . . . . . . . . . . . . . . 37 5.1 Running information for the experiment 1. . . . . . . . . . . . . . . . . . . 48 5.2 Running information for the experiment 2. . . . . . . . . . . . . . . . . . . 50 5.3 Running information for the experiment 3. . . . . . . . . . . . . . . . . . . 53 3 List of Figures 2.1 Visibilitygraph.................................. 16 2.2 Potentialfields. ................................. 17 2.3 Randomized path planner RPP. . . . . . . . . . . . . . . . . . . . . . . . . 18 2.4 Rapidly exploring random tree RRT. . . . . . . . . . . . . . . . . . . . . . 19 2.5 Probabilistic road map PRM. . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.1 Generalprocedure. ............................... 24 3.2 Example of a precedence tree P T........................ 26 3.3 solvedProblem Algorithm diagram. . . . . . . . . . . . . . . . . . . . . . . 28 3.4 findPath Algorithm diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.5 PRMwO Algorithm diagram. . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.1 RobotSt¨aubliTX90............................... 34 4.2 Virtual model of the robot St¨aubli TX90. . . . . . . . . . . . . . . . . . . . 35 4.3 CS8controller. ................................. 36 4.4 Schunk Dexterous Hand SDH2. . . . . . . . . . . . . . . . . . . . . . . . . 37 4.5 Virtual model of the Schunk Dexterous Hand SDH2. . . . . . . . . . . . . 38 4.6 Schunk Anthropomorphic Hand SAH. . . . . . . . . . . . . . . . . . . . . . 39 4.7 Virtual model of the Schunk Anthropomorphic Hand SAH. . . . . . . . . . 40 4.8 Sony Camera FCB-IX45CP. . . . . . . . . . . . . . . . . . . . . . . . . . . 40 4.9 Kautham ROS graphicinterface. ....................... 43 5 Moving objects and removing obstacles with two robotic hands 6 5.1 Four different positions of the hand SAH for grasping a can. . . . . . . . . 46 5.2 Four different positions of the hand SDH2 for grasping a can. . . . . . . . . 46 5.3 Work-cell model for the experiment 1. . . . . . . . . . . . . . . . . . . . . . 47 5.4 Precedence tree PT for the experiment 1. . . . . . . . . . . . . . . . . . . . 48 5.5 Configuration RMcolliding. .......................... 48 5.6 Snapshots of the solution paths for the experiment 1. . . . . . . . . . . . . 49 5.7 Work-cell model for the experiment 2. . . . . . . . . . . . . . . . . . . . . . 50 5.8 Precedence tree PT for the experiment 2. . . . . . . . . . . . . . . . . . . . 50 5.9 Collision in example 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 5.10 Snapshots of the solution paths for the experiment 2. . . . . . . . . . . . . 51 5.11 Work-cell model for the experiment 3. . . . . . . . . . . . . . . . . . . . . . 52 5.12 Precedence tree P T for the experiment 3. . . . . . . . . . . . . . . . . . . . 52 5.13 Snapshots of the collision for the experiment 3. . . . . . . . . . . . . . . . 53 5.14 Snapshots of the solution paths for the experiment 3. . . . . . . . . . . . . 54 Abstract This work deals with the problem of planning the movements of a two-hand system in order to grasp an object with one hand and using the other to remove potential obstacles. The approach is based on a Probabilistic Road Map that does not rule out samples with collisions with removable objects but instead classifies them according to the collided obstacle(s), and allows the search of free paths with the indication of which objects must be removed from the work-space to make the path be valid. The approach has been implemented and some examples are presented in this work. 7 Moving objects and removing obstacles with two robotic hands 14 stakeholders in grasping tasks (Grasp planning). There are two types of grasps [16]: power grasps, in which the hand closes wrapping around the object, ignoring the points that end up making contact with the fingers; and precision grasps (Accurately grasps) where it is necessary to know the points of the object on which to place the fingers. There is a large number of works that aim to find points on the surface of an object to perform a precision grasp, which is the one that allows manipulation tasks (both 2D objects [17, 18], and for 3D objects [19, 20, 21]). Once these points are recognized have to be evaluated if are achievable by the robot (including the hand) and then pass to the motion planning, particularly in motion planning for the tasks of collecting and depositing objects; there are works that propose a solution to this problem exploring concepts such as re-grasping of objects [22, 23] and pick and place planning. 1.4 Document structure The document is distributed as follows, capter 2 present a basic background about the related theory about planning. The proposed approach is described in capter 3 through the created algorithms to generate the scene model based on shape recognition, the method for choosing the best grasp for each robotic hand type, and then is explained the method and algorithms to find path for a robot from the initial position to a given goal, in that case it is made for two different strategies. In capter 4 is shown the used tools (hardware and software) and the implementation, following the algorithms shown in the previus chapter, then in chapter 5 is explained the experimental set-up of the scene for the experiments executed and the results for each execution. Finally in chapter 6 the conclusion and future works. Chapter 2 Basic background The robot motion planning problem has been studied in the last three decades, and different approaches have been developed generating great interest in the research field. The problem of planning is to generate a path between two points in order to move a robot from the initial and goal position, this path must be ensured to be free of collisions with the environmental obstacles and with himself. There are several techniques for path planning considering the most relevant techniques it can be made the following classification: 2.1 Deterministic methods These methods consist of building a graph that connects the origin with the destination and then find the most appropriated paths considering some performance index which is usually the shortest distance. 2.1.1 Visibility graphs Proposed by [24], consists of a geometric approach to construct the two-dimensional graph assuming an environment where the obstacles can be represented by polygons. The graph is determined by applying the concept of visibility which consist in determine if two points on the space can be joined by a line segment that does not present interference with any obstacle. It generates a graph of connectivity between visible vertexes and chooses the best path. It has the disadvantage of generating paths which are very close to the obstacles [24]. Visibility graphs may be used to find Euclidean shortest paths among a set of polygonal obstacles in the plane: the shortest path between two obstacles follows straight line segments except at the vertices of the obstacles, where it may turn, so the Euclidean 15 Moving objects and removing obstacles with two robotic hands 16 shortest path is the shortest path in a visibility graph that has as its nodes the start and destination points and the vertices of the obstacles [25].Therefore, the Euclidean shortest path problem may be decomposed into two simpler subproblems: constructing the visibility graph, and applying a shortest path algorithm such as Dijkstra’s algorithm to the graph. Figure 2.1: Visibility graph. 2.1.2 Potential field The idea of a potential field is taken from nature. For instance a charged particle navigating a magnetic field, or a small ball rolling in a hill. The idea is that depending on the strength of the field, or the slope of the hill, the particle, or the ball can arrive to the source of the field, the magnet, or the valley in this example. In robotics, it can be simulated the same effect, by creating an artificial potential field that will attract the robot to the goal. The potential field method is found to be most popular technique in the generation of trajectories for mobile robots, and to be an elegant way in solving this problem. In the early development it is fund the one presented by [26], in which is proposed that the obstacles and the robot have the same electric charge sign in order to generate a repulsion while the target has an associated electric charge of opposite sign to attract the robot destination point. To generate the path with these potentials only requires the calculation of gradients [4]. For instance, lets assume that there is no obstacle in the environment, and that the robot should seek his goal. To do that in conventional planning, one should calculate the relative position of the robot to the goal, and then apply the suitable forces that will drive the robot to the goal. In potential field approach, it is created an attractive field going inside the goal. The potential field is defined across the entire free space, and in each time step, it is calculated the potential field at the robot position, and then calculate the induced force by this field. The robot then should move according to this force. Figure 2.2 illustrates this concept. It can also define another behavior, that allows the robot to avoid obstacles. It simply make each obstacle generate a repulsive field around it. If the robot approaches the obstacle, a repulsive force will act on it, pushing it away from the obstacle. Moving objects and removing obstacles with two robotic hands 17 Figure 2.2: Potential fields. The two behaviors, seeking and avoiding, can be combined by combining the two potential fields, the robot then can follow the force induced by the new field to reach the goal while avoiding the obstacle (see figure 2.2). 2.2 Random and Probabilistic methods These methods are based on random movements to determine the solution path in the configuration space, this consists in generate a random sequence of configurations that the robot can follow to move from the initial to final configuration, taking into account the criteria laid down by different planners. 2.2.1 Randomized path planner RPP The Randomized Path Planner algorithm RPP was developed by [1, 27] in the Computer Science Robotics Lab at Stanford to solve path planning problems in high dimensional configuration space. The planner is probabilistically resolution complete, namely, if the running time is not limited, the probability of finding a path approaches 1. However, in practice, it is not wanted the planner to run indefinitely, and the planner is terminated after certain prescribed time bound. Experiments with various kinds of robots have been conducted, and the results show that, in most cases, this planner is very efficient in finding a path, if there exists one, in high dimensional configuration space. This algorithm uses Brownian motion to get out of local minims. Moving objects and removing obstacles with two robotic hands 18 Figure 2.3: Randomized path planner RPP. Algorithm 1 RRT(Ci,Cg) Require: : Initial and Goal configurations Ciand Cg, maximum number of vertices K. Ensure: : Solution graph G 1Add Cias initial position in G 2for Vertex k=1 to the maximum number of vertices Kdo 3Crand ←Generate a RandomConfiguration() 4Cvertex ←Find the NearestVertex(Crand,G) 5Cnew ←NewConfiguration() 6Add Cnew as vertex of G 7Add Cvertex and Cnew as edge of G 8end for 9return G 2.2.2 Rapidly exploring random tree RRT An alternative in generating random paths are the Rapidly Exploring Random Tree RRT, this method was proposed by [7] in 1998. This method creates trees that spread at random to have a connection from the point of departure to the goal [28, 29]. A RRT is a data structure and algorithm that is designed for efficiently searching nonconvex high-dimensional spaces. RRTs are constructed incrementally in a way that quickly reduces the expected distance of a randomly-chosen point to the tree. RRTs are particularly suited for path planning problems that involve obstacles and differential constraints (nonholonomic or kinodynamic). RRTs can be considered as a technique for generating open-loop trajectories for nonlinear systems with state constraints. An RRT can be intuitively considered as a Monte-Carlo way of biasing search into largest Voronoi regions. Some variations can be considered as stochastic fractals. Usually, an RRT alone is insufficient to solve a planning problem. Thus, it can be considered as a component that can be incorporated into the development of a variety of different planning algorithms. The basic idea to build a RTT it is described in Algorithm 1 Moving objects and removing obstacles with two robotic hands 19 Figure 2.4: Rapidly exploring random tree RRT. 2.2.3 Probabilistic road map PRM This method was proposed separately by [30, 3]. The probabilistic road map PRM seek to create a map randomly generated collision-free which fast connects initial position to the goal. In [31] it can be seen the implementation of the PRM algorithm applied to robot manipulators. The PRM basically are divided in two phases: preprocessing and query process, this phases are describe as follow bellow The preprocessing is computationally expensive, in this phase is generated a graph called road map complex which is enough to solve any problem of motion. The cost to adding a new node to the road map is expensive due that for each node is necessary to make collision detection in the configuration space and run a local planner to proof does that not exists collision between the two nodes that are to connect. The nodes are randomly generated, the idea was innovative and interesting as well it is getting away from the local minims, and this is an important advantage. In the query phase the graph is used after generating the full road map, including in the graph the initial and goal state, this ensures that exist at least one path that connect the initial and goal samples. In order to find the optimal path for a given problem is often used search algorithms like Dijkstra or A*, these algorithms ensure the shortest path for a given graph. A different variant of PRM has been appeared in the last decade in order to get a better performance of this method some of this PRM variants are describe bellow. Obstacle-based PRM (OBPRM): This method is aimed to explore the configuration space sites where there are obstacles and no over on free zones. The edges of the free space, which are the same obstacles, are given by configuration free. After obtaining the edges of the obstacles, you can perform a random or deterministic sampling to Moving objects and removing obstacles with two robotic hands 20 Algorithm 2 PRM(Ci,Cg) Require: : Initial and Goal configurations Ciand Cg Ensure: : Solution path P 1Add Ciand Cgto the graph G 2while Exist samples Sdo 3if Siis collision free then 4Add Sia new vertex on the graph G 5for Each neighborhood Qof Sion the graph Gdo 6if Siis different to Qthen 7Connect Siand Q 8end if 9end for 10 if Ciand Cgconnected then 11 Find the shortest path 12 return P 13 end if 14 end if 15 end while Figure 2.5: Probabilistic road map PRM. find a solution path skirting obstacles. This type of sampling routes makes that the algorithm are obtained as short as possible [32]. Visibility-based PRM: This approach generates a reduced graph with a rejection point method [33]. This type of algorithms base their effectiveness rejecting sample points that are not considered useful. In this case, only selecting those who will fall into the follow criteria: Guards: A node belongs to this group when you try to include in the graph only sees him. Connectors: Those able to connect two different guards belonging to unrelated groups of the graph. In case of attempts to introduce a node that does not belong to either of the two groups is rejected immediately. Figure shows the graph generated. Moving objects and removing obstacles with two robotic hands 21 Reachability-based PRM: The idea of this approach is to make a small road map but a large amplitude. It uses the technique of retraction to the median axis, that is, any point that wants to be included in the graph must belong to the median axis. On the other hand introduces interesting notions of nodes and useful paths. Basically, a path is useful if the relationship between length and distance joins or two nodes crossing the graph is greater than some constant k [34]. Lazy PRM: This approach is based on simple queries as opposed to the classic PRM that is multi-queries. The pre-processing phase is performed similar to the PRM procedure but with a difference which is that in this case is not performed collision checking over the samples, this substantially accelerates this stage of the process [6]. In the query phase seek the shortest path, from the initial to the goal configuration and also makes the collision detection of the found path; if there are collisions it eliminates the stretches of the path that are in collision and try to connect with neighbors to create a new path, if it does not exist more samples, these are generated and the process is repeated until it is found a solution path without collisions. Fuzzy PRM: The fuzzy PRM in which the paths are generated in the pre-processing is not checked, they are assigned a probability to be free of collisions. In the query phase, the less likely paths are checked until they have a fairly high probability to be free of collision with the obstacles [35]. Chapter 3 Proposed Approach Consider two robot arms and a scenario where there is an object of interest to be grasped and some other removable objects, i.e. objects that can be removed from the scene by the robots themselves. The removable objects may act as obstacles that do not allow access to the object of interest. In this context the problem to be solved is: find a path for one robot to grasp the desired object and a set of paths for the other robot to remove (if necessary) all the obstacles. Basically, the proposed approach is as follows. A PRM is used to find a path for the robot in charge of grasping the object of interest (from now on referred to as the main robot), but, as a difference with the typical use of PRM a sample of the robot configuration that implies a collision of the robot with any removable object in the environment is not neglected, instead it is considered for the PRM in an usual way but associating to it a list with the collided obstacles. The same is done when a local planner checks the validity of a local segment connecting two samples for the PRM construction, if there are collisions with the removable objects these are just added to a list associated with the segment. This approach is called as Probabilistic Road Map with Obstacles (PRMwO). Using the PRMwO as a regular PRM it is possible to obtain a path for the main robot to grasp the object of interest and at the same time an associate list of obstacles that must be removed in order to make the path collision free (and therefore really valid) for the current positions of the movable objects, figure 3.1 describe the general procedure. Next step is the search of a path for the other robot (from now on referred to as the assistant robot) to remove each of the obstacles for the main robot. This is done using also a PRMwO for the assistant robot to grasp and remove each obstacle. Since some other objects may act as new obstacles, the procedure is iteratively repeated until a path without obstacles is found for each of the objects to be removed or a loop is found (i.e one object is an obstacle to grasp another one and vice versa). In order to increase the probability of finding feasible valid paths, it is considered that the objects can be grasped with a set of different hand configurations, which are taken as different goal points when the PRMwO is built. The grasping configurations can be obtained using different procedures (see for instance [36]). In this work it is considered that the set of 23 Moving objects and removing obstacles with two robotic hands 30 Figure 3.4: findPath Algorithm diagram. 3.1.5 Algorithm obstaclesRecognition The method obstaclesRecognition() is shown in Algorithm 7. This method is completely independent of the planning approach, it is used a camera to capture an image image of the movable obstacles that are in the scene, then is used the method cvtColor (image,imagegray) to convert the image to grayscale imagegray . After it is reduced the image noise using the method GaussianBlur(imagegray, imageblur) this method is used to ensure false recognition of objects in the image. Since we are interested only in recognize the cans that are in the scene we have used the method HoughCircles(imageblur,MinDiametre,MaxDiametre) for recognizing of circumferences, which uses the generated image the method GaussianBlur and fixing minimum and maximum values of the diameter for the recognition of the circles. The recognized figures are stored in a vector and subsequently it is made their position transformations to the reference system of the virtual scene. Finally using the method sceneXML() is generated a virtual scene that includes the two arms system, the metal base in which are located the robots, and the table with the objects recognized from the actual scene. Moving objects and removing obstacles with two robotic hands 31 Algorithm 7 obstaclesRecognition() Require: : Null Ensure: : Virtual scene SceneXML 1define image,imagegray, and imageblur 2if can not capture the image then 3return Exception 4end if 5imagegray ←cvtColor(image,imagegray) 6imageblur ←GaussianBlur(imagegray,imageblur) 7vector pcircles 8pcircles ←HoughCircles(imageblur,MinDiametre,MaxDiametre) 9for c= 0 to c < sizeofpcircles do 10 pcirclesT ransform ←getTransformation() 11 end for 12 SceneXML ←sceneXML(pcirclesT ransform) 13 return SceneXML Moving objects and removing obstacles with two robotic hands 32 Figure 3.5: PRMwO Algorithm diagram. Chapter 4 Implementation In order to test the developed algorithms in a virtual representation of the IOC work-cell, the implementation of the proposed algorithms have been developed using the programming language C++ and was coupled to The Kautham Project. This is a planning and simulation platform developed at the Institute of Industrial Systems and Control (IOC), also OpenCV [37] which was used in order to detect the movable obstacles in the scene and then build the virtual scene used on the simulations. Kautham ROS was used for the communication layer between applications developed through communication nodes (will be explained in detail below), you can find more information about ROS [38]. Below are the most important elements for the implementation. 4.1 Hardware tools The IOC work-cell have two industrial robots St¨aubli TX90, one Shunk anthropomorphic hand (SAH) and one Shunk Dexterous hand (SDH2), bellow is describes each robot and the models used for the experimental simulations. 4.1.1 St¨aubli TX90 Indutrial Robot The St¨aubli TX90 is a industrial robot (see figure 4.1) with 6 degrees of freedom all of them rotational actuated by servo motors. Using the values of θfrom The parameters of Denavit-Hartenberg (D-H) is possible to move the robot to a given position, the table 4.1 shows the values of the parameters D-H for the home position. This is a medium sized robot and is oriented towards the industrial field, its structure gives it great versatility and can be used in multiple applications, and this robot can be mounted both on the floor or ceiling. The table 4.2 shows the maximum and minimum values for each joint of the robot, using the parameters D-H is possible to describe the inverse kinematic of the robot model by the sequences R(x, α)T(x, a)R(z, θ)T(z, d). 33 Moving objects and removing obstacles with two robotic hands 34 Figure 4.1: Robot St¨aubli TX90. Segment αaθd Shoulder 0 0 0 478 ForeArm -90 50 -90 50 Elbow 0 425 90 0 Arm 90 0 0 425 Wrist -90 0 0 0 TCP 90 0 0 100 Tabla 4.1: D-H parameters for the robot St¨aubli TX90. Using the mesh models provided by the manufacturer and all the information presented before is possible to build a virtual model of the robot in order to do the simulation experiments, the figure 4.2 shows the virtual model of the robot used for the simulations. The St¨aubli TX90 robot has an associated CS8 controller (see figure 4.3) from the same manufacturers, the driver uses the VxWorks operating system that provides different services to operate the robot. In addition, the controller has a power module and a communication module, the latter module has a service called SOAP which is a standard protocol that allows communication via XML data exchange, this allows to develop applications in C++ to operate the robot using ROS nodes. 4.1.2 Schunk Dexterous Hand SDH2 The Schunk Dexterous Hand (SDH2) is a robotic hand that have three identical fingers with 7 degrees of freedom (dof) that are distributed as follows, each finger have two dof (one rotational between the palm and the proximal segment and one between the segments Moving objects and removing obstacles with two robotic hands 35 Joint Minimum Maximum Shoulder -180 180 ForeArm -130 147.5 Elbow -145 145 Arm -270 270 Wrist -115 140 TCP -270 270 Tabla 4.2: Joint range of values in degrees for the St¨aubli TX90 robot. Figure 4.2: Virtual model of the robot St¨aubli TX90. proximal and distal). Two of the fingers are mechanically coupled share the joint and the third can’t do this rotations, figure 4.4 shows the SDH2 hand. In the other side each finger has two tactile sensor. The physically limits of the joints are given in angles as shows the table 4.3. Joint Minimum Maximum 1 0 90 2 - 7 -90 90 Tabla 4.3: Value range in degrees of joint fingers SDH2. Using the D-H parameters that describe the kinematics of the hand SDH2 and triangular mesh models provided by the manufacturers [39] the virtual model was built for the experimental simulations, figure 4.5 shows the SDH2 model used. The robotic hand comunication between SDH2 and a computer is done through industry standard interface EN ISO 9404-1-50 with RS232 serial interface for the touch sensor controller and serial Moving objects and removing obstacles with two robotic hands 36 Figure 4.3: CS8 controller. interface RS232 or CAN controller joints. In the other side the manufacturer provides libraries in C + + and Python that develop programs that can be used for commanding the hand. 4.1.3 Schunk Anthropomorphic Hand SAH Trying to emulate the human hand Schunk-hand SAH has been developed by The German Aerospace Center (DLR) which consists of four identical fingers, one of this fingers that functions as an thumb finger. The dimensions of the hand is more or less double that human hand with a modular design and actuated by servomotors, figure 4.6 shows the SAH. The sensors at the fingers provide the force and positioning data for each joint (4 for each finger). the palm is the base of the hand system and is connected with the first two joints of each finger, this correspond to the movements of flexion and abduction. The third and fourth joints for flexion movements; this two joints are coupled with a one to one relationship, and have an additional articulation at the base of the thumb which allows this to a further rotation of ninety degrees. The SAH has 17 joints but four of this joints are coupled so the total degrees of freedom are 13. The table 4.4 shows the maximum and minimum values for each joint. The perfect integration of all drives including electronics in fingers and palm enables the mounting to any robot arms. In other to connect the hand physically SAH have a base mount that allows the hand to be connected to the industrial robot; the base has electrical connections for power supply and to command the hand. On the other side, the manufacturer provides libraries in C++ that develop programs that can be used as ROS nodes to command the hand. Using the D-H parameters that describe the kinematics of the hand SAH and triangular mesh models provided by the manufacturers [40] the virtual model was built for the experimental simulations, as shown in figure 4.7. Moving objects and removing obstacles with two robotic hands 37 Figure 4.4: Schunk Dexterous Hand SDH2. Joint Minimum Maximum 0 0 90 1 -15 15 2 -4 65 3 5 60 Tabla 4.4: Value range in degrees of joint fingers SAH. 4.1.4 Sony Camera FCB-IX45CP Today computer vision plays an important role in developing multiple applications areas, the field of robotics is not immune from the advances and advantages of computer vision systems, for this work has been developed a vision system basic for the detection of plane figures to determine the position of the movable obstacles that are involved in the workspace of the robots. To develop this small vision system was used a Sony FCBIX45CP (see Figure) available on the IOC laboratory of robotics. The Sony FCB-IX45CP colour block camera series incorporates high-performance Digital Signal Processing (DSP) and firmware that greatly enhance their operation and picture quality compared to conventional block cameras. Is ideal for numerous of general purpose applications. For example, they can be integrated into low vision systems, photo booths, etc.This camera feature a 72x zoom ratio (18x optical, 4x digital) and a minimum illumination of 1.0 lx. The camera is working on the scene, provides a complete view of the worktable of the robots, so it is possible the detection of objects with basic shapes Moving objects and removing obstacles with two robotic hands 38 Figure 4.5: Virtual model of the Schunk Dexterous Hand SDH2. such as cylinders and cubes using only 2D. The system has been implemented using the OpenCV API available in ROS. 4.2 Software tools The Kautham Project allows to describe the kinematics chains from a simple free flying robot to a complex multi-robot system with terminal elements like grippers or robotic hands, on other side ROS is a OS for robots that facilitates the communications between software and hardware tools through nodes, below are described how ROS and The Kautham Project are coupled in Kautham ROS of the development for this work. 4.2.1 Robot Operating System ROS The Robot Operating System ROS is a multi-platform open source system that offers different libraries and tools for the development a robotic system. The principal objective of ROS is to provide a comprehensive solution to the problem of robot development, providing solutions to the areas of: Hardware abstraction layer (HAL),Robotic algorithms low coupling, development tools, deployment and monitoring of robotic systems. ROS provides a communication mechanism (middleware) between nodes distributed robotic system. The objective of this system is twofold: first encapsulated, abstraction and reuse software and second the ubiquity, that is, no matter where this node is located (a robotic system may have many processors). These nodes communicate with each other Moving objects and removing obstacles with two robotic hands 39 Figure 4.6: Schunk Anthropomorphic Hand SAH. through message passing mechanisms Server/Client or Publish/Subscribe, service lookup, etc. For other hand ROS use OpenCV API, this tool helps to develop a visual detection system, this is used in this work in order to detect the movables obstacles in the work-cell and rebuild the virtual scene. 4.2.2 The Kautham Project The Kautham Project is an open source tool that solves the motion planning and robotic teleoperation (As haptic devices [41]) problems, this tool allows to describe the kinematic chains and triangular mesh models of a robot, and fix the degrees of freedom that can work for the robot. On the other side The Kautham Project provides different sampling methods to generate samples in the configuration space in order to find a free paths for motion planning, local planners and check collision methods are developed to facilitated the development of a new application using as base The Kautham Project. 4.2.3 Kautham ROS Coupling the motion planning and the visualization interface provided by The Kautham Project and the communication mechanisms offer by ROS has been developed Kautham ROS. The Planner node is responsible to provide service to solve the motion planning problem; in this work is used two different planner types, first has been used the classical PRM planner, this planner operates as follows: generates a random sampling in the configuration space then using nearest neighbor method tries to connect the free collision Moving objects and removing obstacles with two robotic hands 46 perform the master or the assistant tasks. The experiments are accompanied by a table which summarizes the relevant data of the execution results For obtaining the relative positions to the object SGα Oithat allows the grasp with robotic hands was used Kautham ROS with a scene that only contained the object model, in this case the can, and of each of the hands. For SAH hand there was fixed on the object 8 positions symmetrically distributed about the axis of symmetry and that allow doing the grasping. In Figure 5.1 it is shown four of these relative positions on the object. For SDH2 hand were calculated 9 relative positions for grasping the can, 8 distributed symmetrically around the axis of symmetry of the can and one allowing to grasp it by the top, in Figure 5.2 are shown four of these positions. Figure 5.1: Four different positions of the hand SAH for grasping a can. Figure 5.2: Four different positions of the hand SDH2 for grasping a can. Moving objects and removing obstacles with two robotic hands 47 5.2 Experiments Below three experimental cases are presented in which different configurations of the robots and hands are combined, varying configurations and positions of the robots in the work cell. Each experiment is accompanied by the data of the executions of the proposed algorithms. 5.2.1 Experiment 1 In the first experiment, one of the robots RAoRBmust perform the task of grasping and removing the yellow can which is the goal object that is located above the work table. In Figure 5.3 is shown a screen shot that corresponds to the work cell with the two robots, the red drink cans that can act as movable obstacles and the yellow can as the desired object . The two-hands robotics system includes two industrial arms St¨aubli TX90, one with a SAH right hand and in the other hand the SDH arm. The robotic system is located on the workcell as follows, the robot RAon a metal base and the robot RBis located on a movable rail, which allows the robot to be able to vary its position in the workspace. Figure 5.3: Work-cell model for the experiment 1. As a result of the motion planning for two-hands robotics system was obtained the following, the robot in charge of performing the tasks of the master robot was RArobot while the robot RBperforms the assistant robot task. Were obtained 4 solution plans for the robot RA(these plans correspond to 4 different ways of grasping the object) from which two of the plans presented collision with a movable object O3(red cans) and the other Moving objects and removing obstacles with two robotic hands 48 O∗ O3 Figure 5.4: Precedence tree PT for the experiment 1. Figure 5.5: Configuration RMcolliding. two calculated paths presented collision with two movable objects O3and O4, according to the algorithms presented in Chapter 3 of these 4 plans it was chosen the plan that had less number of collisions with movable objects. The selected plan pathMconsists of a sequence of 62 configurations for the robot RA(these configurations include arm and hand configurations). It is important to note that each calculated plan underwent a smooth path for obtaining smoother trajectories for the robot. Figure 5.4 shows the precedence tree P T which has as root node the goal object and its descendants correspond to movable obstacles that must be removed from the scene for RAto reach its goal. Figure 5.5 shows a zoom from the collision between the movable object O3and the robot RAin the plan pathM. On the other side for the RBrobot who is the responsible for removing the movable obstacles in the scene, it was found a solution plan to grasp the obstacle and remove it from the scene, the plan pathAhas 394 positions for configurations for the RBrobot. Figure 5.6 illustrates with screen shots the execution of the experiment, and in addition numerical details for this experiment can be seen in Table 5.1. path time (s) #PRMwO #vertices #position smoothed path pathM32.68 4 159 62 11.45 pathA311.7 1 81 394 0.7 Total 44.38 5 240 456 12.15 Tabla 5.1: Running information for the experiment 1. Moving objects and removing obstacles with two robotic hands 49 Figure 5.6: Snapshots of the solution paths for the experiment 1. 5.2.2 Experiment 2 In the second experiment, is wanted to emulate in a more realistic way the tasks that can be performed by a human with its arms and hands, in order to do that, the robots has been fixed in positions closer to each other (both on the metal table), in this opportunity they are not faced as was shown in the previous experiment, to get a more illustrative idea of the scene, figure 5.7 shows the workcell with both industrial arms St¨aubli TX90, in this case are used two SAH hands and in front of the two-hands system a shelf with different movable objects. Following the proposed approach, one of the robots RAor RB must perform the task of grasping and removing the yellow can. The cans are on a shelf. pathMfound a collision with only one red can (Figure 5.9 shows a configuration of RMcolliding with the obstacle). Then, a path pathAwas found for the other robot to remove the red can from the scene. The execution of pathMand pathAis illustrated in Figure 5.10, where snapshots of both paths are shown. Figure 5.8 shows the simple precedence tree for this example. The final solution (pathMand pathA) was found in 80.6 s, which includes calculation of 3 PRMs with 155 vertices and 495 positions for robot configurations. Table 5.2 shows the numerical result of the second experiment. Moving objects and removing obstacles with two robotic hands 50 Figure 5.7: Work-cell model for the experiment 2. O∗ O3 Figure 5.8: Precedence tree PT for the experiment 2. 5.2.3 Experiment 3 In the experiment 3, in a similar way as in experiment 1, one of the robots RAoRB must perform the task of grasping and removing the yellow can which is located on the worktable. In Figure 5.11 is shown a screen shot that corresponds to the work cell with the two robots, one table to which has been added an obstacle in a the shape of ”L” and red drink cans that can act as movable obstacles and the yellow can as the desired object. The robotic two-hands system includes two-armed industrial robots St¨aubli TX90, path time (s) #PRMwO #vertices #position smoothed path pathM0.5 2 4 101 0.0 pathA380.1 1 151 394 7.76 Total 80.6 5 155 495 7.76 Tabla 5.2: Running information for the experiment 2. Moving objects and removing obstacles with two robotic hands 51 (a) Configuration RMcolliding (b) Zoom of Collision Figure 5.9: Collision in example 1. Figure 5.10: Snapshots of the solution paths for the experiment 2. Moving objects and removing obstacles with two robotic hands 52 and two SAH hands. For this experiment the robot system is located on a metal base which is available in the IOC laboratory robotics. Figure 5.11: Work-cell model for the experiment 3. To remove O4, a pathA4was found but it has collisions with the red cans O2and O3, both obstacles were added to PT as children of O4and new paths pathA2and pathA3were found to remove O2and O3. The path pathA3generates a collision with O1, and using the same procedure a pathA1was found to remove O1. The execution of pathMand pathAi is illustrated in Figure. 5.14, where a snapshots of each paths at the time of grasping the corresponding can are shown; the sequence of objects to be removed before being able to reach O∗was O1, O2, O3, O4. Figure. 5.12 shows the precedence tree P T for this example. The final complete solution was found in 291.78 s, the required time and number of PRMs, vertices, positions for configurations, and smoothed paths are given in Table 5.3 O4 O2O3 O1 O∗ Figure 5.12: Precedence tree PT for the experiment 3. Moving objects and removing obstacles with two robotic hands 53 (a) Configuration RMcolliding (b) Zoom of Collision Figure 5.13: Snapshots of the collision for the experiment 3. path time (s) #PRMwO #vertices #position smoothed path pathM35.2 4 14 99 10.3 pathA1162.3 2 289 76 34.4 pathA222.8 2 13 83 5.9 pathA348.2 1 33 87 15.7 pathA423.1 1 14 90 4.1 Total 291.78 10 363 435 70.4 Tabla 5.3: Running information for the experiment 3. Moving objects and removing obstacles with two robotic hands 54 Figure 5.14: Snapshots of the solution paths for the experiment 3. Chapter 6 Conclusions and Future works 6.1 Conclusions This work has proposed a new planning approach which has been called PRMwO based on PRM method, for a two-hand robotic system. The system is able to use his arms to perform grasp and manipulation tasks of movable objects. The robotics system used one arm to remove the obstacles in order to clean the trajectory path for the other robot to be able to complete his task. It was developed a basic computer vision system that performs pattern recognizing of planar figures, this system allows to obtain the locations of movable obstacles in the actual work cell, and by using mathematical transformations is able to make a virtual reconstruction of the work cell, in which the calculations for path planning using the proposed method PRMwO is then executed. To validate the proposed planning method it was used a software tool based on ROS, developed at the IOC that allows to virtually represent the work-cell physically located Robotics Laboratory Institute of Industrial and Control Engineering of the Technical University of Catalonia. This tool is called Kautham ROS. Using this software tool a series of experiments were executed, allowing to observe how the behavior of the algorithms with real robot models will be. The proposed approach used for obtaining the roads that allowed each robot to fulfill the corresponding task is based on a scheduler that uses a PRM, on which modifications were made to be able to use the calculated plans since the nature of the manipulating problem requires special treatment of the restrictions to be considered to obtain viable plans. It was also proposed a new approach to treat collision checking; allowing collisions with movable obstacles that subsequently must be removed from the work scene. The performed experimentation allowed to ascertained that the proposed method works effectively, the calculated plans by the PRMwO are calculated separately for each robot avoiding collisions between them. 55