(top_brick, bottom_brick)
return arena, attachment_frame
Stacks two Duplo bricks, returns the attachment frame of the top brick.
Stacks two Duplo bricks, returns the attachment frame of the top brick.
Stacks two Duplo bricks returns the attachment frame of the top brick .
def stack_bricks(top_brick, bottom_brick):
  """Stacks two Duplo bricks, returns the attachment frame of the top brick."""
  arena = composer.Arena()
  # Bottom brick is fixed in place, top brick has a freejoint.
  arena.attach(bottom_brick)
  attachment_frame = arena.add_free_entity(top_brick)
  # Attachment frame is positioned such that the top brick is on top of the
  # bottom brick.
  attachment_frame.pos = (0, 0, 0.0192)
  return arena, attachment_frame
def stack_bricks ( top_brick , bottom_brick ) : arena = composer . Arena ( ) # Bottom brick is fixed in place, top brick has a freejoint. arena . attach ( bottom_brick ) attachment_frame = arena . add_free_entity ( top_brick ) # Attachment frame is positioned such that the top brick is on top of the # bottom brick. attachment_frame . pos = ( 0 , 0 , 0.0192 ) return arena , attachment_frame