AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT...

72
AN AN EMOTIONAL EMOTIONAL MIMICKING MIMICKING HUMANOID BIPED ROBOT HUMANOID BIPED ROBOT AND ITS AND ITS QUANTUM CONTROL QUANTUM CONTROL BASED ON THE BASED ON THE CONSTRAINT SATISFACTION MODEL CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland Intelligent Robotics Laboratory, Portland State University State University Portland, Oregon Portland, Oregon . . Quay Williams, Scott Bogner, Michael Kelley, Carolina Castillo, Martin Lukac, Dong Hwa Kim, Jeff Allen, Mathias Sunardi, Sazzad Hossain, and Marek Perkowski
  • date post

    22-Dec-2015
  • Category

    Documents

  • view

    221
  • download

    2

Transcript of AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT...

Page 1: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

AN AN EMOTIONALEMOTIONAL MIMICKING MIMICKING HUMANOID BIPED ROBOTHUMANOID BIPED ROBOT AND ITS AND ITS

QUANTUM CONTROLQUANTUM CONTROL BASED ON BASED ON THE THE CONSTRAINT SATISFACTION CONSTRAINT SATISFACTION

MODELMODEL

Intelligent Robotics Laboratory, Portland State Intelligent Robotics Laboratory, Portland State UniversityUniversity

Portland, OregonPortland, Oregon..

Quay Williams, Scott Bogner, Michael Kelley, Carolina Castillo, Martin Lukac, Dong Hwa Kim, Jeff Allen, Mathias Sunardi, Sazzad

Hossain, and Marek Perkowski

Page 2: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• We present a humanoid robot that responds to human gestures seen by a camera.

• The behavior of the robot can be completely deterministic as specified by a Finite State Machine that maps the sensor signals to the effector signals.

• This model is further extended to the constraints-satisfaction based model that links robots vision, motion, emotional behavior and planning.

• Use adiabatic quantum computer which quadratically speeds-up every constraint satisfaction problem and will be thus necessary to solve large problems of this type.

• We propose to use the remotely-connected Orion system by DWAVE Corporation.

WHAT HAS WHAT HAS BEEN DONE?BEEN DONE?

Page 3: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Emotional Robot Helpers

• Because humans attribute emotions to other humans and to animals, future emotional robots should perhaps be visually similar to humans or animals, – otherwise their users would be not able to understand robots’

emotions and correctly communicate with them.

• Observe that the whole idea of emotional robot helpers is to enable easy communication between humans and robots.

Page 4: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Robot emotionsRobot emotions

• Simple emotions like “fear” or “anger” or behaviors like obstacle-avoidance for wheeled mobile robots.

• Subsumption architecture.

• Practically insufficient to cover all necessary behaviors of future household “helper robots”.

The research on robot emotions and methods to allow humanoid robots to acquire complex motor skills is recently advancing at a very fast pace.

Page 5: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• Larger biped robots are very expensive– hundreds thousands dollars.

• Recent small humanoid robots.

• We acquired two KHR-1 robots and integrated them to our robot theatre system with its various capabilities such as: – sensors, – vision,– speech recognition and

synthesis – Common Robot Language.

Emotions can be best expressed

by a biped robot withhuman-like face

Page 6: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• Walking biped robot can express the fullness of human emotions:– body gestures, – dancing, – jumping, – gesticulating

with hands.

• Emotions can be:– Emergent -

Arushi– Programmed –

Martin Lukac ISMVL

– Mimicked – this paper

– Learned – Martin Lukac Reed-Muller

• Humanoid Humanoid robots to robots to express express emotions:emotions:

• M. Lukac uses human-like faces and head/neck body combinations.

• KAIST theatre used whole-body stationary robots with hands.

Page 7: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

KHR-1 from JapanKHR-1 from Japan

Page 8: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Project Overview

• KHR-1– Biped robot– 17 servos– 2 RCB-1 servo

controllers (each 12 servos)

– Serial port connectivity

Page 9: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Accomplishments

• Movements– We worked through many mechanical

challenges • Trim• Balance• Power

Page 10: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Cross Arms and Servo hones

• The first objective was to make The first objective was to make the robot executing what is the robot executing what is advertised:advertised:– walking forward and backward,walking forward and backward,– dancing, dancing, – doing pushups, doing pushups, – etc.etc.

• All documentation was in All documentation was in Japanese or KoreanJapanese or Korean

• The English translation was The English translation was done only on our request. done only on our request.

• Some small components such Some small components such as screws, washers, and servo as screws, washers, and servo hones were missinghones were missing

• Assembly should be very Assembly should be very careful. Is not easy.careful. Is not easy.

KHR-1 Hardware, Assembly and Maintenance.KHR-1 Hardware, Assembly and Maintenance.

Page 11: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

RCB-1RCB-1s controllers and Servo Cable Arrangements.s controllers and Servo Cable Arrangements.

Labeling of the Servo motors

• Be sure that you know the labels of all servos.

• You should understand how this servo contributes to walking, pushups and other behaviors.

• Start from hand movements.

• Be sure that you know the connections of RCB-1 boards, which is which.

Page 12: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Motion-related KHR-1 SoftwareMotion-related KHR-1 Software• Heart to Heart is the original company

software to program and control the KHR-1.

• The PC interacts with the KHR-1 through the RCB-1 boards which are connected via RS-232 cable.

• Each board controls the upper and lower body of the robot respectively.

• We had troubles because of bad translation, but now English manuals can be available from us and perhaps also on the Internet, so the construction and test will be easier for English-speaking robot builders.

Page 13: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Heart to Heart Main window. • The Figure shows the first

screen that the user gets once the Heart to HeartHeart to Heart is opened.

• The top and bottom bar tool contains important functions.

• The 24 channels represent each servo motor of the KHR-1.

• The values displayed represent their position according to their particular center position.

• Students learn how to edit behaviors, this is next useful to program or program or evolveevolve behaviors.

Page 14: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

…more…

• There are three types of data that make the KHR-1 so versatile.– PositionsPositions

• A single list containing position data for each servo

• There can be 99 “positions” stored

Page 15: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

…more…

– MotionsMotions• There can be 40 motion files stored

• Motions can contain 40 positions

• Are used to make things like, walk, turns, and more.

Page 16: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

…more…

– ScenariosScenarios• Scenarios can hold 4 motions

• Can be used for some more complicated movements/tasks

• The KHR-1 can hold 4 scenarios

Page 17: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Challenges

• We ran into a number of challenges with the project.– Power needs– Mechanical issues– Communications (Robot to PC)– Vision– Integration

Page 18: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

…more…

– Created our own movements• Right turn• Left turn• Fight

– Modified old files to work with this robot• Walk• Push-ups• Dancing• Fights

Page 19: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Communications

• RS232 PC to Robot– All commands can be sent– Calls can be made

• Servo Positions• Movement info• Ect…

– Commands are sent as list of hex values that represent all needed data.

Page 20: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

What we have doneWhat we have done• We created our own cotrolling software environment in Visual Basic that

we can fully understand and modify

• We have written a more inclusive instruction set for setting up the KHR-1

– Including basic trouble shooting info.

– We have explained in detail the data structure types.

– Created a base VB comm setup that will give future students somewhere to start.

– We now can make calls for motions and more.

• More life like motion using a random number algorithm

• The ability for the applications to generate random motions to simulate moods

Page 21: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

…more…

• Link to CRL for robot theatre

• Vision

• State Machine

• Construct functions that will know where each servo is and recalculate limits for surrounding/neighboring servos.

• Continue to develop more and more intelligent motion.

• Develop inputs from audio/video and other sensors.

Page 22: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Robot Robot safetysafety while movement while movement

• We added limitations programmed into the VB software that controls the KHR-1 so that the robot would not break a servo by trying to push it’s arm into it’s body.

• The values are limited based on the physical constraints of the KHR-1.

– Example: If both conditions are in that window then we limit the elbow so that it can not hit the body of the robot.

• Without this function the KHR-1 could hit itself and possibly break a servo.

Page 23: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Gyroscope.Gyroscope.• Bipedal humanoid robots are inherently

unstable.

• Unlike wheeled robots, humanoids have a high center of gravity and must balance carefully in order not to tip over as they move.

• While it is possible to achieve balance in the absence of feedback sensors, slight variations in the environment often cause imbalance and result in a fall.

In order to improve the stability of the bipedal robot, a compensating gyroscope was installed.

This unit was manufactured by the Kondo company, and was designed specifically for the KHR-1.

Page 24: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

The Gyroscope• We have only one gyroscope, and chose to control side to

side balance.

• Our choice for side to side motion was due to the fact that additional hardware is necessary to program the servos 22 and 16.

• In any case, installing the gyro helped with movement stability and we plan to add also the second gyro.

Page 25: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

What is needed for the presented project?

• Visual Basic 6.0 (this is important because you need a “com object.”)

• OpenCV (version 3.1 b). OpenCV software from Intel is used for image acquisition and robot vision algorithms.

• HBP files

• Camera (we used a Logitech USB web-cam)

• Our software

Page 26: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Common Robot Language. • We developed We developed symbolic approach symbolic approach

to robot specificationto robot specification based on a based on a Common Robot Language. Common Robot Language.

• While the While the syntax of this language syntax of this language specifies rules for generating specifies rules for generating sentencessentences, the semantic aspects , the semantic aspects describe structures for describe structures for interpretation. interpretation.

• Every Every movement is described on movement is described on many levels,many levels, for instance every for instance every joint angle or face muscle are at joint angle or face muscle are at low level and complete movements low level and complete movements such as pushups or joyful hand such as pushups or joyful hand waving are at a high level. waving are at a high level.

Page 27: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Common Robot Language. • These aspects serve to describe These aspects serve to describe

interaction with environmentinteraction with environment at at various levels of description. various levels of description.

• It uses also the It uses also the constraint constraint satisfaction problem creating satisfaction problem creating movementsmovements that specify constraints that specify constraints of time, space, motion style and of time, space, motion style and emotional expression. emotional expression.

Page 28: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• The goal of our Common Robot Language is to describe human-oriented movements

• But it exceeds these behaviors to those like anthropomorphic animals and fairy tale characters.

• We created new GUI interface and robot controlling language specific to KHR-1. – Editing functions.– Testing functions. – The ability to read information back from the robot by serial

communication was added.

• There are two main functions that we achieved:– mimicking, – behavior state machine.

Describing movements, behaviors and emotions

Page 29: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Using HBP robot vision software for Using HBP robot vision software for human mimicking.human mimicking.

• Control behaviors mimicked from a human standing in front of the camera. – (with state machine or not)

• We wanted the KHR-1 to mimic human motion that was being shown on the screen by the HBP software.

• The HPB works by taking an image of a person’s upper body. It then will try and identify the face.

• Once it can recognize a face it will then look at the body.

• The image that it acquires is converted to a set of feature (parameters) values assigned to several groups of variables.

Page 30: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

What is wrong with our vision What is wrong with our vision software?software?

• HBP is slow• OPENCV is slow• Robot responds with delay• HBP is not accurate

• That one great thing about HPB, is that you have the option of modifying the original code to some extent and make your own features.

• To speed up the image recognition we will use the we will use the Orion quantum computer in the next projectOrion quantum computer in the next project

Page 31: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Constraints Satisfaction Constraints Satisfaction ProblemsProblems

S E N D

+ M O R E

M O N E Y

Graph coloringGraph coloringCryptographic Cryptographic

ProblemsProblems

Page 32: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Constraint SatisfactionConstraint Satisfaction for for Emotional RoboticsEmotional Robotics

• Insufficient speed of robot image processing and pattern Insufficient speed of robot image processing and pattern recognition. recognition.

– This can be solved by special processors, DSP processors, FPGA This can be solved by special processors, DSP processors, FPGA architectures and parallel computing. architectures and parallel computing.

• Prolog allows to write CSP programs very quickly.Prolog allows to write CSP programs very quickly.

• An interesting approach is to formulate many problems using the An interesting approach is to formulate many problems using the same general model. same general model.

• This model may be predicate calculus, Satisfiability, Artificial This model may be predicate calculus, Satisfiability, Artificial Neural Nets or Constraints Satisfaction Model.Neural Nets or Constraints Satisfaction Model.

Page 33: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Constraint Constraint Satisfaction Image Satisfaction Image Analysis by WaltzAnalysis by Waltz

• Huffman and Clowes Huffman and Clowes created an approach to created an approach to polyhedral scene polyhedral scene analysis, scenes with analysis, scenes with opaque, trihedral opaque, trihedral solids, next improved solids, next improved significantly by Waltzsignificantly by Waltz

• Popularized the Popularized the concept of constraints concept of constraints satisfaction and its use satisfaction and its use in problem solving, in problem solving, especially image especially image interpretation. interpretation.

• Objects in this Objects in this approach had always approach had always three plane surfaces three plane surfaces intersecting in every intersecting in every vertex. vertex.

Page 34: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Constraint Satisfaction Image Analysis by Waltz

• There are only four ways to label a line in this blocks world model.

• The line can be convex, concave, a boundary line facing up and a boundary line facing down (left, or right).

• The direction of the boundary line depends on the side of the line corresponding to the face of the causing it object.

• Waltz created a famous algorithm which for this world model which always finds the unique correct labeling if a figure is correct.

Page 35: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

AC-3: State 2

3. Queue:

(2,3)(3,2)(3,4)(4,3)(4,1)(1,4) (1,3)(3,1)

4. Removing (2,3).

5. L3 on 2 inconsistent with 3, so it is removed.

6. Of arcs (k,2), (1,2) is not on queue, so it is added.

Page 36: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Constraint satisfaction model in roboticsConstraint satisfaction model in robotics

Used in main areas of robotics:– vision, – knowledge acquisition, – knowledge usage.

• In particular the following:

– planning, scheduling, allocation, motion planning, gesture planning, assembly planning, graph problems including graph coloring, graph matching, floor-plan design, temporal reasoning, spatial and temporal planning, assignment and mapping problems, resource allocation in AI, combined planning and scheduling, arc and path consistency, general matching problems, belief maintenance, experiment planning, satisfiability and Boolean/mixed equation solving, machine design and manufacturing, diagnostic reasoning, qualitative and symbolic reasoning, decision support, computational linguistics, hardware design and verification, configuration, real-time systems, and robot planning, implementation of non-conflicting sensor systems, man-robot and robot-robot communication systems and protocols, contingency-tolerant motion control, multi-robot motion planning, multi-robot task planning and scheduling, coordination of a group of robots, and many others

Page 37: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Examples of CSP in roboticsExamples of CSP in robotics• Scene recognition

• Motion generationMotion generation in presence of constraints

– internal (low power, don’t hit itself)

– external (shape of racing track, wolf-man-cabbage-goat)

• Gesture under emotions

• Communication in a swarm of robots (graph coloring)

• Robot guard (set covering)

Page 38: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

“Classical” Quantum Computer Circuit Model for Graph Coloring

inputs

C

C

AND

Sorting/Absorber

Color # Counter

Comparator

Desired number of

colors

AND Output

Figure 12: Simplified schematic of our Graph Coloring Oracle.

We designed 35 oraclesWe designed 35 oracles

Page 39: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Robot Reasoning Robot Reasoning ProblemProblem

New Approach New Approach to Quantum to Quantum

RoboticsRobotics

AdiabaticAdiabatic Quantum Computer Quantum Computer

Constraint Satisfaction ProblemConstraint Satisfaction Problem

Robot Vision Robot Vision ProblemProblem

Robot Robot Communication Communication

ProblemProblem

Robot Robot Obstacle Obstacle AvoidanceAvoidanceProblemProblem

Classical Classical quantum quantum computingcomputing

Page 40: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Adiabatic Adiabatic Quantum Quantum

ComputingComputing to solve to solve

Constraint Constraint Satisfaction Satisfaction

Problems Problems efficientlyefficiently

Page 41: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Adiabatic Quantum Computing to solve Constraint Satisfaction Problem efficiently.

• Will February 13th 2007 be remembered in annals of computing.?

• DWAVE company demonstrated their Orion quantum computing systemOrion quantum computing system in Computer History Museum in Mountain View, California.

• The first time in history a commercial quantum computer was presented.

• The Orion system is a hardware accelerator designed to solve in principle a particular NP-complete problem called the two-dimensional Ising model in a magnetic field (for instance quadratic programming).

• It is built around a 16-qubit superconducting adiabatic quantum computer (AQC) processor.

Page 42: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Orion computer from DWAVEOrion computer from DWAVE• Conventional front end

• The solution of an NP-complete problem.

• Pattern matching applied to searching databases of molecules.

• Planning/scheduling application for assigning people to seats subject to constraints.

• Sudoku

73

2

182

59

82

34

93

75

87

66

2644

5

Page 43: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Orion Is the Constraint Satisfaction Orion Is the Constraint Satisfaction Solver Solver

• The company promises to provide free access by Internet to one of their systems to those researchers who want to develop their own applications.

Does it have Does it have quadratic speed-quadratic speed-up?up?

Page 44: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• The plans are that by the end of year 2008 the Orion systems will be scaled to more than 1000 qubitsmore than 1000 qubits.

• Company plans to build in 2009 processors specifically designed for quantum simulation, which represents a big commercial opportunity.

Orion computer from DWAVE

• These problems include: protein folding, drug design and many other in chemistry, biology and material science.

• Thus the company claims to dominate enormous markets of NP-complete problems and quantum simulation.

Page 45: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• Adiabatic Quantum Computing was Adiabatic Quantum Computing was proved equivalentproved equivalent to standard QC to standard QC circuit model.circuit model.

• Each of the developed by us methods Each of the developed by us methods can be transformed to an can be transformed to an adiabaticadiabatic quantum program and run on Orion. quantum program and run on Orion.

• We developed We developed logic minimization methodslogic minimization methods to reduce the graph that is to reduce the graph that is created in AQC to program problems such as Maximum Clique or SAT. created in AQC to program problems such as Maximum Clique or SAT.

• This programming is like on “This programming is like on “assembly levelassembly level” but with time more ” but with time more efficient methodsefficient methods will be developed in our group. will be developed in our group.

– This is also similar to programming current This is also similar to programming current Field-Programmable Gate Field-Programmable Gate Arrays. Arrays.

We plan to concentrate We plan to concentrate on robotic applications of on robotic applications of the Constraint the Constraint Satisfaction Model. Satisfaction Model.

Page 46: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Future work on Adiabatic Quantum Controller for a robot

• In the second research/development direction the interface to Orion systeminterface to Orion system will be learned

• How to formulate front-end formulations front-end formulations for various robotic problemsfor various robotic problems as constraint-satisfaction problems for this system?

Page 47: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Conclusions and future work.Conclusions and future work.

• KHR-1 is now able to mimic upper body human motions.

• Students who work on this project learn about robot kinematics, robot vision, state machines (deterministic, non-deterministic, probabilistic and quantum - entangled) robot software programming and commercial robot movement editors.

• The most important lesson learned is the integration of a non-trivial large system and the appreciation of what is a real-time programming.

• It is important that the students learn to develop a “trial and error” attitude and also how to survive using a non-perfect and incomplete documentation.

• It was also emphasized by the professor that students create a very good documentation of their work for the next students to use.

Didactic AspectsDidactic Aspects

Page 48: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

New classes

• New class teaches quantum computing and quantum robotics

• One of the goals of this lecture is to help others to start with this new and exciting research area.

• KHR-1 like robot can become a widely accepted international education platform.

…….. and finally….... and finally…..

Page 49: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

New Research DirectionNew Research Direction

• New approach to New approach to quantum robotics based quantum robotics based on reduction to on reduction to Constraint Satisfaction Constraint Satisfaction ModelModel

Page 50: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Additional Slides

Page 51: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Heart to Heart overview

• There are several key components in H2H that must be used.– Motion creator– Learning– Setup

Page 52: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Motion files

• Motion screen allows you to set the order of positions that will be called. You can also load the motions into the robot.

Page 53: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Trim

This trim setup allow you to account for any discrepancies.

Page 54: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

VB progress (randomness) Private Sub btnSetServoPos_Click() Dim SetCurrentPos As Variant Dim TstRandomPosLoad(12) As Long ' This data will be populated from CSV file from Mike TstRandomPosLoad(0) = Int(Rnd() * 20 + 80) TstRandomPosLoad(1) = Int(Rnd() * 20 + 80) TstRandomPosLoad(2) = Int(Rnd() * 20 + 80) TstRandomPosLoad(3) = Int(Rnd() * 20 + 80) TstRandomPosLoad(4) = Int(Rnd() * 20 + 80) TstRandomPosLoad(5) = Int(Rnd() * 20 + 80) TstRandomPosLoad(6) = Int(Rnd() * 20 + 80) TstRandomPosLoad(7) = Int(Rnd() * 20 + 80) TstRandomPosLoad(8) = Int(Rnd() * 20 + 80) TstRandomPosLoad(9) = Int(Rnd() * 20 + 80) TstRandomPosLoad(10) = Int(Rnd() * 20 + 80) TstRandomPosLoad(11) = Int(Rnd() * 20 + 80) ' Send out to comm port SetCurrentPos = SetServoPos(TstRandomPosLoad(), 0, 4) MSComm1.Output = SetCurrentPosEnd Sub

Page 55: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

VB progress (Motion call)Private Sub btnPlayMotion_Click() Dim MotionNumInput As Variant Dim Motion As Variant 'Get user data and check integrity MotionNumInput = InputBox("Enter motion bank, valid #'s are 0 to 39",

"Scenario Data") If MotionNumInput = "" Then MsgBox "No data found!", , "Bad Data" Exit Sub ElseIf MotionNumInput < 0 Then MsgBox "The number you entered is too low!", , "Bad Data" Exit Sub ElseIf MotionNumInput > 39 Then MsgBox "The number you entered is too high!", , "Bad Data" Exit Sub End If ' Send out to comm port Motion = PlayMotion(0, Int(MotionNumInput)) MSComm1.Output = MotionEnd Sub

Page 56: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

The Gyroscope

• The gyroscope installed on this robot is sensitive to acceleration in only one of two possible corrective axes.

• One pair of servos controls side to side balance at the base of the feet.

• Another can provide front to back correction by changing the angle of bend at the knee joints in the legs.

• It would be necessary to have two separate gyroscopes to provide balance feedback for both front to back and side to side motions

Page 57: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Describing movements, behaviors and emotions

• Non-deterministic and probabilistic behaviors are possible within the framework of constraints

• They allow more natural behavior of the robot where the movements are logical but not exactly the same in similar environmental or emotional situations.

• Mechanisms for scripting and scenario writing are also necessary. • Humanoid robot movements and emotional behaviors require special

notations that take their origins from human emotional gestures and movements such as dances, sport-related and gymnastic movements as well as theatre-related behaviors.

• These notations and languages originate from choreography, psychology and general analysis of human behavior.

• Several notations describing human dances exist using Benesh notation, LifeForms and others

Page 58: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Improvements needed• The openCV software runs slow on a laptop.

– Gross versus small body movements – hand waving or smiling?• This was accomplished by writing a subroutine which tracked the robots arm

positions and mouth size. The commands from this state machine were sent to the robot whenever the avatar from the HBP software ran the ShowAvatar routine. Placing a function call to the State Machine function at the end of the ShowAvatar routine provided the trigger mechanism for the state machine function. The state machine code is located in the visual basic project module modKHR1State

• There are many variables in the Human Body Project software that indicate relative position of the eyes, nose, mouth, and arms of the subject.

• We used only a small subset

• More experimentation with other features and a faster computer are needed.

Page 59: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Motion and Vision as constraint satisfaction

• A popular approach to solve many motion planning and knowledge-based behavior problems for humanoid robots is the Constraint Satisfaction Model.

• Unfortunately, for future robots large problems should be solved in real time which will require powerful computers.

• Observe that while MIT Cog planned to use interaction with environment as a base of learning, it has no walking capability, thus its access to environment is limited.

• On the other hand the walking robots such as Honda have much developed walking ability giving them access to powerful environmental information, but they lack learning abilities and sophisticated models of environment.

Page 60: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• Combining both approaches is an ambitious task which can be successful only if large motion-planning/obstacle-avoidance tasks will be executed in real-time and will include machine learning

• Emotional biped robot exhibits a much broader library of movements and behaviors than a mobile service robot, for instance gesture-related path planning of both hands and the whole body while walking in a room environment is very complicated.

• One way of solving the computer speed problem is to use quantum computers which will give significant speed-up.

• Here we propose to use the Orion system from DWAVE Corporation as the first prototype of a quantum computer controlled humanoid robot.

Motion and Vision as constraint satisfaction

Page 61: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

359

Sudoku7

3

2

1

82

5

9

8

2

3

4

93

75

8

7

6

6

264

4

5

Orion computer from DWAVE

Page 62: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• The plans are that by the end of year 2008 the Orion systems will be scaled to more than 1000 qubits.

• It is even more amazing that the company plans to build in 2009 processors specifically designed for quantum simulation, which represents a big commercial opportunity.

• These problems include protein folding, drug design and many other in chemistry, biology and material science.

• Thus the company claims to dominate enormous markets of NP-complete problems and quantum simulation.

• If successful, the arrival of adiabatic quantum computers will create a need for the development of new algorithms and adaptations of existing search algorithms (quantum or not) for the DWAVE architecture.

• The arrival of Orion systems is certainly an excellent news for any research group that is interested in formulating problems to be solved on a quantum computer.

• In this project we plan to concentrate on robotic applications of the Constraint Satisfaction Model.

Orion computer from DWAVE

Page 63: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• Several aspects presented below will be considered while creating software for the Orion AQC.

• One method of creating software for AQC is by formulating an oracle for Grover algorithm and next converting it to the AQC model.

• This requires the ability to synthesize a complex permutative circuit (reversible circuit) from universal binary gates such as Toffoli or Fredkin.

• Adiabatic equivalent of Grover algorithm is implemented in Orion system and 16-qubit oracles can be built for Orion system.

• This is not enough for larger problems, but it is a good starting point for self-education.

• The developed by us minimization methods can be used to synthesize complete oracles or their parts, for incomplete functions.

Orion computer from DWAVE

Page 64: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• To practically design oracles for Grover as quantum circuits one has first to formulate various NP-complete problems and NP-hard problems as oracles.

• Some robotic problems, especially in vision (such as convolution, matching, applications of Quantum Fourier Transform and other spectral transforms) require quantum circuits that are not permutative but use truly quantum primitives like the controlled phase gate.

• Methods to convert these circuits to AQC model should be investigated and the problems should be converted to AQC model and executed on Orion.

Orion computer from DWAVE

Page 65: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• Algorithm to find the best polarity Fixed-Polarity-Reed-Muller transform.

– This can be used as a machine learning method when a function with don’t cares is given at the inputs.

• Similarly the method by Lukac et al is a general purpose machine learning method from examples.

• Quantum Neural Network

• Quantum Fourier Transform based convolution/matching

• Haar, complex Hadamard and other spectral transforms.

• Several image processing algorithms can be created for quantum computers with significant complexity reduction.

• These algorithms use:– constraint satisfaction, – SAT – search– quantum spectral transforms– solving general purpose Schroedinger equations.

Orion computer from DWAVE

Page 66: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• We work also on:We work also on:– SAT, SAT, – maximum clique, maximum clique, – Hamiltonian Path, Hamiltonian Path, – shortest path, shortest path, – travelling salesman, travelling salesman, – Euler Path, Euler Path, – exact ESOP minimization, exact ESOP minimization, – maximum independent set, maximum independent set, – general constraint satisfaction problems such as general constraint satisfaction problems such as

cryptographic puzzles, cryptographic puzzles, – and other unate/binate/even-odd covering problems, and other unate/binate/even-odd covering problems, – non-Boolean SAT solvers and equation-solvers. non-Boolean SAT solvers and equation-solvers.

• For all these problems we built oracles and we plan For all these problems we built oracles and we plan to convert them to AQC.to convert them to AQC.

Problem reduction for Orion

Page 67: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• Development of new quantum algorithms based on extensions and adaptations of Grover, Hogg and other quantum search and Quantum Computational Intelligence models.

• Generalizations of Grover, Simon and Fourier transforms to multiple-valued quantum logic as implemented in the circuit model of quantum computing.

• Analysis and comparison with binary quantum algorithms and their circuits. Conversion to AQC model.

• Generalizing well-known quantum algorithms to multiple-valued quantum logic. For instance,

• we generalized the historically famous algorithm by Deutsch and Jozsa to arbitrary radix and we proved that affine functions can be distinquished in a single measurement.

• Moreover, functions that can be described as “affine with noise” can be also distinguished.

• This can be used for very fast texture recognition in robot vision. We work also on generalization of Grover to multiple-valued quantum circuits.

Orion computer from DWAVE

Page 68: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• All these problems are useful in robotics to solve various vision and pattern recognition path-planning, obstacle avoidance and motion generation problems.

• Observe that every NP-complete problem can be reduced to Grover algorithm and Grover reduced to AQC model that can be run on Orion.

• Similarly the classes of quantum simulation algorithms will be run of future DWAVE architectures.

• Although the speedup of the first of the classes is only quadratic, it will be still a dramatic improvement over current computers.

• It is also well-known that if some heuristics are known for an NP-complete problem, one of several extensions and generalizations to Grover can be used, which may provide better than quadratic speedup, but is problem-dependent.

• Since however all classical solvers of NP-Complete problems that are used now in industry are heuristic and better than their exact versions, we believe that the same will happen when quantum programming will become more advanced.

Page 69: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• The student team spent many hours trying to improve the motion files for walking, turning, standing up and other leg-related movements.

• Whereas it is easy to teach the robot to dance with the upper body, it proved frustrating to involve the legs of the robot in any motion command.

• Finally few safe leg movements were developed but further work using more foot sensors and more advanced movement generation software appears neccessary.

• The motion files of the robot need to be better defined and more of their variants should be created.

• This will probably best be done with a genetic algorithm, but will require either human or computer vision feedback to judge the success of any particular algorithm for a motion.

• Future teams would be well advised to become well familiar with the motion teaching method early in the project to save time and avoid hurried effort at the class end.

Future work on CSP Solvers for KHR-1 robot

Page 70: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

• “Quantum Robotics” presented here is new.

• Different than “quantum robots” proposed by Benioff where robot operates in structured quantum environment rather than in standard mechanics environment,.

• Different from or the work from Dong et al which is limited to one aspect of mobile robotics only.

• Different from our previous work on Quantum Braitenberg Vehicles and Quantum Emotional Robots

• Our model of a quantum robot, which may use quantum sensors but operates on normal effectors in standard environment

• Our model of a quantum robot applies quantum concepts to sensing, planning, learning, knowledge storing, general architecture and movement / behavior generation.

• It uses quantum mappings, quantum automata, Deutsch-Jozsa-based texture recognition, Grover-based image processing, emotional behaviors , quantum learning , and motion planning and spectral transforms.

Conclusions and future work.Conclusions and future work.

Page 71: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

Conclusion

• Some ideas of quantum computing can be used to build sophisticated robot controllers.

• Intelligent biped robots will be an excellent medium to teach emotional robotics, robot theatre, gait and movement generation, dialog and many other computational intelligence areas that have been not researched yet because of high costs of biped robots.

Page 72: AN EMOTIONAL MIMICKING HUMANOID BIPED ROBOT AND ITS QUANTUM CONTROL BASED ON THE CONSTRAINT SATISFACTION MODEL Intelligent Robotics Laboratory, Portland.

What may be added

• More CSP examples• More on adiabatic computing• More on Waltz and vision• Image matching etc• Hidden Markov Model for Vision• Avatar how it looks like and its role• Logic design for oracles• Martin’s lions• Interface to Orion• Controversy over Orion