From c873d0ad224383e243e76467e292c340712919c9 Mon Sep 17 00:00:00 2001 From: anton083 Date: Mon, 22 Jul 2024 16:01:14 +0200 Subject: [PATCH] Fix argument type --- src/frames.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frames.jl b/src/frames.jl index 68b243b..bd0fdcc 100644 --- a/src/frames.jl +++ b/src/frames.jl @@ -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})