1 / 15

Pogamut 2 Platform for fast development of cognitive agents inside 3D environment

Creating javabot project / pitfalls Startup/running/shutdown sequence and it’s methods Followbot + logs. Faculty of mathematics and physics Charles University at Prague 26 th March 2008. Pogamut 2 Platform for fast development of cognitive agents inside 3D environment.

Download Presentation

Pogamut 2 Platform for fast development of cognitive agents inside 3D environment

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Creating javabot project / pitfalls Startup/running/shutdown sequence and it’s methods Followbot + logs Faculty of mathematics and physics Charles University at Prague 26th March 2008 Pogamut 2Platform for fast development of cognitive agents inside 3D environment http://artemis.ms.mff.cuni.cz/pogamut

  2. Architecture review Exports information Translating text messages to java objects Simulates the world Model of the agent http://artemis.ms.mff.cuni.cz/pogamut

  3. Creating new javabot project 1/3 http://artemis.ms.mff.cuni.cz/pogamut

  4. Creating new javabot project 2/3 • P. name =will become=> package name • P. location – Pogamut 2 platform folder (set via Menu/Tools/Options) • P. folder – guess what ;-) • Checkbox – simple view, can be switched off later on http://artemis.ms.mff.cuni.cz/pogamut

  5. Creating new javabot project 3/3 • Created project… • … notice the imported library PogamutCore.jar http://artemis.ms.mff.cuni.cz/pogamut

  6. Javabot project pitfalls 1/2 Renaming agent base class (Main) • can be done, but you have to change manifest.mf as well • manifest.mf can be found in window Files http://artemis.ms.mff.cuni.cz/pogamut

  7. Javabot project pitfalls 2/2 Main method must be present in agent base class • otherwise NB won’t recognize it as a runnable file http://artemis.ms.mff.cuni.cz/pogamut

  8. Sequences and methods 1/2 Few methods • prePrepareAgent() • before GB communication • postPrepareAgent() • after GB communication • doLogic() • iteratively called • shutdownAgent() • at the end (exception) http://artemis.ms.mff.cuni.cz/pogamut

  9. Sequences andmethods 2/2 prePrepareAgent() postPrepareAgent() doLogic() shutdownAgent() http://artemis.ms.mff.cuni.cz/pogamut

  10. FollowBot 1/6 Player memory.getSeePlayer() • returns a PLR wrapper body.runToTarget(Player player) • sends a RUNTO command body.turnHorizontal(int degrees) • sends a TURN command http://artemis.ms.mff.cuni.cz/pogamut

  11. FollowBot 2/6 NullPointerException is around the corner… … logic and GB message receiver are in different threads. http://artemis.ms.mff.cuni.cz/pogamut

  12. FollowBot 3/6 Better… … but what to do if the bot is facing the wall from the beginning ? http://artemis.ms.mff.cuni.cz/pogamut

  13. FollowBot 4/6 Better… … but shouldn’t the bot seek the player on itself? … what if the bot lose the player? http://artemis.ms.mff.cuni.cz/pogamut

  14. FollowBot 5/6 Introducing user log, levels… object log .finest() / .finer() / .fine() / .info() / .warning() / .severe() http://artemis.ms.mff.cuni.cz/pogamut

  15. FollowBot 6/6 … TODO … but shouldn’t the bot seek the player on itself? memory.getSeeNavPoint() memory.getSeeNavPoints() … what if the bot lose the player? remember last player position, try to run there and turn around http://artemis.ms.mff.cuni.cz/pogamut

More Related