control-toolbox / CTGui

Gui for the control-toolbox ecosystem
MIT License
0 stars 0 forks source link

Possible tools for CTGui #3

Open PierreMartinon opened 4 months ago

PierreMartinon commented 4 months ago

To explore

Note: since Makie.jl seems to allow for better (interactive) plots than Plots.jl, we may want to explore a Makie version of the plots in CTBase.

PierreMartinon commented 4 months ago
using Mousetrap 
using CTDirect
include("ocp.jl")
sol = solve(ocp1)

Unfortunatey there seems to be a conflict with solve

...
EXIT: Optimal Solution Found.
ERROR: LoadError: MethodError: no method matching +(::Float64, ::Expr)

The error disappears if we comment using Mousetrap... (defining the ocp directly instead of including gives the same error, interverting the two using as well)

Same with using QML. This is actually due to these packages somehow causing julia to print floating point numbers according to the locale setting, which here used a comma instead of the dot, and caused a parsing error in NLPModelsIpopt.jl l.249...

Quick fix: force locale to use dot (e.g. US setting)