Skip to content

Issue with RobotDynamics RigidBody zeros when running quadrotor example from ALTRO tutorials locally #11

@Kongx231

Description

@Kongx231

I've cloned the ALTRO tutorial repo and I'm working in a directoryadjacent to where the notebooks live. I'm running Julia 1.6.3 on Ubuntu 18.04.5 LTS. I'm getting an error when we call
x = zeros(model)[1]

'ERROR: LoadError: DimensionMismatch("No precise constructor for RBState found. Length of input was 4.")
Stacktrace:
[1] RBState(x::Tuple{Tuple{Tuple{Tuple{SVector{3, Float64}, SMatrix{3, 3, Float64, 9}, SVector{3, Float64}, SVector{3, Float64}}}}})
@ StaticArrays ~/.julia/packages/StaticArrays/OWJK7/src/convert.jl:1
[2] StaticArray (repeats 4 times)
@ ~/.julia/packages/StaticArrays/OWJK7/src/convert.jl:4 [inlined]
[3] build_state(::Quadrotor{UnitQuaternion}, ::SVector{3, Float64}, ::SMatrix{3, 3, Float64, 9}, ::SVector{3, Float64}, ::SVector{3, Float64})
@ RobotDynamics ~/.julia/packages/RobotDynamics/tXate/src/rigidbody.jl:134
[4] zeros(model::Quadrotor{UnitQuaternion})
@ RobotDynamics ~/.julia/packages/RobotDynamics/tXate/src/rigidbody.jl:28
[5] top-level scope
@ ~/altro/AltroTutorials.jl/examples/quadrotor.jl:98
in expression starting at /home/nathankong/altro/AltroTutorials.jl/examples/quadrotor.jl:98'

I've attached a tar file of the directory I'm working out of. The file is in AltroTutorials.jl/examples/quadrotor.jl
AltroTutorials.jl.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions