Skip to content

Commit 35eef80

Browse files
committedAug 18, 2020
make strings raw to avoid lint errors
1 parent 4b07776 commit 35eef80

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed
 

‎spatialmath/base/transforms3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ def trinv(T):
11911191
return trn.rt2tr(R.T, -R.T@t)
11921192

11931193
def tr2delta(T0, T1=None):
1194-
"""
1194+
r"""
11951195
Difference of SE(3) matrices as differential motion
11961196
11971197
:param T0: first SE(3) matrix

‎spatialmath/geom3d.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
class Plane:
18-
"""
18+
r"""
1919
Create a plane object from linear coefficients
2020
2121
:param c: Plane coefficients
@@ -75,7 +75,7 @@ def P3(p):
7575

7676
@property
7777
def n(self):
78-
"""
78+
r"""
7979
Normal to the plane
8080
8181
:return: Normal to the plane
@@ -90,7 +90,7 @@ def n(self):
9090

9191
@property
9292
def d(self):
93-
"""
93+
r"""
9494
Plane offset
9595
9696
:return: Offset of the plane
@@ -731,7 +731,7 @@ def commonperp(l1, l2):
731731

732732

733733
def __mul__(left, right):
734-
"""
734+
r"""
735735
Reciprocal product
736736
737737
:param left: Left operand

‎spatialmath/pose3d.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def inv(self):
122122
return SO3([x.T for x in self.A])
123123

124124
def eul(self, unit='deg'):
125-
"""
125+
r"""
126126
SO(3) or SE(3) as Euler angles
127127
128128
:param unit: angular units: 'rad' [default], or 'deg'
@@ -450,7 +450,7 @@ def AngVec(cls, theta, v, *, unit='rad'):
450450

451451
@classmethod
452452
def Exp(cls, S, check=True, so3=True):
453-
"""
453+
r"""
454454
Create an SO(3) rotation matrix from so(3)
455455
456456
:param S: Lie algebra so(3)
@@ -710,7 +710,7 @@ def Rand(cls, *, xrange=(-1, 1), yrange=(-1, 1), zrange=(-1, 1), N=1):
710710

711711
@classmethod
712712
def Eul(cls, angles, unit='rad'):
713-
"""
713+
r"""
714714
Create an SE(3) pure rotation from Euler angles
715715
716716
:param angles: 3-vector of Euler angles

‎spatialmath/quaternion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def Rand(cls, N=1):
651651

652652
@classmethod
653653
def Eul(cls, angles, *, unit='rad'):
654-
"""
654+
r"""
655655
Create an SO(3) rotation from Euler angles
656656
657657
:param angles: 3-vector of Euler angles

0 commit comments

Comments
 (0)