[Gcblue-commits] gcb_wx/include/ai BlackboardItem.h,1.2,1.3 Brain.h,1.5,1.6
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-03-02 22:29:15
|
Update of /cvsroot/gcblue/gcb_wx/include/ai In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15614/include/ai Modified Files: BlackboardItem.h Brain.h Log Message: Better sensor ageout behavior, more ai work, misc cleanup Index: Brain.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/ai/Brain.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Brain.h 24 Feb 2005 22:19:13 -0000 1.5 --- Brain.h 2 Mar 2005 22:28:35 -0000 1.6 *************** *** 41,44 **** --- 41,45 ---- class Blackboard; + class BlackboardInterface; class Task; class Nav; *************** *** 47,51 **** /** ! * Holds */ class Brain --- 48,52 ---- /** ! * Holds tasks for "ai" */ class Brain *************** *** 59,65 **** --- 60,70 ---- }; void AddTask(const std::string& taskName, double priority_); + /// gets a low priority, anonymous interface to board + BlackboardInterface GetBlackboardInterface(); Nav* GetNavTask(); + std::vector<std::string> GetTaskList(); double GetTaskPriority(const std::string& taskName) const; + void RemoveAllTasks(); void RemoveTask(const std::string& taskName); bool TaskExists(const std::string& taskName); *************** *** 78,81 **** --- 83,87 ---- double lastUpdateTime; ///< last time tasks were updated long target; ///< id of target (may be more general way to handle this) + bool updating; ///< true if in the middle of Update Blackboard board; ///< for inter-task communication Index: BlackboardItem.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/ai/BlackboardItem.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BlackboardItem.h 16 Feb 2005 23:13:38 -0000 1.2 --- BlackboardItem.h 2 Mar 2005 22:28:35 -0000 1.3 *************** *** 38,43 **** { public: ! long author; ///< -1 for invalid double priority; std::string message; --- 38,46 ---- { public: ! /// -1 for invalid, 0 is anonymous outside author (i.e. not a task) ! long author; ! /// priority to control write access to board double priority; + /// blackboard message string std::string message; |