From 45832b06d58da7b6dc09bfa18c40b422d6edc357 Mon Sep 17 00:00:00 2001 From: mmporong Date: Wed, 28 Oct 2026 11:04:26 +0900 Subject: [PATCH] Fix :param names in Twist3.UnitRevolute, Twist3.exp and Line2.contains --- spatialmath/geom2d.py | 4 ++-- spatialmath/twist.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spatialmath/geom2d.py b/spatialmath/geom2d.py index ee42c08f..4344de56 100755 --- a/spatialmath/geom2d.py +++ b/spatialmath/geom2d.py @@ -146,8 +146,8 @@ def contains(self, p: ArrayLike2, tol: float = 20) -> bool: """ Test if point is in line - :param p1: point to test - :type p1: array_like(2) or array_like(3) + :param p: point to test + :type p: array_like(2) or array_like(3) :param tol: tolerance in units of eps, defaults to 20 :type tol: float :return: True if point lies in the line diff --git a/spatialmath/twist.py b/spatialmath/twist.py index 0645aef3..8b7729e0 100644 --- a/spatialmath/twist.py +++ b/spatialmath/twist.py @@ -483,8 +483,8 @@ def UnitRevolute(cls, a, q, pitch=None): :type a: array_like(3) :param q: Point on the line of action :type q: array_like(3) - :param p: pitch, defaults to None - :type p: float, optional + :param pitch: pitch, defaults to None + :type pitch: float, optional :return: a rotational or helical twist :rtype: Twist instance @@ -1030,8 +1030,8 @@ def exp(self, theta=1, unit="rad"): :param theta: rotation magnitude, defaults to None :type theta: float, optional - :param units: rotational units, defaults to 'rad' - :type units: str, optional + :param unit: rotational units, defaults to 'rad' + :type unit: str, optional :return: SE(3) matrix :rtype: SE3 instance