GTECH 731 Lab Session 10 11/2/10 Lab 8 – Simple Agent Model Review Exploring ArcObjects Lab 9 – ArcObjects.

Slides:



Advertisements
Similar presentations
Kinematics.
Advertisements

Horizontal and Vertical Distances
Kinematics of Particles
Inequalities in Two Triangles
CSE 380 – Computer Game Programming Pathfinding AI
UNIT V: EARTH’S COORDINATE SYSTEMS
GTECH 731 Lab Session 10 11/2/10 Lab 9 – ArcObjects Pseudo-code Example.
Movement. Fixed Movement setLocation (x, y) Makes the crab move to a fixed cell x,y Relative Movement The functions: getX() getY() Fetch the x and y coordinate.
Assemblies in Solidworks Simple Assembly Download 4_assembly_example.zip Open a new assembly file (use tutorial template) Click view, origins (to show.
GTECH 731 Lab Session 8 10/26/10 Lab 7 Geotools. Previous Labs Labs designed to gradually introduce C# and Visual Studio Started with simple, straight.
Measuring Motion Chapter 10.1.
Introduction to Programming with Java, for Beginners Scope.
GTECH 731 Lab Session 9 11/2/10 Lab 7 – Geotools Review Lab 8 – Simple Agent Model Semester Project.
Position and Motion Section 1.1.
RELATIVE VELOCITY IN 2D. WARM UP A boat travels at a constant speed of 3 m/s on a river. The river’s current has a velocity of 2 m/s east. 1.If the boat.
C++ / G4MICE Course Session 3 Introduction to Classes Pointers and References Makefiles Standard Template Library.
Regents Physics The Simple Pendulum.
Do Now Write down 4 things that you know about a COORDINATE GRID.
AD 305 Electronic Visualization I : School of Art and Design : University of Illinois at Chicago : Spring 2007 Intro to Action Script 2 "The games of a.
Module 3: Working with Components. Overview An Introduction to Key.NET Framework Development Technologies Creating a Simple.NET Framework Component Creating.
Arc: Accessing the Framework Dr Andy Evans. Code The code that goes in the addIn is then code to work with the ArcObjects framework. Ask App for Document.
Projectile Arch: A Look into ways to fix an elongated projectile that is lobbed.
11 Adding Tomato Targets Session Session Overview  We now have a game which lets a player bounce a piece of cheese on a bread bat  Now we have.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Ver Namespaces & Exceptions Adapted from Ch. 3 slides of Data Abstraction:
1 FUNCTIONS - I Chapter 5 Functions help us write more complex programs.
CSC Data Structures, Fall, 2008 Monday, September 29, end of week 5, Generic Functions and Classes in C++
January Ms. K will stamp your homework before class starts.
Kinematics in Two Dimensions. Section 1: Adding Vectors Graphically.
Refraction of light through a Convex Lens. Lens diagram a cross section through the centre plane.
1 Debugging and Syntax Errors in C++. 2 Debugging – a process of finding and fixing bugs (errors or mistakes) in a computer program.
Conditionals-part21 Conditionals – part 2 Barb Ericson Georgia Institute of Technology Nov 2009.
Physical Science Introduction to the wonderful world of Physics.
1 Copyright © Cengage Learning. All rights reserved. 6. The Trigonometric Functions 6.7 Application Problems.
Vectors: Displacement and Velocity. Vectors Examples of vectors: displacement velocity acceleration.
Computer Science I Programming in Java (programming using Processing IN Java, using IntelliJ IDE) Classwork/Homework: copy your Processing projects over.
ROBOTC Software EV3 Robot Workshop
Geometry 9.7 Vectors. Goals  I can name a vector using component notation.  I can add vectors.  I can determine the magnitude of a vector.  I can.
Site Selection The following are photographs of the sites from which you may choose your water samples. After reviewing the photos, you will use the map.
Lesson Objective: Kinematics with Non Constant Acceleration WE CAN NO LONGER USE THE ‘SUVAT’ EQUATIONS !!
Chapter 3: Two-Dimensional Motion and Vectors. Objectives Define vectors and scalars. Understand simple vector operations like addition, subtraction,
Rhys Llywelyn Mountain Skills Summary. Rhys Llywelyn Mountain Navigation Reading the Map Always keep the map orientated, in good visibility use the features.
Motion Definition Change in position of an object over a period of time relative to a reference frame.
M OTION AND P OSITION. P OSITION DESCRIBES THE LOCATION OF AN OBJECT The position is the location of that place of object. You often describe the position.
Physics Section 3.2 Resolve vectors into their components When a person walks up the side of a pyramid, the motion is in both the horizontal and vertical.
Motion and Force Chapter Three: Motion 3.1 Position and Velocity 3.2 Graphs of Motion 3.3 Acceleration.
Physics Section 3.2 Resolve vectors into their components When a person walks up the side of a pyramid, the motion is in both the horizontal and vertical.
9/30/20161 Path Planning Cognitive Robotics David S. Touretzky & Ethan Tira-Thompson Carnegie Mellon Spring 2012.
Chapter 3 Kinematics in two dimensions
Maps & Compasses (Part 2)
Applications and models
Recursive Exploration II
What type of angle is it?.
Enduring Understanding: Modeling is widely used to represent physical and kinematic information. Essential Question: What are the practical applications.
Chapter 5 Section 1 Motion.
CS 2308 Exam I Review.
Visual Studio 2005 Options for Release Mode: C++, Fortran, Linker
Motion and Force. Motion and Force Chapter Twelve: Distance, Time, and Speed 12.1 Distance, Direction, and Position 12.2 Speed 12.3 Graphs of Motion.
FORCE AND MOTION.
Chapter 2 Mapping our World.
Rotations on the Coordinate Plane
  30 A 30 B 30 C 30 D 30 E 77 TOTALS ORIGINAL COUNT CURRENT COUNT
Vector Resolution.
Inequalities in Two Triangles
Vectors.
Distance Ben Grossman Eric Bünzli.
Projectile Motion.
Inequalities in Two Triangles
Distance, Direction and Position
Motion Planning for a Point Robot (1/2)
Position and speed as a function of time
Presentation transcript:

GTECH 731 Lab Session 10 11/2/10 Lab 8 – Simple Agent Model Review Exploring ArcObjects Lab 9 – ArcObjects

Lab 8 – Simple Agent Model Create simple Agent model With Pedestrian, Obstacle and Goal objects Pedestrians move towards closest Goal Originally moved in 1 of 4 directions along longest of 2 component directions (vertical or horizontal) Changed pedestrian to move directly to goal along straight line “Obstacles” in scene blocked paths to goal Pedestrian detected “hit” of object and could not move forward Problem: What do you do when a “Pedestrian” hits an object? How does it go around an object?

Lab 8 – Original Logic Not Sophisticated Enough 1.For each tick of the clock 1.If there are goals and a goal has not been reached 1.Find the closest goal 1.Look at all of the goals and select the closest one 2.Determine direction to that goal 1.Calculate two component directions (vertical or horizontal) to the goal and select the longer of the 2 directions 3.While in old position 1.Move one step in selected direction 2.If object is hit 1.Move back to old position 2.Change selected direction 1. If moving North, move East 2. If moving East, move South 3. If moving South, move West 4. If moving West, move North 2.What other options are there when a pedestrian hits an object?

Lab 8 – My “Solution” When Object Hit 1.If object is hit 1.Move back to old position 2.Count # of Tries 3.Change selected direction 1.If # tries is even 1.Rotate 120  2.Else # tries is odd 1.Rotate -120  3.Move “Step Distance” + # Tries 2.Negotiated around “convex” edges 3.Did not work with objects having “concave” edges 120 

1.If object is hit 1.Move back to old position 2.Change selected direction 1.Rotate some other fixed angle (5, 10, 25 etc.) from the current angle 2.Move “Step Distance” OR 1.If object is hit 1.Move back to old position 2.Change selected direction 1.Set Random Angle to travel 2.Move “Step Distance” Lab 8 – Alternatives to My “Solution” 120 

Lab 8 – Follow Edge Of Obstacle 1.If object is hit 1.Determine “Edge Hit” 2.Move back to old position 3.Make last point in “Edge Hit” a “Temporary Goal” 4.If temporary goal not “reached” 1.Move toward “Temporary Goal” 5.Else 1.Determine “Next Edge” 2.Make last point in “Next Edge” the “Temporary Goal” Problem might be defining “reaching” temporary goal Does Pedestrian need to go beyond temporary goal so as not to hit the same edge when it resumes travelling toward ultimate goal? Might need extra variable saying pedestrian is travelling along edge or to say which edge How do you tell when you are around the obstacle?

Exploring ArcObjects Like to Geotools, ArcObjects compiled into DLL file and included in any project In code, right click and select “Go to definition” for... Idocument AppRef Parent { get; } IApplication Variables: bool Visible { get; set; }; string Caption { get; set; } Methods: void RefreshWindow(); void Shutdown(); void NewDocument(bool selectTemplate, string templatePath); void OpenDocument(string path);

Exploring ArcObjects In code, right click and select “Go to definition” for... MXDocumentClass AppRef Parent { get; } IMxDocument IMap FocusMap { get; } Imap int LayerCount { get; } ILayer get_Layer(int Index); void MoveLayer(ILayer Layer, int toIndex); Basic information about the ArcObjects Library is available at: under “ArcObjects Library Reference”.

Lab 9 – Preview Look at Lab assignment