Crowd simulation. Summerschool Utrecht: Multidisciplinary Game Research. Dr. Roland Geraerts 23 August 2017

Similar documents
CROWD SIMULATION AS A SERVICE

A comparative study of k-nearest neighbour techniques in crowd simulation

GPGPU-Accelerated Construction of High-Resolution Generalized Voronoi Diagrams and Navigation Meshes

Navigation for Characters and Crowds in Complex Virtual Environments. Wouter van Toll

High-density Crowds. A masters student s journey to graphics and multi agent systems

Beyond A*: Speeding up pathfinding through hierarchical abstraction. Daniel Harabor NICTA & The Australian National University

Collision Avoidance with Unity3d

Space-time Group Motion Planning

How Do Computers Solve Geometric Problems? Sorelle Friedler, University of Maryland - College Park

On the Topology of Walkable Environments

Performing Multicut on Walkable Environments

Real-time Path Planning and Navigation for Multi-Agent and Heterogeneous Crowd Simulation

Navigation Queries from Triangular Meshes

Geometric Computation: Introduction

CS 231. Crowd Simulation. Outline. Introduction to Crowd Simulation. Flocking Social Forces 2D Cellular Automaton Continuum Crowds

Introduction to State-of-the-art Motion Planning Algorithms. Presented by Konstantinos Tsianos

Robot Motion Planning

Geometric Path Planning McGill COMP 765 Oct 12 th, 2017

Behavioral Animation in Crowd Simulation. Ying Wei

Scalable Multi Agent Simulation on the GPU. Avi Bleiweiss NVIDIA Corporation San Jose, 2009

Indicative Routes for Path Planning and Crowd Simulation

The Corridor Map Method: Real-Time High-Quality Path Planning

A Predictive Collision Avoidance Model for Pedestrian Simulation

Announcements. Exam #2 next Thursday (March 13) Covers material from Feb. 11 through March 6

Robot Motion Planning

Adding Virtual Characters to the Virtual Worlds. Yiorgos Chrysanthou Department of Computer Science University of Cyprus

Configuration Space of a Robot

Pathfinding. Pathfinding Planned Movement

I may not have gone where I intended to go, but I think I have ended up where I needed to be. Douglas Adams

Scene Management. Video Game Technologies 11498: MSc in Computer Science and Engineering 11156: MSc in Game Design and Development

Sensitivity Analysis of Evacuation Simulations

Robot Motion Planning Using Generalised Voronoi Diagrams

Implementing a Hybrid Space Discretisation Within An Agent Based Evacuation Model

High level NavMesh Building Components

CMU-Q Lecture 4: Path Planning. Teacher: Gianni A. Di Caro

Collaborators. Multiple Agents & Crowd Simulation: training sytems 5/15/2010. Interactive Multi-Robot Planning and Multi-Agent Simulation

Introduction to Information Science and Technology (IST) Part IV: Intelligent Machines and Robotics Planning

Multi-Level Formation Roadmaps for Collision-Free Dynamic Shape Changes with Non-holonomic Teams

CHAPTER SIX. the RRM creates small covering roadmaps for all tested environments.

Tutorial: Using the UUCS Crowd Simulation Plug-in for Unity

Automatic Construction of High Quality Roadmaps for Path Planning

From geometry to spatial reasoning : automatic structuring of 3D virtual environments

Geometric Computation: Introduction. Piotr Indyk

CPSC 695. Methods for interpolation and analysis of continuing surfaces in GIS Dr. M. Gavrilova

Toward realistic and efficient virtual crowds. Julien Pettré - June 25, 2015 Habilitation à Diriger des Recherches

Shorter, Smaller, Tighter Old and New Challenges

11 Behavioural Animation. Chapter 11. Behavioural Animation. Department of Computer Science and Engineering 11-1

Real-time Simulation and Rendering of Large-scale Crowd Motion

CS 378: Computer Game Technology

Multi Agent Navigation on GPU. Avi Bleiweiss

Strategies for simulating pedestrian navigation with multiple reinforcement learning agents

Universiteit Leiden Computer Science

INTRODUCTION. Contact us for more detailed information or a demonstration of Pedestrian Dynamics.

Sampling-based Planning 2

How do people queue? A study of different queuing models. TGF 2015 Delft, 28th October 2015

Real-time Crowd Movement On Large Scale Terrains

Simulation of Agent Movement with a Path Finding Feature Based on Modification of Physical Force Approach

Finding Shortest Path on Land Surface

Planning in Mobile Robotics

Motion Planning for Human Crowds: from Individuals to Groups of Virtual Characters

(Master Course) Mohammad Farshi Department of Computer Science, Yazd University. Yazd Univ. Computational Geometry.

Subdivision Of Triangular Terrain Mesh Breckon, Chenney, Hobbs, Hoppe, Watts

Crowd simulation. Taku Komura

CMSC 425: Lecture 9 Geometric Data Structures for Games: Geometric Graphs Thursday, Feb 21, 2013

Advanced path planning. ROS RoboCup Rescue Summer School 2012

CS 4649/7649 Robot Intelligence: Planning

Social Value Creation via IoT

Path Planning in Repetitive Environments

INTRODUCTION. Contact us for more detailed information or a demonstration of Pedestrian Dynamics.

Generating sparse navigation graphs for microscopic pedestrian simulation models

AUTONOMOUS TAWAF CROWD SIMULATION. Ahmad Zakwan Azizul Fata, Mohd Shafry Mohd Rahim, Sarudin Kari

Probabilistic Methods for Kinodynamic Path Planning

Clearance Based Path Optimization for Motion Planning

Real-time Collision Avoidance for Pedestrian and Bicyclist Simulation: a smooth and predictive approach

Smallest Intersecting Circle for a Set of Polygons

Lecture 1: September 6, 2001

ECE276B: Planning & Learning in Robotics Lecture 5: Configuration Space

Workspace Skeleton Tools for Motion Planning

Graphs, Search, Pathfinding (behavior involving where to go) Steering, Flocking, Formations (behavior involving how to go)

Indexing Land Surface for Efficient knn Query

arxiv: v1 [cs.cg] 24 Jul 2018

Geometric and Discrete Path Planning for Interactive Virtual Worlds

Towards more Realistic and Efficient Virtual Environment Description and Usage

Multi-unit pathfinding and column generation

CS248. Game Mechanics

MODELING AND HIERARCHY

Luiz Fernando Martha André Pereira

Computer Game Programming Basic Path Finding

Blender Notes. Introduction to Digital Modelling and Animation in Design Blender Tutorial - week 1 The Blender Interface and Basic Shapes

CrowdMixer: Multiple Agent Types in Situation-Based Crowd Simulations

Last update: May 6, Robotics. CMSC 421: Chapter 25. CMSC 421: Chapter 25 1

Computational Geometry. Free Lab Exercises. Year Q1

PETS2009: Dataset and Challenge

c 2012 Katrina R Gossman

Multi-Agent Simulation of Circular Pedestrian Movements Using Cellular Automata

Animating cuts with on-the-fly re-meshing

video 1 video 2 Motion Planning (It s all in the discretization) Digital Actors Basic problem Basic problem Two Possible Discretizations

arxiv: v1 [cs.cg] 7 Jun 2016

Implementing Geometric Algorithms. Wouter van Toll June 20, 2017

Prof. Gill Barequet. Center for Graphics and Geometric Computing, Technion. Dept. of Computer Science The Technion Haifa, Israel

Transcription:

Crowd simulation Summerschool Utrecht: Multidisciplinary Game Research Dr. Roland Geraerts 23 August 2017 1

Societal relevance of crowd simulation The number of environments with big crowds are growing In how much time can a train station be evacuated? Where and how can potential dangerous situations appear? How can a city accommodate 0.5M people during an event? How can we populate a game world with a believable crowd? Love Parade 2010 21 deaths 510 injuries 2

A computational model of human navigation Challenge: Unify dispersed models for realistic, individual, small group, and collective human movements in interactive, heterogeneous environments. Dispersed models Agent-based: individuals, but problems with high densities Flow-based: no individuals, but good for high densities Realistic movements Comprise collaboration, smooth and energy-efficient movement, collision avoidance, and dealing with unrealistic congestions. Interactive environment Geometry can change dynamically, and the crowd reacts to it. Heterogeneous environment People need to take logical, distinct, and realistic paths over heterogeneous terrains in the environment. 3

4 Are we there yet?

Some results Optimizing pedestrian streams in the Tour de France Studying optimal light situations in smoky environments Evacuation studies in metro stations of the North/Southline 5

6 How can we simulate a crowd?

Crowd simulation framework Representation environment Level 5 Plans actions Level 4 Creates indicative routes Level 3 Traverses the routes Yields speed/direction pairs Level 2 Adapts routes E.g. to avoid collisions Level 1 Moves the characters Representation of the environment Level 5 Level 4 Level 3 Level 2 Level 1 High-level planning Global route Simulation step Route following Local movement Animation start/goal positions indicative route preferred velocity velocity 7

Crowd simulation framework Representation environment Level 5 Plans actions Level 4 Creates indicative routes Level 3 Traverses the routes Yields speed/direction pairs Level 2 Adapts routes E.g. to avoid collisions Level 1 Moves the characters Representation of the environment Level 5 Level 4 Level 3 Level 2 Level 1 High-level planning Global route Simulation step Route following Local movement Animation start/goal positions indicative route preferred velocity velocity 8

Representation of the traversable environment Requirements Path existence 100% coverage of the navigable space All cycles Fast computation and small storage Fast query time during simulation Flexible: surfaces instead of graphs 9

Representing 2D environments What is the best representation for the walkable space of an environment? Inspiration from fungus cultures Voronoi diagram 11

Representing 2D environments What is the best representation for the walkable space of an environment? leads to an efficient data structure: a navigation mesh 12

Representing 2D environments Can be huge E.g. 1 km 2 Fast to compute 13

What about 3D environments? 3D Voronoi diagram? No create a multi-layered Voronoi diagram M. Hemmer, O. Setter, and D. Halperin. Constructing the Exact Voronoi Diagram of Arbitrary Lines in Space with Fast Point-Location. RR-7273, INRIA. 2010, pp.19. 14

What about 3D environments? Preprocessing steps that extract the walkable areas Input environment 15

What about 3D environments? Preprocessing steps that extract the walkable areas 1. Remove steep polygons 16

What about 3D environments? Preprocessing steps that extract the walkable areas 2. Remove small regions 17

What about 3D environments? Preprocessing steps that extract the walkable areas 3. Check vertical clearance (using all geometry) 18

What about 3D environments? Preprocessing steps that extract the walkable areas 4. Simplify triangulation 19

What about 3D environments? Preprocessing steps that extract the walkable areas 5. Separate into layers 20

What about 3D environments? 6. For each 2D layer, create a 2D navigation mesh 7. Stitch them together into a multi-layered navigation mesh 21 Van Toll et al, 2017: The Explicit Corridor Map A Medial Axis-Based Navigation Mesh for Multi-Layered Env.

Representation of the traversable environment Can be really huge E.g. many km 2 22 Van Toll et al, 2017: The Medial Axis of a Multi-Layered Environment and its Application as a Navigation Mesh

Representation of the traversable environment Multi-layered navigation mesh Allows fast extraction of global routes and final paths Nice mathematical properties Fast to compute Small data structure Nearest obstacle computation O(n log n log k), with k connections O(n) O(1) 2D algorithms usually work in multi-layered environments 23

Representation of the traversable environment Handles dynamic changes 24 Van Toll et al, 2012: A Navigation Mesh for Dynamic Environments

25 Path planning errors in games

Crowd simulation Given this representation, how can we simulate a crowd? 26

Crowd simulation framework Representation environment Level 5 Plans actions Level 4 Creates indicative routes Level 3 Traverses the routes Yields speed/direction pairs Level 2 Adapts routes E.g. to avoid collisions Level 1 Moves the characters Representation of the environment Level 5 Level 4 Level 3 Level 2 Level 1 High-level planning Global route Simulation step Route following Local movement Animation start/goal positions indicative route preferred velocity velocity 27

Action planning Splits up a task into geometric queries Example: dynamic updates of the crowd Standard behavior: pedestrians take the same gate Improved behavior: pedestrians choose between different gates 28 M. Koenis, 2016: Impact of Pedestrians Bringing Along Their Bicycles on Evacuation Times of Subway Stations

Action planning Splits up a task into geometric queries Example: Dynamic updates of the crowd 29 Van Toll et al, 2015: Dynamically Pruned A* for Re-planning in Navigation Meshes

Crowd simulation framework Representation environment Level 5 Plans actions Level 4 Creates indicative routes Level 3 Traverses the routes Yields speed/direction pairs Level 2 Adapts routes E.g. to avoid collisions Level 1 Moves the characters Representation of the environment Level 5 Level 4 Level 3 Level 2 Level 1 High-level planning Global route Simulation step Route following Local movement Animation start/goal positions indicative route preferred velocity velocity 30

Indicative Routes A path planning algorithm should NOT compute a path A one-dimensional path limits the character s freedom Humans don t do that either It should produce An Indicative/Preferred Route Guides character to goal 31

Computing Indicative Routes Shortest path with clearance to obstacles 32 Jaklin et al, 2014: Computing High-Quality Paths in Weighted Regions

Crowd simulation framework Representation environment Level 5 Plans actions Level 4 Creates indicative routes Level 3 Traverses the routes Yields speed/direction pairs Level 2 Adapts routes E.g. to avoid collisions Level 1 Moves the characters Representation of the environment Level 5 Level 4 Level 3 Level 2 Level 1 High-level planning Global route Simulation step Route following Local movement Animation start/goal positions indicative route preferred velocity velocity 33

Traversing the routes Modified Indicative Routes And Navigation (MIRAN) Supports heterogeneous terrains separate character profiles customized smoothing 34 Jaklin et al, 2013: Real-Time Path Planning in Heterogeneous Environments

Crowd simulation framework Representation environment Level 5 Plans actions Level 4 Creates indicative routes Level 3 Traverses the routes Yields speed/direction pairs Level 2 Adapts routes E.g. to avoid collisions Level 1 Moves the characters Representation of the environment Level 5 Level 4 Level 3 Level 2 Level 1 High-level planning Global route Simulation step Route following Local movement Animation start/goal positions indicative route preferred velocity velocity 35

What is realistic collision-avoidance behavior? Smack the pony s01x02 36

What is realistic collision-avoidance behavior? Crowd prank in Japan 37

Adapting the routes: Collision avoidance Our model is derived from experiments in the MOCAP lab PhD students: Wouter van Toll and Norman Jaklin 38

Adapting the routes: Collision avoidance Our model slightly adjusts the people s movements 39 Karamouzas et al, 2009: A Predictive Collision Avoidance Model for Pedestrian Simulation

Adapting the routes: Social groups The group members stay close and visible to each other 40 Kremyzas et al, 2016: Towards Social Behavior in Virtual-Agent Navigation

Adapting the routes: Moving through a dense crowd People can make room for a passing individual 41 Stüvel et al, 2017: Torso crowds

Adapting the routes: Unification of individual and collective movements Our stream-based model allows local coordination, based on a character s incentive Deviation from the local flow Local density Internal motivation Spent time to reach goal 42 Van Goethem et al, 2015: On Streams and Incentives: A Synthesis of Individual and Collective Crowd Motion

So what is realistic collision avoidance? Rush Hour; by Fernando Livschitz 43

Crowd simulation framework Representation environment Level 5 Plans actions Level 4 Creates indicative routes Level 3 Traverses the routes Yields speed/direction pairs Level 2 Adapts routes E.g. to avoid collisions Level 1 Moves the characters Representation of the environment Level 5 Level 4 Level 3 Level 2 Level 1 High-level planning Global route Simulation step Route following Local movement Animation start/goal positions indicative route preferred velocity velocity 44

Crowd management Collect much information, study many scenario s 46 Van Goethem et al, 2015: On Streams and Incentives: A Synthesis of Individual and Collective Crowd Motion

Crowd safety measure, and act. But what should we measure? It s time for an experiment! r=0,56 C=3,54 A=1m 2 47

List of contributors Staff Roland Geraerts Marjan van den Akker Han Hoogeveen Frank van der Stappen Mark Overmars Marc van Kreveld PhD students Arthur van Goethem Norman Jaklin Ioannis Karamouzas Wouter van Toll Arne Hillebrand MSc students Angelos Kremyzas Mihai Polak Jordi Vermeulen Martijn Koenis Marijn van der Zwan Scientific programmers Angelos Kremyzas Mihai Polak Wouter van Toll Companies Movares, GreenDino InControl, Evaqaid, 48

Contact We welcome people to collaborate and participate! Roland Geraerts R.J.Geraerts@uu.nl uu.nl/staff/rjgeraerts ucrowds.com 49