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

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

Open
Kongx231 opened this issue Nov 4, 2021 · 0 comments

Comments

@Kongx231
Copy link

Kongx231 commented Nov 4, 2021

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

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