SlideShare a Scribd company logo
Hierarchical Modeling I
1
Objectives
• Examine the limitations of linear modeling
• Symbols and instances
• Introduce hierarchical models
• Articulated models
• Robots
• Introduce Tree and DAG models
2
Instance Transformation
• Start with a prototype object (a symbol)
•Each appearance of the object in the model
is an instance
•Must scale, orient, position
•Defines instance transformation
3
Symbol-Instance Table
Can store a model by assigning a number to each symbol and storing
the parameters for the instance transformation
4
Relationships in Car Model
• Symbol-instance table does not show relationships between parts of
model
• Consider model of car
• Chassis + 4 identical wheels
• Two symbols
• Rate of forward motion determined by rotational speed of wheels
5
Structure Through Function Calls
car(speed)
{
chassis()
wheel(right_front);
wheel(left_front);
wheel(right_rear);
wheel(left_rear);
}
• Fails to show relationships well
• Look at problem using a graph
6
Graphs
• Set of nodes and edges (links)
• Edge connects a pair of nodes
• Directed or undirected
• Cycle: directed path that is a loop
7
loop
Tree
• Graph in which each node (except the root) has exactly one parent
node
• May have multiple children
• Leaf or terminal node: no children
8
root node
leaf node
Tree Model of Car
9
DAG Model
•If we use the fact that all the wheels are identical, we
get a directed acyclic graph
• Not much different than dealing with a tree
10
Modeling with Trees
• Must decide what information to place in nodes and what to put in
edges
• Nodes
• What to draw
• Pointers to children
• Edges
• May have information on incremental changes to transformation matrices
(can also store in nodes)
11
Robot Arm
12
robot arm
parts in their own
coodinate systems
Articulated Models
• Robot arm is an example of an articulated model
•Parts connected at joints
•Can specify state of model by
giving all joint angles
13
Relationships in Robot Arm
• Base rotates independently
• Single angle determines position
• Lower arm attached to base
• Its position depends on rotation of base
• Must also translate relative to base and rotate about connecting joint
• Upper arm attached to lower arm
• Its position depends on both base and lower arm
• Must translate relative to lower arm and rotate about joint connecting to
lower arm
14
Required Matrices
•Rotation of base: Rb
• Apply M = Rbto base
•Translate lower arm relative to base: Tlu
•Rotate lower arm around joint: Rlu
• Apply M = RbTluRlu to lower arm
•Translate upper arm relative to upper arm: Tuu
•Rotate upper arm around joint: Ruu
• Apply M = RbTluRlu Tuu Ruu to upper arm
15
OpenGL Code for Robot
robot_arm()
{
glRotate(theta, 0.0, 1.0, 0.0);
base();
glTranslate(0.0, h1, 0.0);
glRotate(phi, 0.0, 1.0, 0.0);
lower_arm();
glTranslate(0.0, h2, 0.0);
glRotate(psi, 0.0, 1.0, 0.0);
upper_arm();
}
16
Tree Model of Robot
• Note code shows relationships between parts of model
• Can change “look” of parts easily without altering relationships
• Simple example of tree model
• Want a general node structure
for nodes
17
Possible Node Structure
18
Code for drawing part or
pointer to drawing function
linked list of pointers to children
matrix relating node to parent
Generalizations
• Need to deal with multiple children
• How do we represent a more general tree?
• How do we traverse such a data structure?
• Animation
• How to use dynamically?
• Can we create and delete nodes during execution?
19

More Related Content

Similar to Hierarchical Modeling

affine transformation for computer graphics
affine transformation for computer graphicsaffine transformation for computer graphics
affine transformation for computer graphics
DrSUGANYADEVIK
 
ROBOTICS and AUTOMATION concepts of Robotics.pptx
ROBOTICS and AUTOMATION concepts of Robotics.pptxROBOTICS and AUTOMATION concepts of Robotics.pptx
ROBOTICS and AUTOMATION concepts of Robotics.pptx
srivastavavaibhav129
 
Programming with OpenGL
Programming with OpenGLProgramming with OpenGL
Programming with OpenGL
Syed Zaid Irshad
 
Constructive Solide Geometry and Binary representation
Constructive Solide Geometry and Binary representationConstructive Solide Geometry and Binary representation
Constructive Solide Geometry and Binary representation
rahulkatre9
 
KINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTION
KINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTIONKINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTION
KINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTION
selvakumar948
 
Robot Arm Kinematics
Robot Arm KinematicsRobot Arm Kinematics
Robot Arm Kinematics
cairo university
 
Robotics Simulation by Wireless Brains - ROBOKDC'15 Project
Robotics Simulation by Wireless Brains - ROBOKDC'15 ProjectRobotics Simulation by Wireless Brains - ROBOKDC'15 Project
Robotics Simulation by Wireless Brains - ROBOKDC'15 Project
Surya Chandra
 
Robot Configuration - 1
Robot Configuration - 1Robot Configuration - 1
Hierarchical Modeling
Hierarchical ModelingHierarchical Modeling
Hierarchical Modeling
Syed Zaid Irshad
 
Open gl basics
Open gl basicsOpen gl basics
Open gl basics
saad siddiqui
 
Kinematic analysis of mechanisms analytical methods
Kinematic analysis of mechanisms  analytical methodsKinematic analysis of mechanisms  analytical methods
Kinematic analysis of mechanisms analytical methods
ajitkarpe1986
 
UNIT 6 Robotics01.ppt
UNIT 6 Robotics01.pptUNIT 6 Robotics01.ppt
UNIT 6 Robotics01.ppt
nachiketkale5
 
Robotics Representing Position & Orientation 1
Robotics Representing Position & Orientation 1Robotics Representing Position & Orientation 1
Robotics Representing Position & Orientation 1
cairo university
 
Industrial Robotics Presentation.pdf
Industrial Robotics Presentation.pdfIndustrial Robotics Presentation.pdf
Industrial Robotics Presentation.pdf
EzralBaharudin
 
cg mod2.pdf
cg mod2.pdfcg mod2.pdf
cg mod2.pdf
ssuserf3db48
 
ROBOTICS PPT.pdf
ROBOTICS PPT.pdfROBOTICS PPT.pdf
ROBOTICS PPT.pdf
TAMILSELVANNATARAJAN3
 
Robot Configuration - 2
Robot Configuration - 2Robot Configuration - 2
Kinematics of Machines
Kinematics of MachinesKinematics of Machines
Kinematics of Machines
ravikumarmrk
 
Rseminarp
RseminarpRseminarp
Slicing of Object-Oriented Programs
Slicing of Object-Oriented ProgramsSlicing of Object-Oriented Programs
Slicing of Object-Oriented Programs
Praveen Penumathsa
 

Similar to Hierarchical Modeling (20)

affine transformation for computer graphics
affine transformation for computer graphicsaffine transformation for computer graphics
affine transformation for computer graphics
 
ROBOTICS and AUTOMATION concepts of Robotics.pptx
ROBOTICS and AUTOMATION concepts of Robotics.pptxROBOTICS and AUTOMATION concepts of Robotics.pptx
ROBOTICS and AUTOMATION concepts of Robotics.pptx
 
Programming with OpenGL
Programming with OpenGLProgramming with OpenGL
Programming with OpenGL
 
Constructive Solide Geometry and Binary representation
Constructive Solide Geometry and Binary representationConstructive Solide Geometry and Binary representation
Constructive Solide Geometry and Binary representation
 
KINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTION
KINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTIONKINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTION
KINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTION
 
Robot Arm Kinematics
Robot Arm KinematicsRobot Arm Kinematics
Robot Arm Kinematics
 
Robotics Simulation by Wireless Brains - ROBOKDC'15 Project
Robotics Simulation by Wireless Brains - ROBOKDC'15 ProjectRobotics Simulation by Wireless Brains - ROBOKDC'15 Project
Robotics Simulation by Wireless Brains - ROBOKDC'15 Project
 
Robot Configuration - 1
Robot Configuration - 1Robot Configuration - 1
Robot Configuration - 1
 
Hierarchical Modeling
Hierarchical ModelingHierarchical Modeling
Hierarchical Modeling
 
Open gl basics
Open gl basicsOpen gl basics
Open gl basics
 
Kinematic analysis of mechanisms analytical methods
Kinematic analysis of mechanisms  analytical methodsKinematic analysis of mechanisms  analytical methods
Kinematic analysis of mechanisms analytical methods
 
UNIT 6 Robotics01.ppt
UNIT 6 Robotics01.pptUNIT 6 Robotics01.ppt
UNIT 6 Robotics01.ppt
 
Robotics Representing Position & Orientation 1
Robotics Representing Position & Orientation 1Robotics Representing Position & Orientation 1
Robotics Representing Position & Orientation 1
 
Industrial Robotics Presentation.pdf
Industrial Robotics Presentation.pdfIndustrial Robotics Presentation.pdf
Industrial Robotics Presentation.pdf
 
cg mod2.pdf
cg mod2.pdfcg mod2.pdf
cg mod2.pdf
 
ROBOTICS PPT.pdf
ROBOTICS PPT.pdfROBOTICS PPT.pdf
ROBOTICS PPT.pdf
 
Robot Configuration - 2
Robot Configuration - 2Robot Configuration - 2
Robot Configuration - 2
 
Kinematics of Machines
Kinematics of MachinesKinematics of Machines
Kinematics of Machines
 
Rseminarp
RseminarpRseminarp
Rseminarp
 
Slicing of Object-Oriented Programs
Slicing of Object-Oriented ProgramsSlicing of Object-Oriented Programs
Slicing of Object-Oriented Programs
 

More from Syed Zaid Irshad

Operating System.pdf
Operating System.pdfOperating System.pdf
Operating System.pdf
Syed Zaid Irshad
 
DBMS_Lab_Manual_&_Solution
DBMS_Lab_Manual_&_SolutionDBMS_Lab_Manual_&_Solution
DBMS_Lab_Manual_&_Solution
Syed Zaid Irshad
 
Data Structure and Algorithms.pptx
Data Structure and Algorithms.pptxData Structure and Algorithms.pptx
Data Structure and Algorithms.pptx
Syed Zaid Irshad
 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptx
Syed Zaid Irshad
 
Professional Issues in Computing
Professional Issues in ComputingProfessional Issues in Computing
Professional Issues in Computing
Syed Zaid Irshad
 
Reduce course notes class xi
Reduce course notes class xiReduce course notes class xi
Reduce course notes class xi
Syed Zaid Irshad
 
Reduce course notes class xii
Reduce course notes class xiiReduce course notes class xii
Reduce course notes class xii
Syed Zaid Irshad
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
Syed Zaid Irshad
 
C Language
C LanguageC Language
C Language
Syed Zaid Irshad
 
Flowchart
FlowchartFlowchart
Flowchart
Syed Zaid Irshad
 
Algorithm Pseudo
Algorithm PseudoAlgorithm Pseudo
Algorithm Pseudo
Syed Zaid Irshad
 
Computer Programming
Computer ProgrammingComputer Programming
Computer Programming
Syed Zaid Irshad
 
ICS 2nd Year Book Introduction
ICS 2nd Year Book IntroductionICS 2nd Year Book Introduction
ICS 2nd Year Book Introduction
Syed Zaid Irshad
 
Security, Copyright and the Law
Security, Copyright and the LawSecurity, Copyright and the Law
Security, Copyright and the Law
Syed Zaid Irshad
 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer Architecture
Syed Zaid Irshad
 
Data Communication
Data CommunicationData Communication
Data Communication
Syed Zaid Irshad
 
Information Networks
Information NetworksInformation Networks
Information Networks
Syed Zaid Irshad
 
Basic Concept of Information Technology
Basic Concept of Information TechnologyBasic Concept of Information Technology
Basic Concept of Information Technology
Syed Zaid Irshad
 
Introduction to ICS 1st Year Book
Introduction to ICS 1st Year BookIntroduction to ICS 1st Year Book
Introduction to ICS 1st Year Book
Syed Zaid Irshad
 
Using the set operators
Using the set operatorsUsing the set operators
Using the set operators
Syed Zaid Irshad
 

More from Syed Zaid Irshad (20)

Operating System.pdf
Operating System.pdfOperating System.pdf
Operating System.pdf
 
DBMS_Lab_Manual_&_Solution
DBMS_Lab_Manual_&_SolutionDBMS_Lab_Manual_&_Solution
DBMS_Lab_Manual_&_Solution
 
Data Structure and Algorithms.pptx
Data Structure and Algorithms.pptxData Structure and Algorithms.pptx
Data Structure and Algorithms.pptx
 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptx
 
Professional Issues in Computing
Professional Issues in ComputingProfessional Issues in Computing
Professional Issues in Computing
 
Reduce course notes class xi
Reduce course notes class xiReduce course notes class xi
Reduce course notes class xi
 
Reduce course notes class xii
Reduce course notes class xiiReduce course notes class xii
Reduce course notes class xii
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 
C Language
C LanguageC Language
C Language
 
Flowchart
FlowchartFlowchart
Flowchart
 
Algorithm Pseudo
Algorithm PseudoAlgorithm Pseudo
Algorithm Pseudo
 
Computer Programming
Computer ProgrammingComputer Programming
Computer Programming
 
ICS 2nd Year Book Introduction
ICS 2nd Year Book IntroductionICS 2nd Year Book Introduction
ICS 2nd Year Book Introduction
 
Security, Copyright and the Law
Security, Copyright and the LawSecurity, Copyright and the Law
Security, Copyright and the Law
 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer Architecture
 
Data Communication
Data CommunicationData Communication
Data Communication
 
Information Networks
Information NetworksInformation Networks
Information Networks
 
Basic Concept of Information Technology
Basic Concept of Information TechnologyBasic Concept of Information Technology
Basic Concept of Information Technology
 
Introduction to ICS 1st Year Book
Introduction to ICS 1st Year BookIntroduction to ICS 1st Year Book
Introduction to ICS 1st Year Book
 
Using the set operators
Using the set operatorsUsing the set operators
Using the set operators
 

Recently uploaded

Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
Ratnakar Mikkili
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
PauloRodrigues104553
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 

Recently uploaded (20)

Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 

Hierarchical Modeling

  • 2. Objectives • Examine the limitations of linear modeling • Symbols and instances • Introduce hierarchical models • Articulated models • Robots • Introduce Tree and DAG models 2
  • 3. Instance Transformation • Start with a prototype object (a symbol) •Each appearance of the object in the model is an instance •Must scale, orient, position •Defines instance transformation 3
  • 4. Symbol-Instance Table Can store a model by assigning a number to each symbol and storing the parameters for the instance transformation 4
  • 5. Relationships in Car Model • Symbol-instance table does not show relationships between parts of model • Consider model of car • Chassis + 4 identical wheels • Two symbols • Rate of forward motion determined by rotational speed of wheels 5
  • 6. Structure Through Function Calls car(speed) { chassis() wheel(right_front); wheel(left_front); wheel(right_rear); wheel(left_rear); } • Fails to show relationships well • Look at problem using a graph 6
  • 7. Graphs • Set of nodes and edges (links) • Edge connects a pair of nodes • Directed or undirected • Cycle: directed path that is a loop 7 loop
  • 8. Tree • Graph in which each node (except the root) has exactly one parent node • May have multiple children • Leaf or terminal node: no children 8 root node leaf node
  • 10. DAG Model •If we use the fact that all the wheels are identical, we get a directed acyclic graph • Not much different than dealing with a tree 10
  • 11. Modeling with Trees • Must decide what information to place in nodes and what to put in edges • Nodes • What to draw • Pointers to children • Edges • May have information on incremental changes to transformation matrices (can also store in nodes) 11
  • 12. Robot Arm 12 robot arm parts in their own coodinate systems
  • 13. Articulated Models • Robot arm is an example of an articulated model •Parts connected at joints •Can specify state of model by giving all joint angles 13
  • 14. Relationships in Robot Arm • Base rotates independently • Single angle determines position • Lower arm attached to base • Its position depends on rotation of base • Must also translate relative to base and rotate about connecting joint • Upper arm attached to lower arm • Its position depends on both base and lower arm • Must translate relative to lower arm and rotate about joint connecting to lower arm 14
  • 15. Required Matrices •Rotation of base: Rb • Apply M = Rbto base •Translate lower arm relative to base: Tlu •Rotate lower arm around joint: Rlu • Apply M = RbTluRlu to lower arm •Translate upper arm relative to upper arm: Tuu •Rotate upper arm around joint: Ruu • Apply M = RbTluRlu Tuu Ruu to upper arm 15
  • 16. OpenGL Code for Robot robot_arm() { glRotate(theta, 0.0, 1.0, 0.0); base(); glTranslate(0.0, h1, 0.0); glRotate(phi, 0.0, 1.0, 0.0); lower_arm(); glTranslate(0.0, h2, 0.0); glRotate(psi, 0.0, 1.0, 0.0); upper_arm(); } 16
  • 17. Tree Model of Robot • Note code shows relationships between parts of model • Can change “look” of parts easily without altering relationships • Simple example of tree model • Want a general node structure for nodes 17
  • 18. Possible Node Structure 18 Code for drawing part or pointer to drawing function linked list of pointers to children matrix relating node to parent
  • 19. Generalizations • Need to deal with multiple children • How do we represent a more general tree? • How do we traverse such a data structure? • Animation • How to use dynamically? • Can we create and delete nodes during execution? 19