10000 tidyup · RPellowski/spatialmath-python@dcdb74e · GitHub
[go: up one dir, main page]

Skip to content

Commit dcdb74e

Browse files
committed
tidyup
1 parent a3a3ee0 commit dcdb74e

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

spatialmath/super_pose.py

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -936,22 +936,6 @@ def __truediv__(left, right): # pylint: disable=no-self-argument
936936
else:
937937
raise ValueError('bad operands')
938938

939-
# def __itruediv__(left, right):
940-
# """
941-
# Overloaded ``/=`` operator (superclass method)
942-
943-
# :arg left: left dividend
944-
# :arg right: right divisor
945-
# :return: quotient
946-
# :raises: ValueError
947-
948-
# - ``X /= Y`` compounds the poses ``X`` and ``Y.inv()`` and places the result in ``X``
949-
# - ``X /= s`` performs elementwise division of the elements of ``X`` by ``s``
950-
951-
# :seealso: ``__truediv__``
952-
# """
953-
# return left.__truediv__(right)
954-
955939
def __add__(left, right): # pylint: disable=no-self-argument
956940
"""
957941
Overloaded ``+`` operator (superclass method)
@@ -1210,3 +1194,9 @@ def _op2(left, right, op): # pylint: disable=no-self-argument
12101194
return op(left.A, right)
12111195
else:
12121196
return [op(x, right) for x in left.A]
1197+
1198+
if __name__ == "__main__":
1199+
from spatialmath import SE3
1200+
x = SE3.Rand(N=6)
1201+
1202+
print(x)

0 commit comments

Comments
 (0)
0