Commit bd4b900a76031bdf8f870607eaa339e0d75bc008
1 parent
800f4279
Exists in
dev
update replan
Showing
1 changed file
with
11 additions
and
3 deletions
Show diff stats
src/core/pyros_django/scheduler/AgentScheduler.py
... | ... | @@ -37,7 +37,10 @@ class AgentScheduler(Agent): |
37 | 37 | |
38 | 38 | log.debug("PLC instanciated") |
39 | 39 | |
40 | - | |
40 | + AGENT_SPECIFIC_COMMANDS = [ | |
41 | + #"do_replan", | |
42 | + #"do_stop_replan", | |
43 | + ] | |
41 | 44 | |
42 | 45 | ''' |
43 | 46 | # Who should I send commands to ? |
... | ... | @@ -108,8 +111,13 @@ class AgentScheduler(Agent): |
108 | 111 | sequences = Sequence.objects.filter(status="TBP") |
109 | 112 | print("List of sequences to be planned :") |
110 | 113 | for seq in sequences: |
111 | - print('-', seq.name, '('+seq.status+')') | |
112 | - #print('-- with albums : ', seq.albums) | |
114 | + print('-', seq.name, '('+seq.status+') :') | |
115 | + print('-- albums : ', seq.albums.all()) | |
116 | + print('-- plans : ') | |
117 | + for album in seq.albums.all(): | |
118 | + for plan in album.plans.all(): | |
119 | + print('plan id',plan.id) | |
120 | + | |
113 | 121 | print("\n ...end of sequences (re-)planning\n") |
114 | 122 | |
115 | 123 | # Note : called by _routine_process() in Agent | ... | ... |