Skip to content

Method Error with atframe #129

@MAminSFV

Description

@MAminSFV

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions