From 9342bceb1ef57f6dc0f0b46b9e01ee4abbff7732 Mon Sep 17 00:00:00 2001 From: Brandon J DeHart Date: Fri, 19 May 2017 14:54:39 -0400 Subject: [PATCH] Fixing a typo in the "set.tool" function Noticed while working with version 9.10 that the "set.tool" function was setting the base matrix to eye(4) if an empty matrix is set on the tool matrix, instead of the tool matrix as it should be. --- @SerialLink/SerialLink.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@SerialLink/SerialLink.m b/@SerialLink/SerialLink.m index 3fb4227c..1d956c9f 100644 --- a/@SerialLink/SerialLink.m +++ b/@SerialLink/SerialLink.m @@ -535,7 +535,7 @@ function display(r) function set.tool(r, v) if isempty(v) - r.base = eye(4,4); + r.tool = eye(4,4); elseif ~ishomog(v) error('tool must be a homogeneous transform'); else