-
Notifications
You must be signed in to change notification settings - Fork 23
Description
I was trying to visualize the ODE solution after simulation was done, and I got an error from the 'atframe()' function.
I am not sure why but the error is about the argument 'frame'. I checked the var types and the package .jl code but could not find the root of the problem.
I had the same problem with the quickstart example, so I think it is independent of the mechanism inputs.
Can it be a dependency problem?
Thank you for your amazing work and contributions @tkoolen @rdeits.
RigidBodySim.jl/src/visualization.jl
Line 247 in 0f3153d
| atframe(animation, MeshCatMechanisms.visualizer(mvis), frame) do frame_vis |
Here is the error description:
LoadError: MethodError: no method matching atframe(::RigidBodySim.Visualization.var"#20#21"{MechanismVisualizer{MechanismState{Float64, Float64, Float64, TypeSortedCollections.TypeSortedCollection{Tuple{Vector{Joint{Float64, Fixed{Float64}}}, Vector{Joint{Float64, Prismatic{Float64}}}}, 2}}, MeshCat.Visualizer}, SubArray{Float64, 1, Vector{Float64}, Tuple{UnitRange{Int64}}, true}}, ::MeshCat.Animation, ::MeshCat.Visualizer, ::Int64)
�[0mClosest candidates are:
�[0m atframe(::Any, ::MeshCat.Animation, �[91m::Integer�[39m) at C:\Users\User.julia\packages\MeshCat\GlCMx\src\atframe.jl:96
MethodError: no method matching atframe(::RigidBodySim.Visualization.var"#20#21"{MechanismVisualizer{MechanismState{Float64, Float64, Float64, TypeSortedCollections.TypeSortedCollection{Tuple{Vector{Joint{Float64, Fixed{Float64}}}, Vector{Joint{Float64, Prismatic{Float64}}}}, 2}}, MeshCat.Visualizer}, SubArray{Float64, 1, Vector{Float64}, Tuple{UnitRange{Int64}}, true}}, ::MeshCat.Animation, ::MeshCat.Visualizer, ::Int64)
Closest candidates are:
atframe(::Any, ::MeshCat.Animation, ::Integer) at C:\Users\User.julia\packages\MeshCat\GlCMx\src\atframe.jl:96