RoboticExplorationLab / Altro.jl

MIT License
139 stars 41 forks source link

model = DubinsCar() ERROR: MethodError: Cannot `convert` an object of type #43

Open humarobot opened 2 years ago

humarobot commented 2 years ago

ERROR: MethodError: Cannot `convert` an object of type FiniteDiff.JacobianCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, Vector{Float64}, UnitRange{Int64}, Nothing, Val{:forward}(), Float64} to an object of type FiniteDiff.JacobianCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, UnitRange{Int64}, Nothing, Val{:forward}(), Float64} Closest candidates are: convert(::Type{T}, ::T) where T at D:\Programs\Julia-1.7.3\share\julia\base\essentials.jl:218 Stacktrace: [1] DubinsCar() @ Main C:\Users\94052\.julia\packages\RobotDynamics\xW4Xp\src\jacobian_gen.jl:763 [2] top-level scope @ d:\Desktop\using Altro.jl:48

When I was following the Get Started Tutorial and running model = DubinsCar(), I encountered this error. It seems like a type converting error. I have tried different versions of Altro, but still get this error. Sorry I'm not familiar with julia, maybe the cause is my miss operation ?

yj-Tang commented 10 months ago

I have the same problem. Have you found the solution?