File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -590,6 +590,31 @@ def stack(self):
590
590
591
591
# ----------------------- i/o stuff
592
592
593
+ def print (self , label = None , file = None ):
594
+ """
595
+ Print pose as a matrix (superclass method)
596
+
597
+ :param label: label to print before the matrix, defaults to None
598
+ :type label: str, optional
599
+ :param file: file to write to, defaults to None
600
+ :type file: file object, optional
601
+
602
+ Print the pose as a matrix, with an optional line beforehand. By default
603
+ the matrix is printed to stdout.
604
+
605
+ Example:
606
+
607
+ .. runblock:: pycon
608
+
609
+ >>> from spatialmath import SE3
610
+ >>> SE3().print()
611
+ >>> SE3().print("pose is:")
612
+
613
+ """
614
+ if label is not None :
615
+ print (label , file = file )
616
+ print (self , file = file )
617
+
593
618
def printline (self , * args , ** kwargs ):
594
619
r"""
595
620
Print pose in compact single line format (superclass method)
You can’t perform that action at this time.
0 commit comments