SECOND LIFE WORK FLOW Tejeshwar Sangameswaran Ayu Nakaoka Sanjay Vemuri Keith Perkins
OUTLINE The problem at hand Work previously done The solution Project status Pharmacy simulation Demo
PROBLEM AT HAND • Workflow is “a sequence of connected steps” • To dynamically control an avatar via a scripted workflow • To make avatars aware of events happening around them and to create a feedback loop between the user and the bot. • To build our solution as reusable as possible.
PREVIOUS WORK • There already exists an open source framework to programmatically talk to Second Life (i.e control a bot via a script) • Significant amount of work done by Keith and co. on avatar bot scripting and enhancing this library. • A previous attempt at solving this exact problem was attempted, but had some shortcomings.
THE SOLUTION • Challenges • How to create an ubiquitous two-way link between Second- Life and the external program that controls the bot? • How do we easily create/edit decision trees? • How do we make this whole thing reusable?
YE GRAND SOLUTION The first draft
YE GRAND SOLUTION • Two problems with that draft • If the server is running on localhost, its not really “ubiquitous” • simple solution: dynamic ip • The scripts are not flexible enough. There is a missing link between the scripting engine and our dispatcher. • not-so-simple solution: we built our own script lexer.
YE GRAND SOLUTION • Second Life RPC Mapper Script • simple context-free grammar • parsing using a deterministic finite automata • results in fairly robust script syntax error detection • Syntax: <dispatch type, either rpc or chat> <no. of arguments> <tokens seperated by slashes> <name of script file>
PROJECT STATUS • We’ve written 1000+ lines of code • Create a reusable framework for 2way communication • We have used this framework to build a pharmacy simulation • human avatar interacting freely with bots
PHARMACY SIMULATION • Animation by Ayu, LSL scripts by Keith • Workflow • 1. human avatar - call pharmacist and greet • 2. human avatar - talk to pharmacist, what he/she needs • 3. avatar bots - search for pill bottles • 4. avatar bots - give pill bottles to human avatar • 5. avatar bots - explain dosage • 6. human avatar – buy pill bottles
THE EXTRA MILE • Animations • Built using QAvimator • Built custom animations • Clothing • Create pharmacist accouterments • Photoshop and SLCP
DEMO TIME!
Recommend
More recommend