Monday, June 24, 2013
Guards
I have also added a guard script, which creates a behavior tree outside of the plan. For now, the guard closes off doors, and prevent another agent from unlocking, opening, or going through that door. This action is considered a dynamic event as it is outside the planner's plan, so it triggers a replan if it affects the current plan's precnoditions.
Locking
I've added a locked state to the doors, as well as a key smart object, and getObject and unlockDoor interactions. This complicates the plans, which demonstrates the systems still work with larger plans, however it has also resulted in some slowdown when planning.
Monday, June 17, 2013
Related Work
citation for PAR
some work of jan allbeck
all the citations from the cga paper
-------------------------------------
Simulating Multiple Character Interactions with Collaborative and Adversarial Goals
The 2012 IEEE Transactions on Visualization and Computer Graphic (TVCG 2012)
http://hubertshum.com/info/publications/tvcg2012/index.htm
@article{shum12simulating,
author={Shum, H.P.H. and Komura, T. and Yamazaki, S.},
journal={IEEE Transactions on Visualization and Computer Graphics},
title={Simulating Multiple Character Interactions with Collaborative and Adversarial Goals},
year={2012},
month={may},
volume={18},
number={5},
pages={741 -752},
doi={10.1109/TVCG.2010.257},
ISSN={1077-2626}, }
Interaction Patches for Multi-Character Animation
ACM Transactions on Graphics (ToG) / Proceedings of the 2008 ACM SIGGRAPH Asia (SIGGRAPH Asia 2008)
http://hubertshum.com/info/publications/siggraphasia2008/index.htm
@article{shum08interaction,
author = {Shum, Hubert P. H. and Komura, Taku and Shiraishi, Masashi and Yamazaki, Shuntaro},
title = {Interaction patches for multi-character animation},
journal = {ACM Trans. Graph.},
volume = {27},
number = {5},
year = {2008},
issn = {0730-0301},
pages = {1--8},
doi = {http://doi.acm.org/10.1145/1409060.1409067},
publisher = {ACM},
address = {New York, NY, USA}, }
Simulating Interactions of Avatars in High Dimensional State Space
http://hubertshum.com/info/publications/i3d2008/index.htm
@inproceedings{shum08simulating,
author = {Shum, Hubert P. H. and Komura, Taku and Yamazaki, Shuntaro},
title = {Simulating interactions of avatars in high dimensional state space},
booktitle = {I3D '08: Proceedings of the 2008 symposium on Interactive 3D graphics and games},
year = {2008},
isbn = {978-1-59593-983-8},
pages = {131--138},
location = {Redwood City, California},
doi = {http://doi.acm.org/10.1145/1342250.1342271},
publisher = {ACM},
address = {New York, NY, USA}, }
Authoring Multi-Actor Behaviors in Crowds with Diverse Personalities
Mubbasir Kapadia, Alexander Shoulson, Funda Durupinar, Norman I. Badler
Modeling, Simulation and Visual Analysis of Large Crowds, Springer-Verlag, 2012 (To appear)
@InCollection{mubbasirChapter,
author = {Mubbasir Kapadia and Alexander Shoulson and Funda Durupinar and Norman Badler},
title = {Authoring {D}iversity in {P}ersonality and {B}ehavior for {M}ulti-{A}ctor {S}imulations},
booktitle = {Modeling, Simulation and Visual Analysis of Large Crowds},
publisher = {Springer-Verlag},
year = {2012 (Book Chapter, To appear)},
}
A Behavior-Authoring Framework for Multiactor Simulations
Mubbasir Kapadia, Shawn Singh, Glenn Reinman and Petros Faloutsos
IEEE Computer Graphics and Applications, Special Issue, 2011.
@ARTICLE{behaviorCGA,
author={Kapadia, M. and Singh, S. and Reinman, G. and Faloutsos, P.},
journal={Computer Graphics and Applications, IEEE},
title={A Behavior-Authoring Framework for Multiactor Simulations},
year={2011},
month={nov.-dec. },
volume={31},
number={6},
pages={45 -55},
keywords={Web extra;behavior authoring framework;behavioral animation;conflicting goals;multiactor interactions;multiactor simulation;multiagent planner;virtual world;authoring systems;behavioural sciences computing;computer animation;interactive systems;multi-agent systems;virtual reality;},
doi={10.1109/MCG.2011.68},
ISSN={0272-1716},}
ADAPT: The Agent Development and Prototyping Testbed
Alexander Shoulson, Nathan Marshak, Mubbasir Kapadia, Norman I. Badler
ACM SIGGRAPH Symposium on Interactive 3D Graphics and Games, March 2013
@inproceedings{Shoulson:2013:AAD:2448196.2448198,
author = {Shoulson, Alexander and Marshak, Nathan and Kapadia, Mubbasir and Badler, Norman I.},
title = {ADAPT: the agent development and prototyping testbed},
booktitle = {Proceedings of the ACM SIGGRAPH Symposium on Interactive 3D Graphics and Games},
series = {I3D '13},
year = {2013},
isbn = {978-1-4503-1956-0},
location = {Orlando, Florida},
pages = {9--18},
numpages = {10},
url = {http://doi.acm.org/10.1145/2448196.2448198},
doi = {10.1145/2448196.2448198},
acmid = {2448198},
publisher = {ACM},
address = {New York, NY, USA},
keywords = {behavior authoring, character animation, crowd simulation, virtual humans},
}
Multi-Actor Planning for Directable Simulations
Mubbasir Kapadia, Shawn Singh, Glenn Reinman and Petros Faloutsos
IEEE Post-Conference Proceedings, Computer Animation and Social Agents, 2011
@inproceedings{behaviorWorkshop,
author = {Kapadia, Mubbasir and Singh, Shawn and Reinman, Glenn and Faloutsos, Petros},
title = {Multi-actor Planning for Directable Simulations},
booktitle = {Proceedings of the 2011 Workshop on Digital Media and Digital Content Management},
series = {DMDCM '11},
year = {2011},
isbn = {978-0-7695-4413-7},
pages = {111--116},
numpages = {6},
url = {http://dx.doi.org/10.1109/DMDCM.2011.40},
doi = {http://dx.doi.org/10.1109/DMDCM.2011.40},
acmid = {2014473},
publisher = {IEEE Computer Society},
address = {Washington, DC, USA},
keywords = {behavior authoring, centralized planning, multi-objective constraint satisfaction},
}
A. Shoulson, F. Garcia, M. Jones, R. Mead, and N. I. Badler. "Parameterizing Behavior Trees." Fourth International Conference on Motion in Games (MIG), 2011.
@incollection {springerlink:10.1007/978-3-642-25090-3_13,
author = {Shoulson, Alexander and Garcia, Francisco and Jones, Matthew and Mead, Robert and Badler, Norman},
affiliation = {Department of Computer and Information Science, University of Pennsylvania, Philadelphia, PA 19104-6389, USA},
title = {Parameterizing Behavior Trees},
booktitle = {Motion in Games},
series = {Lecture Notes in Computer Science},
editor = {Allbeck, Jan and Faloutsos, Petros},
publisher = {Springer Berlin / Heidelberg},
isbn = {978-3-642-25089-7},
keyword = {Computer Science},
pages = {144-155},
volume = {7060},
url = {http://dx.doi.org/10.1007/978-3-642-25090-3_13},
note = {10.1007/978-3-642-25090-3_13},
year = {2011}
}
A. Shoulson and N. I. Badler. "Event-Centric Control for Background Agents." Fourth International Conference on Interactive Digital Storytelling (ICIDS), 2011.
@inproceedings{DBLP:conf/icids/ShoulsonB11,
author = {Alexander Shoulson and
Norman I. Badler},
title = {Event-Centric Control for Background Agents},
booktitle = {ICIDS},
year = {2011},
pages = {193-198},
ee = {http://dx.doi.org/10.1007/978-3-642-25289-1_21},
bibsource = {DBLP, http://dblp.uni-trier.de}
}
A. Shoulson, D. Garcia, and N. I. Badler. "Selecting Agents for Narrative Roles." Fourth Workshop on Intelligent Narrative Technologies (INT4) at the Artificial Intelligence for Interactive Digital Entertainment Conference (AIIDE), 2011.
@paper{AIIDE11WS4089,
author = {Alexander Shoulson and Daniel Garcia and Norman Badler},
title = {Selecting Agents for Narrative Roles},
conference = {Artificial Intelligence for Interactive Digital Entertainment Conference},
year = {2011},
keywords = {Interactive Narrative; Smart Events; Behavioral AI; Agents},
abstract = {We present ongoing work on a system that accommodates player agency in a digital narrative with an external plot. We focus on key events that should occur in that storyline for dramatic effect, but do not explicitly specify the characters that should fill the roles needed for those events. Instead, we define them abstractly, with characteristics that the selected characters should have (including previous events they should have completed for eligibility), and rely on a Director construct to populate those roles from agents in the selection pool that fit those criteria. Agents begin as largely homogeneous, primordial entities that accumulate data and narrative value from the events in which they participate. This creates an environment that differentiates characters by the actions they perform, conferring worth onto characters that become important to the player based on their direct involvement in the plot. The focus, then, is on defining a priori the what of the narrative, while leaving it to the Director construct to decide at runtime exactly who among a distributed pool of agents carries it out.},
url = {http://aaai.org/ocs/index.php/AIIDE/AIIDE11WS/paper/view/4089}
}
some work of jan allbeck
all the citations from the cga paper
-------------------------------------
Simulating Multiple Character Interactions with Collaborative and Adversarial Goals
The 2012 IEEE Transactions on Visualization and Computer Graphic (TVCG 2012)
http://hubertshum.com/info/publications/tvcg2012/index.htm
@article{shum12simulating,
author={Shum, H.P.H. and Komura, T. and Yamazaki, S.},
journal={IEEE Transactions on Visualization and Computer Graphics},
title={Simulating Multiple Character Interactions with Collaborative and Adversarial Goals},
year={2012},
month={may},
volume={18},
number={5},
pages={741 -752},
doi={10.1109/TVCG.2010.257},
ISSN={1077-2626}, }
Interaction Patches for Multi-Character Animation
ACM Transactions on Graphics (ToG) / Proceedings of the 2008 ACM SIGGRAPH Asia (SIGGRAPH Asia 2008)
http://hubertshum.com/info/publications/siggraphasia2008/index.htm
@article{shum08interaction,
author = {Shum, Hubert P. H. and Komura, Taku and Shiraishi, Masashi and Yamazaki, Shuntaro},
title = {Interaction patches for multi-character animation},
journal = {ACM Trans. Graph.},
volume = {27},
number = {5},
year = {2008},
issn = {0730-0301},
pages = {1--8},
doi = {http://doi.acm.org/10.1145/1409060.1409067},
publisher = {ACM},
address = {New York, NY, USA}, }
Simulating Interactions of Avatars in High Dimensional State Space
http://hubertshum.com/info/publications/i3d2008/index.htm
@inproceedings{shum08simulating,
author = {Shum, Hubert P. H. and Komura, Taku and Yamazaki, Shuntaro},
title = {Simulating interactions of avatars in high dimensional state space},
booktitle = {I3D '08: Proceedings of the 2008 symposium on Interactive 3D graphics and games},
year = {2008},
isbn = {978-1-59593-983-8},
pages = {131--138},
location = {Redwood City, California},
doi = {http://doi.acm.org/10.1145/1342250.1342271},
publisher = {ACM},
address = {New York, NY, USA}, }
Authoring Multi-Actor Behaviors in Crowds with Diverse Personalities
Mubbasir Kapadia, Alexander Shoulson, Funda Durupinar, Norman I. Badler
Modeling, Simulation and Visual Analysis of Large Crowds, Springer-Verlag, 2012 (To appear)
@InCollection{mubbasirChapter,
author = {Mubbasir Kapadia and Alexander Shoulson and Funda Durupinar and Norman Badler},
title = {Authoring {D}iversity in {P}ersonality and {B}ehavior for {M}ulti-{A}ctor {S}imulations},
booktitle = {Modeling, Simulation and Visual Analysis of Large Crowds},
publisher = {Springer-Verlag},
year = {2012 (Book Chapter, To appear)},
}
A Behavior-Authoring Framework for Multiactor Simulations
Mubbasir Kapadia, Shawn Singh, Glenn Reinman and Petros Faloutsos
IEEE Computer Graphics and Applications, Special Issue, 2011.
@ARTICLE{behaviorCGA,
author={Kapadia, M. and Singh, S. and Reinman, G. and Faloutsos, P.},
journal={Computer Graphics and Applications, IEEE},
title={A Behavior-Authoring Framework for Multiactor Simulations},
year={2011},
month={nov.-dec. },
volume={31},
number={6},
pages={45 -55},
keywords={Web extra;behavior authoring framework;behavioral animation;conflicting goals;multiactor interactions;multiactor simulation;multiagent planner;virtual world;authoring systems;behavioural sciences computing;computer animation;interactive systems;multi-agent systems;virtual reality;},
doi={10.1109/MCG.2011.68},
ISSN={0272-1716},}
ADAPT: The Agent Development and Prototyping Testbed
Alexander Shoulson, Nathan Marshak, Mubbasir Kapadia, Norman I. Badler
ACM SIGGRAPH Symposium on Interactive 3D Graphics and Games, March 2013
@inproceedings{Shoulson:2013:AAD:2448196.2448198,
author = {Shoulson, Alexander and Marshak, Nathan and Kapadia, Mubbasir and Badler, Norman I.},
title = {ADAPT: the agent development and prototyping testbed},
booktitle = {Proceedings of the ACM SIGGRAPH Symposium on Interactive 3D Graphics and Games},
series = {I3D '13},
year = {2013},
isbn = {978-1-4503-1956-0},
location = {Orlando, Florida},
pages = {9--18},
numpages = {10},
url = {http://doi.acm.org/10.1145/2448196.2448198},
doi = {10.1145/2448196.2448198},
acmid = {2448198},
publisher = {ACM},
address = {New York, NY, USA},
keywords = {behavior authoring, character animation, crowd simulation, virtual humans},
}
Multi-Actor Planning for Directable Simulations
Mubbasir Kapadia, Shawn Singh, Glenn Reinman and Petros Faloutsos
IEEE Post-Conference Proceedings, Computer Animation and Social Agents, 2011
@inproceedings{behaviorWorkshop,
author = {Kapadia, Mubbasir and Singh, Shawn and Reinman, Glenn and Faloutsos, Petros},
title = {Multi-actor Planning for Directable Simulations},
booktitle = {Proceedings of the 2011 Workshop on Digital Media and Digital Content Management},
series = {DMDCM '11},
year = {2011},
isbn = {978-0-7695-4413-7},
pages = {111--116},
numpages = {6},
url = {http://dx.doi.org/10.1109/DMDCM.2011.40},
doi = {http://dx.doi.org/10.1109/DMDCM.2011.40},
acmid = {2014473},
publisher = {IEEE Computer Society},
address = {Washington, DC, USA},
keywords = {behavior authoring, centralized planning, multi-objective constraint satisfaction},
}
A. Shoulson, F. Garcia, M. Jones, R. Mead, and N. I. Badler. "Parameterizing Behavior Trees." Fourth International Conference on Motion in Games (MIG), 2011.
@incollection {springerlink:10.1007/978-3-642-25090-3_13,
author = {Shoulson, Alexander and Garcia, Francisco and Jones, Matthew and Mead, Robert and Badler, Norman},
affiliation = {Department of Computer and Information Science, University of Pennsylvania, Philadelphia, PA 19104-6389, USA},
title = {Parameterizing Behavior Trees},
booktitle = {Motion in Games},
series = {Lecture Notes in Computer Science},
editor = {Allbeck, Jan and Faloutsos, Petros},
publisher = {Springer Berlin / Heidelberg},
isbn = {978-3-642-25089-7},
keyword = {Computer Science},
pages = {144-155},
volume = {7060},
url = {http://dx.doi.org/10.1007/978-3-642-25090-3_13},
note = {10.1007/978-3-642-25090-3_13},
year = {2011}
}
A. Shoulson and N. I. Badler. "Event-Centric Control for Background Agents." Fourth International Conference on Interactive Digital Storytelling (ICIDS), 2011.
@inproceedings{DBLP:conf/icids/ShoulsonB11,
author = {Alexander Shoulson and
Norman I. Badler},
title = {Event-Centric Control for Background Agents},
booktitle = {ICIDS},
year = {2011},
pages = {193-198},
ee = {http://dx.doi.org/10.1007/978-3-642-25289-1_21},
bibsource = {DBLP, http://dblp.uni-trier.de}
}
A. Shoulson, D. Garcia, and N. I. Badler. "Selecting Agents for Narrative Roles." Fourth Workshop on Intelligent Narrative Technologies (INT4) at the Artificial Intelligence for Interactive Digital Entertainment Conference (AIIDE), 2011.
@paper{AIIDE11WS4089,
author = {Alexander Shoulson and Daniel Garcia and Norman Badler},
title = {Selecting Agents for Narrative Roles},
conference = {Artificial Intelligence for Interactive Digital Entertainment Conference},
year = {2011},
keywords = {Interactive Narrative; Smart Events; Behavioral AI; Agents},
abstract = {We present ongoing work on a system that accommodates player agency in a digital narrative with an external plot. We focus on key events that should occur in that storyline for dramatic effect, but do not explicitly specify the characters that should fill the roles needed for those events. Instead, we define them abstractly, with characteristics that the selected characters should have (including previous events they should have completed for eligibility), and rely on a Director construct to populate those roles from agents in the selection pool that fit those criteria. Agents begin as largely homogeneous, primordial entities that accumulate data and narrative value from the events in which they participate. This creates an environment that differentiates characters by the actions they perform, conferring worth onto characters that become important to the player based on their direct involvement in the plot. The focus, then, is on defining a priori the what of the narrative, while leaving it to the Director construct to decide at runtime exactly who among a distributed pool of agents carries it out.},
url = {http://aaai.org/ocs/index.php/AIIDE/AIIDE11WS/paper/view/4089}
}
Reworking of manager
I used to have a function which would call separate behavior trees, each of which would have a callback function to call the next event. This grew more complicated with executing actions in parallel and replanning, so I've switched it to one master behavior tree which controls each smaller interaction (themselves groups of nodes). The new tree is a sequence of non-conflicting parallel sequences of interactions. For replanning, this new tree is cleared, remade and then restarted, all within the behavior event/tree framework.
Parallelism working
I now have a working function which compares the states actions change and groups them together to execute at the same time.
Thursday, June 13, 2013
Parallelism in progress
With doors behaving properly now, I will be able to create a scenario where both characters need to open separate doors in order for the handshake to occur. This scenario will enable testing of a function to run adjacent actions of a plan in parallel, if possible.
Working replanning
Fixing the doors also enabled me to test a longer plan which allowed testing of replanning when a step later in the plan is invalidated. For the most part, this seems to work as well.
Working cost
For my initial basic test, cost seems to be working now with the new and improved doors.
Doors
The biggest problem was with the implementation of doors. I fixed it now, so it just sets binary masks for which doors the character can cross. This has fixed cost.
Past two weeks
These past two weeks I have been working on three core ideas: automatic replanning if and only if a user disrupts a state that affects the current plan, anywhere along it, having the planner create the path of least cost, and finally determining whether adjacent actions in an already created plan can be executed in parallel.
Monday, June 10, 2013
Future plans
Next week:
- Fix door interaction
- Fix comparison of actions
- Figure out what's going wrong with replanning
Long term goals
- Roles
- Cost
- Marketplace
- Speed
Past week(s)
Over the last few weeks, I have solved an important issue I ran into with the planner. About three weeks ago, I tried to introduce more complexity by having a second person's state added to the statespace. The goal was to force the planner to bring the second person into the correct spot for a handshake, instead of hardcoding that into the handshake interaction itself. The problem was the planner was initializing actions from the first state, so it did not remember changes made two actions ago. Therefore it would always think either person one or two could not reach the handshake location. After trying many things, I finally got it to work by keeping track of changes, but making copies not references to states and actions.
Summary of work so far
Over this past semester I have begun to develop a real-time planner to create sequences of actions of AI agents, which can adjust their plans based on user interactions. I used ADAPT and behavior trees to create a couple simple interactions such as shaking hands and opening a door. The interactions have preconditions and postconditions which enable a planner to see ahead and keep track of what the states of each object or agent will be. These actions, along with the statespace, are passed into an A* path finder algorithm which computes the lowest cost path.
Introduction
This blog will document my progress on my summer research project looking into a real time interaction planning system.
Subscribe to:
Posts (Atom)