-
Notifications
You must be signed in to change notification settings - Fork 15
Issue with RobotDynamics RigidBody zeros when running quadrotor example from ALTRO tutorials locally #11
Description
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