File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,14 @@ def update(self) -> py_trees.common.Status:
41
41
42
42
# could equivalently do directly via the Blackboard static methods if
43
43
# not interested in tracking / visualising the application configuration
44
- configuration = py_trees .blackboard .Client (name = "App Config" )
45
- configuration .register_key ("foo_parameters_init" , access = py_trees .common .Access .WRITE )
46
- configuration .foo_parameters_init = 3
44
+ # Register and set up the configuration on the blackboard
45
+ configuration = py_trees .blackboard .Client (
46
+ name = "App Config" , namespace = "foo_parameters_"
47
+ ) # Added namespace
48
+ configuration .register_key (
49
+ "init" , access = py_trees .common .Access .WRITE
50
+ ) # Register key with correct namespace
51
+ configuration .init = 3 # Set the initial value for 'foo_parameters_init'
47
52
48
53
foo = Foo (name = "The Foo" )
49
54
for i in range (1 , 8 ):
You can’t perform that action at this time.
0 commit comments