Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f64bd80

Browse filesBrowse files
committed
compact printing format
1 parent 2f45ce9 commit f64bd80
Copy full SHA for f64bd80

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎spatialmath/base/transforms2d.py

Copy file name to clipboardExpand all lines: spatialmath/base/transforms2d.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ def transl2(x, y=None):
153153
:type x: float
154154
:param y: translation along Y-axis
155155
:type y: float
156-
:return: SE(2) transform matrix or the translation elements of a homogeneous transform
157-
:rtype: ndarray(3,3)
156+
:return: SE(2) transform matrix or the translation elements of a homogeneous
157+
transform :rtype: ndarray(3,3)
158158
159-
- ``T = transl2([X, Y])`` is an SE(2) homogeneous transform (3x3) representing a
160-
pure translation.
159+
- ``T = transl2([X, Y])`` is an SE(2) homogeneous transform (3x3)
160+
representing a pure translation.
161161
- ``T = transl2( V )`` as above but the translation is given by a 2-element
162162
list, dict, or a numpy array, row or column vector.
163163
@@ -619,7 +619,7 @@ def trinterp2(start, end, s=None):
619619
return ValueError('Argument must be SO(2) or SE(2)')
620620

621621

622-
def trprint2(T, label=None, file=sys.stdout, fmt='{:8.2g}', unit='deg'):
622+
def trprint2(T, label=None, file=sys.stdout, fmt='{:.3g}', unit='deg'):
623623
"""
624624
Compact display of SE(2) or SO(2) matrices
625625

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.