Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 1
A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics - - PowerPoint PPT Presentation
A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics Sebastian Starke Master Thesis Colloquium TAMS, WTM Department of Informatics University of Hamburg 21.06.2016 Master Thesis Page 1 A Hybrid Genetic Swarm Algorithm for
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 1
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 2
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 3
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 4
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 5
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 6
(a) (b) (c) (d) (e)
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 7
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 8
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 9
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 10
l → Length of the kinematic chain → Distance from base to end effector
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 11
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 12
(P. Beeson &
TRAC-IK)
(Wang et al.)
extrema
motion
Gradient-based
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 13
(A. Aristidou)
Geometric
Reaching IK“
character animation and motion tracking
space
movement
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 14
(C. E. González)
(T. Collins &
Probabilistic
local extrema
more expensive
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 15
Learning
posture objectives
samples remains very difficult
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 16
Success Accuracy Time Displacement Flexibility
A solution that is existent shall be found. The solution shall be as precise as possible. → approximately or less than 1mm The solution shall be found as fast as possible. → few ms The distance between consecutive solutions shall be as minimal as possible. The algorithm maintains high robustness, scalability and convergency even for greatly varying kinematic structure.
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 17
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 18
formulated by C. Darwin
A.E. Eiben and J. E. Smith – Introduction to Evolutionary Computing, Springer, 2003
and schools of fish
solve a complex problem
Similarities
→ Search space exploration by a group of organisms → Solution quality determined by fitness function → Simultaneous search for multiple local extrema → High robustness and scalability as well as effectiveness for multi-objective optimization
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 19
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 20
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 21
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 22
→ Models dynamic environment → Determines individuals that are „most responsive to change“ → Biologically plausible
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 23
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 24
→ Heuristic evolutionary gradients for continuous evolution dynamics → Evolutionary gradient = amount of change during mutation and adoption (see later) Randomly interpolated genotype of parent chromosomes Randomly weighted swarm dynamics from evolutionary gradient g Constant recombination rate
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 25
Fixed mutation rate and strength not suitable for arbitrary kinematic models
→ Let the population itself determine the required amount of exploitation and exploration by an extinction rate that controls mutation independent from the problem dimensionality
Mutation Strength
the search space dimension Mutation Rate
dimensionality Extinction Factor
individual within population
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 26
→ Natural behaviour over lifetime → Dynamic search space exploration → Very similar to PSO Averaged gradient to parents Gradient to best individual Randomly interpolated
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 27
→ Immediately remove any parent whose fitness is worse than its offspring
→ Encourages to keep track of multiple local extrema → Avoid premature convergency
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 28
→ Merge all elites and newly generated offspring
→ Let the fittest individuals (elites) survive in order not to lose the current evolutionary progress
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 29
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 30
Biased population 1 individual → currently assigned joint variable configuration All others → randomly generated chromosomes Determine whether desired accuracy in position and orientation is satisfied by the solution
extrema might take too long
→ could not be improved within last generation and → can not be improved by exploitation
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 31
→ Remember best solution in history → Let evolution continue approximation underneath
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 32
(Code running at single core implementation)
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 33
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 34
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 35
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 36
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 37
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 38
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 39
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 40
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 41
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 42
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 43
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 44
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 45
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 46
→ Pose tracking with 10^(-6) cartesian error (sum of position and orientation errors)
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 47
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 48
→ Accurate pose tracking at 1000-2000 Hz
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 49
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 50
→ Responsive shape-resembling joint value change
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 51
(c) (b) (a)
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 52
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 53
Jacobian CCD
GA PSO NN HGSA
Accuracy (m | rad) 0.00001 0.00001 0.0001 0.001 0.001 0.01 0.001 Time (ms) <1 - 10 1 - 100 10-50 50 - 500 30 - 600
Robustness Medium Medium Low High Medium Low High Scalability – – – + + + + – – + +
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 54
Orocos' KDL
(no joint limits)
TRAC-IK
(Beeson & Ames, 2015)
HGSA
Success Time
Success Time Success Time
PR2 83.14% 1.37ms 99.84% 0.59ms 100% 22.75ms LBR IIWA 37.71% 3.37ms 99.63% 0.56ms 100% 23.39ms
UR5
35.88% 3.30ms 99.55% 0.42ms 100% 27.88ms Baxter 61.07% 2.21ms 99.17% 0.60ms 100% 53.33ms
Scalability? Joint displacement due to random restarts?
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 55
PASO (Collins & Shen, 2016)
HGSA
Time Time 30 DoF 1.57s 0.066s 90 DoF 7.46s 0.233s 180 DoF 37.03s 0.717s
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 56
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 57
Master Thesis A Hybrid Genetic Swarm Algorithm for Interactive Inverse Kinematics
21.06.2016 Page 58
A.E. Eiben and J. E. Smith – Introduction to Evolutionary Computing, Springer, 2003
Graphical Models, 2011
Planning and Inverse Kinematics. Information Sciences Institute Technical Report, 2016 Li-Chun Tommy Wang and Chih Cheng Chen – A combined optimization method for solving the inverse kinematics problems of mechanical manipulators, volume 7, pages 489{499. IEEE Transactions on Robotics and Automation, 1991
III University of Madrid, 2014
IEEE RAS Humanoids Conference, Seoul, Korea, November 2015 Online – https://bitbucket.org/traclabs/trac_ik.git (20.06.2016) Online – http://www.unity3d.com (20.06.2016) (a) Online – http://spectrum.ieee.org/image/MjM4NDQzNA (20.06.2016) (b) Online – http://core0.staticworld.net/images/article/2013/12/kuka-robot-arms-at-work-100155065-orig.jpg (20.06.2016) (c) Online – http://www.batou.fr/wp-content/uploads/motion_capture_1.jpg (20.06.2016) (d) Online – http://www.batou.fr/wp-content/uploads/motion_capture_1.jpg (20.06.2016) (e) Online – https://sensor.cs.washington.edu/robotbci/images/PR2.jpg (20.06.2016)