Closed studywolf closed 5 years ago
I've added that in f18090a.
Please note that adding these labels is done in the plotRollout function in TaskViapoint. The (black-box) optimization algorithm does not know what it is optimizing (hence "black-box"), so runOptimizationTask does not (and should not) have any knowledge of how to plot the rollouts. Therefore, it calls plotRollout in the Task of TaskSolver, see: https://github.com/stulp/dmpbbo/blob/master/python/dmp_bbo/runOptimizationTask.py#L93
Object-oriented design thus allows me to keep the knowledge about what is being optimized (in TaskViapoint and other Tasks) separate from how to optimize it (in runOptimization functions).
something like
after line 107 in
runOptimizationTask.py
just adds a start and end marker to the demo. Just a suggestion to make it a little easier to parse on first glance: