Skip to content

Commit

Permalink
Fix argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOresten committed Jul 22, 2024
1 parent a60bf5f commit c873d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frames.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function quaternions_to_rotation_matrices(q::AbstractArray{<:Real,2})
return reshape(vcat(r1', r4', r7', r2', r5', r8', r3', r6', r9'), 3, 3, :)
end

Frames(rotations::AbstractArray{T,2}, translations::AbstractArray{T,2}) = Frames(quaternions_to_rotation_matrices(rotations), translations)
Frames(rotations::AbstractArray{<:Real,2}, translations::AbstractArray{<:Real,2}) = Frames(quaternions_to_rotation_matrices(rotations), translations)

# takes a batch of rotation matrices in a 3x3xN array and returns a batch of unit quaternions in a 4xN matrix
function rotation_matrices_to_quaternions(R::AbstractArray{<:Real,3})
Expand Down

0 comments on commit c873d0a

Please sign in to comment.