cs590vc tutorial 12
Download
Skip this Video
Download Presentation
CS590VC – Tutorial 12

Loading in 2 Seconds...

play fullscreen
1 / 9

CS590VC – Tutorial 12 - PowerPoint PPT Presentation


  • 94 Views
  • Uploaded on

CS590VC – Tutorial 12. Simulating a Path Finder in SL. Things to do today …. Preparing the ground. We create an object that will find its way to destination by avoiding obstacles We mark 9 positions on a piece of “open” land We then note down the 3-D co-ordinates of these 9 positions.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' CS590VC – Tutorial 12' - ganesa


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
cs590vc tutorial 12

CS590VC – Tutorial 12

Simulating a Path Finder in SL

preparing the ground
Preparing the ground
  • We create an object that will find its way to destination by avoiding obstacles
  • We mark 9 positions on a piece of “open” land
  • We then note down the 3-D co-ordinates of these 9 positions.
preparing the obstacles
Preparing the obstacles
  • Create 9 flat pieces and place them at the 9 positions that you have marked
  • Create a controller that sends warning signals to these 9 flat pieces
  • Paste the script “controller_script.txt” behind the controller
  • Paste the script “pos_script.txt” behind each of the 9 pieces
the agent server communication
The agent-server communication
  • The server is the center for all simulation activities.
  • The server receives a request signal from the object (agent) which asks for the next best position to take in order to reach the destination. The current position of the object has to be given.
  • The server then randomly selects a position and blocks it (sometimes it may not wish to do so as well)
  • The server then calculates the shortest path to the destination eliminating the blocked node and all the paths going through it.
  • The next position to be taken along that calculated shortest path is given back to the object (agent)
the controller server communication
The controller-server communication
  • The server is asked for blockage information periodically by the controller.
  • If there is a blockage then the controller uses a designated channel to broadcast the blocked position.
  • The 9 pieces listens to this broadcast and acts accordingly.
server code from blackboard
Server code (from blackboard)
  • The server is a web service having two web methods: “path_server” and “block_info”
  • The “path_server” is the method that is invoked by the object (agent) and is responsible for finding out the shortest path according to blockage information and the current position of the block
  • The “block_info” is the method that is invoked by the controller for blockage information.
  • Paste the code “path_server.cs” in the Visual Studio 2005 editor while creating the project.
the architecture
The architecture

Over HTTP

Server Web Service

(on .Net Platform)

LSL Client1

(Agent)

Web Method 1

Web Method 2

Over HTTP

LSL Client2

(Controller)

Over dedicated SL channel

LSL Client2.1

(Position)

LSL Client2.1

(Position)

LSL Client2.1

(Position)

LSL Client2.1

(Position)

reference
Reference
  • http://www.youtube.com/watch?v=iZHYfpMkyyw&feature=related
  • http://wiki.secondlife.com/wiki/Pathfinder
ad