Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method Error with atframe #129

Open
MAminSFV opened this issue Aug 10, 2021 · 0 comments
Open

Method Error with atframe #129

MAminSFV opened this issue Aug 10, 2021 · 0 comments

Comments

@MAminSFV
Copy link

MAminSFV commented Aug 10, 2021

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.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant