From 45f6d4a2733764febfb6bc33aceb678823602dc2 Mon Sep 17 00:00:00 2001 From: Twan Koolen Date: Thu, 2 Aug 2018 22:31:14 -0400 Subject: [PATCH] Add depwarn for PointJacobian change. --- src/spatial/spatialmotion.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spatial/spatialmotion.jl b/src/spatial/spatialmotion.jl index 673b890b..eb9fe172 100644 --- a/src/spatial/spatialmotion.jl +++ b/src/spatial/spatialmotion.jl @@ -62,6 +62,9 @@ struct PointJacobian{M <: AbstractMatrix} J::M end +Base.@deprecate PointJacobian{M}(J::M, frame::CartesianFrame3D) where {M<:AbstractMatrix} PointJacobian(frame, J) +Base.@deprecate PointJacobian(J::AbstractMatrix, frame::CartesianFrame3D) PointJacobian(frame, J) + Base.Array(Jp::PointJacobian) = Matrix(Jp.J) function point_velocity(Jp::PointJacobian, v::AbstractVector)