We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3274f1 commit d2b5ca0Copy full SHA for d2b5ca0
spatialmath/base/transforms3d.py
@@ -2416,6 +2416,15 @@ def trprint(
2416
2417
# print the angular part in various representations
2418
2419
+ # define some aliases for rpy conventions for arms, vehicles and cameras
2420
+ aliases = {
2421
+ 'arm': 'rpy/xyz',
2422
+ 'vehicle': 'rpy/zyx',
2423
+ 'camera': 'rpy/yxz'
2424
+ }
2425
+ if orient in aliases:
2426
+ orient = aliases[orient]
2427
+
2428
a = orient.split("/")
2429
if a[0] == "rpy":
2430
if len(a) == 2:
0 commit comments