The problem was that i want to see in the object editor (blackboard) / task – condition window the data of custom classes. If there is no default initialiser but only custom initialisers the task / condition window freezes and the error count is more then 1000 in a few seconds. The solution for the problem is that i added in all my data-classes a default initialiser. Then the object editor (blackboard) and task window are always displaying the correct information without any custom drawers.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
publicclassmyRoom{
publicboolhasChair;
publicList<Book>books;
publicDictionary<string,string>tables
// for correct display of data in object editor (blackboard) / task window / condition window
publicmyRoom(){
this.hasChair=true;
this.books=newList<Book>();
this.tables=newDictionary<string,string>();
}
// for use in other methods
publicmyRoom(bool_hasChair){
this.hasChair=_hasChair;
this.books=newList<Book>();
this.tables=newDictionary<string,string>();
}
}
publicclassBook{
publicstringname;
publicstringtitle;
// for correct display of data in object editor (blackboard) / task window / condition window
publicBook(){
this.name="";
this.title="";
}
// for use in other methods
publicBook(string_name,string_title){
this.name=_name;
this.title=_title;
}
}
What is the purpose of using the custom data / actions and so on …
Make a FSM that acts on data that is stored in the classes (GlobalBlackBoard), example:
Condition: hasChair == true
then
Action: instantiate a chair.
Login
Register
By registering on this website you agree to our Privacy Policy.