Docsity

Lego Structure Evolution: Graph-based Approach by Peysakhov, Galinskaya, and Regli, Slides of Robotics

Toggle sidebar
bg1
Representation and Evolution of
Lego-based Assemblies
Maxim Peysakhov, Vlada Galinskaya,
William C. Regli (Drexel University)
Authors:
{umpeysak, uvgalins, regli}@mcs.drexel.edu
Geometric and Intelligent Computing Lab
Department of Math. and Computer Science
Korman Computing Center
Drexel University
Philadelphia, PA 19104
(215) 895-6827
http://edge.mcs.drexel.edu/GICL/
Contacts:
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download Lego Structure Evolution: Graph-based Approach by Peysakhov, Galinskaya, and Regli and more Slides Robotics in PDF only on Docsity!

Representation and Evolution of

Lego-based Assemblies

Maxim Peysakhov, Vlada Galinskaya,

William C. Regli ( Drexel University)

Authors:

{umpeysak, uvgalins, regli}@mcs.drexel.edu

Geometric and Intelligent Computing Lab

Department of Math. and Computer Science

Korman Computing Center

Drexel University

Philadelphia, PA 19104

http://edge.mcs.drexel.edu/GICL/

Contacts:

Outline

  • Outline.
  • Project goals.
  • Project statement.
  • Background.
    • Genetic Algorithms.
    • Previous work on Lego and GA.
  • Approach.
    • Formulation.
    • Representation.
    • Encoding
    • Operators.
      • System overview.
      • Examples.
        • 10 by 10 by 10
        • Pillars
        • Limitations.
      • Conclusions.
        • Contributions.
        • Future work.
      • Acknowledgments.
      • Bibliography.

The main contribution of this research is

in the application of the GA to the

practical task of Lego design generation.

Innovations:

  • We adapted labeled mechanical assembly graph a

representation to a Lego designs.

  • We developed a graph grammar to define valid

combinations of the nodes and edges precisely and

unambiguously.

Project statement

Background: About Genetic Algorithms

  • In the 1950’s and 1960’s computer scientists started to study the evolutionary optimization systems. Genetic Algorithms were one of them.
  • Genetic Algorithms (GA) operate on the set (population) of candidate solutions (individuals are also called chromosomes).
  • Chromosomes are the strings or arrays of genes (a gene is the smallest building block of the solution).
  • Each iteration of the search is called a generation.
  • The idea was to evolve a solution of high quality from the

population of candidate solutions.

Skip this slide, you know it

Background: Previous Work on Using GA to Generate Lego Designs

Previous work in this field was done by J. B. Pollack and P. J. Funes, and described at J. B. Pollack, P. J. Funes “Computer Evolution of Buildable Objects.” Fourth European Conference on Artificial Life, P. Husbands and I. Harvey, eds., MIT Press 1997. pp 358-367, 1997.

They used:

  • Networks of torque propagation to model the behavior of the Lego structure under stress.
  • Assembly tree representation of the Lego structures. According to authors this representation is one of the limitations of their work. We tried to address this limitation by utilizing assembly Graph representation of the Lego Structures.
  • Genetic programming operators.
  • We are considering a limited number of blocks with well-defined connection capabilities modeled from a set of Lego Mindstorms robot kits.
  • Lego represents a sufficiently complex, multi-disciplinary design domain that includes a wide variety of realistic engineering constraints.
  • The domain is sufficiently discrete as to be tractable.
  • Many tools for simulation and testing are readily available. (^) Example of a simple Lego

mechanism

Approach: Problem Formulation

  • MECHANISM, Module, Element, Block, Disk, Pole, Beam, Brick, Plate, Battery, Motor, Wheel, Gear and Axle are the nodes of the graph grammar.

∀ x ∈ N(G), x ∈ { Block, Disk, Pole, Beam, Brick, Plate, Battery, Motor, Wheel, Gear, Axle}

  • Connect , Snap, Insert, TInsert and GTrans are the edges of the graph grammar.

∀ y ∈ E(G), y ∈ { Snap, Insert, Tinsert, GTrans }

Approach: Example of

Lego Grammar.

depends on the type of the

element. (For Beam , Brick , and Plate these parameters are the number of pegs on the element in X and Y dimensions.)

Approach: Representation of Lego Elements

Examples of Lego blocks (left) with labeled nodes (right).

  • Each Lego element is represented by a labeled node n

such that n ∈ N(G).

  • The node label contains the type and the parameters of

the element. (For now, our program can operate only with 3 types of Lego elements, namely Beam , Brick , and Plate).

  • Number and nature of parameters specified in the label

Y

X

Beam(4,1)

Brick(2,4)

Plate(1,2)

  • Each Lego structure is

represented by directed

labeled assembly graph G.

  • Non-empty set N(G) of

nodes n , represents Lego

elements.

  • Set E(G) of edges e ,

representing connections

and relations between those

elements.

Approach: Representation of Lego Assemblies

Plate(6,2) Plate(6,2)

Brick(2,4)

Brick(2,4)

Beam(4,1)

Snap[(1,2)(1,1)]

Snap[(6,2)(2,1) ]^ Snap[(6,1)(2,4)]

Snap[(2,2)(1,1)^ Snap[(1,1)(1,4)] ]

Snap[(1,2)(1,4)]

Example Lego structure with assembly graph

Axle(10,1)

Beam(1,2)

Beam(1,2)

Wheel(30)

Wheel(30)

Gear(40) Gear(8) Motor(5,4)

Battery(4, )

Beam(1,2) Axle(8,1) Beam(1,2)

Wheel(44)

Wheel(44)

TInsert[1]

TInsert[10] Insert[7]

TInsert[8]

GTrans

Insert[2]

TInsert[1]

Snap[(1,1)(6,1);(2,1)(2,6)]

Snap[(1,1)(1,1);(1,2)(1,2)]

Snap[(6,1)(5,1);(2,1)(1,1)]

Snap[(2,4)(1,1);(5,4)(4,1)

Snap[(1,1)(4,13);(1,2)(4,14)] Snap[(1,1)(1,13);(1,2)(1,14)] Insert[2]

Insert[7]

TInsert[1]

Plate(6,8)

TInsert[8]

Approach: Example of an Assembly Graph

Example of the assembly graph for the Lego car.

The initial population is generated at random.

  • First ten nodes of random types are generated with

random dimensions.

  • Then, 9 to 13 edges are generated and placed at random

subject to the constraint that the resulting structure must

be physically feasible.

  • In the future we will look into creating and applying

initialization rules to promote exploration of specific

areas of the fitness landscape.

Approach: Genetic Operator - Initialization

Mutation operator works on the genome array

If the gene is to be modified it is:

  • Replaced with a random Lego element of the same type.
  • If some edges became

invalid after the element

was mutated then these

edges are reinitialized at

random.

Approach: Genetic Operator - Mutation

Sample structure with a mutated beam. Docsity.com

  • Under-specification results in the disjoint assembly graph. (The nodes of the sub-graph containing the 0 -th node are selected to be dominant.)
  • An over-specified chromosome either results in the blocks sharing the same physical space, or are connected by the set of edges, which imply two different locations for the same node. (The node or edge which was assigned the location first is marked as dominant)
  • The submissive sub-graph is not deleted from the chromosome, but is ignored in most calculations.

Approach: Handling Over-specified and Under-specified Chromosomes

Brick(2,4) Beam(4,1)

Plate(2,6)

Snap[(1,1);(1,1)]

Snap[(1,1);(1,1)]^ Snap[(1,1);(1,1)]

Example of the blocks sharing same physical space (left) and infeasible connection edges (right).

Generally evaluation function was created according to the following form:

Where:

  • a (^) i - the properties of the graph we want to maximize
  • bi - the properties of the graph we want to minimize
  • ci - the properties of the graph we want to bring as close as possible to the constant t (^) i
  • P (^) i - the wait function.
    • For most important properties properties of the graph Pi = X
    • For less important properties properties of the graph Pi = X½
    • For least important properties properties of the graph Pi = X¼

Approach: Evaluation Functions

( 1+ ΣPi (ai ) ) ( 1+ Σ Pi (bi ) + Σ Pi (|c (^) i - t (^) i |) )