meco-group / omg-tools

Optimal Motion Generation-tools: motion planning made easy
GNU Lesser General Public License v3.0
559 stars 97 forks source link

Plot revisited #22

Closed rubenvanparys closed 8 years ago

rubenvanparys commented 8 years ago

The plot class can only plot variables (signals and trajectories) related to vehicles. It would be desirable if every kind of object can plot relevant data (eg. admm problem plots residuals showing the convergence)

rubenvanparys commented 8 years ago

I would suggest a new structure: a plot layer class from which objects can inherit. So this means that objects will contain the plot functionality. So in stead of doing this: simulator.plot.show('input') You will do this: vehicle.plot('input')

rubenvanparys commented 8 years ago

vehicle signals are plotted by vehicle.plot('input'). The 'scene' is plotted on problem: problem.plot('scene'). See example directory.