JuliaRobotics / MeshCatMechanisms.jl

3D Visualization of mechanisms and URDFs using MeshCat.jl and RigidBodyDynamics.jl
Other
40 stars 10 forks source link

Incompatibilities with MeshCat: QuatRotation has no field x #67

Open forrestlaine opened 2 years ago

forrestlaine commented 2 years ago

When running the examples:

julia> animation = Animation(mvis, t, q)
ERROR: type QuatRotation has no field x
Stacktrace:
  [1] getproperty
    @ ./Base.jl:42 [inlined]
  [2] js_quaternion(q::Rotations.QuatRotation{Float64})
    @ MeshCat ~/.julia/packages/MeshCat/Ax8pH/src/atframe.jl:33
  [3] js_quaternion(r::Rotations.RotMatrix3{Float64})
    @ MeshCat ~/.julia/packages/MeshCat/Ax8pH/src/atframe.jl:35
  [4] js_quaternion(tform::CoordinateTransformations.AffineMap{Rotations.RotMatrix3{Float64}, StaticArrays.SVector{3, Float64}})
    @ MeshCat ~/.julia/packages/MeshCat/Ax8pH/src/atframe.jl:36
  [5] overdub(ctx::Cassette.Context{nametype(AnimationCtx), Tuple{Animation, Int64}, Nothing, Cassette.var"##PassType#276", Nothing, Nothing}, #unused#::typeof(settransform!), vis::Visualizer, tform::CoordinateTransformations.AffineMap{Rotations.RotMatrix3{Float64}, StaticArrays.SVector{3, Float64}})
    @ MeshCat ~/.julia/packages/MeshCat/Ax8pH/src/atframe.jl:54
  [6] overdub
    @ ~/.julia/packages/MeshCatMechanisms/QczZo/src/visualizer.jl:147 [inlined]
ferrolho commented 2 years ago

Hi @4estlaine, can you check if this is still an issue on the just-released v0.8.2?