Skip to content

Commit 4085d3a

Browse files
authored
Merge pull request #2041 from borglab/update-rot3
Update Rot3 doc
2 parents b7f8759 + 29bd0e3 commit 4085d3a

File tree

1 file changed

+28
-47
lines changed

1 file changed

+28
-47
lines changed

gtsam/geometry/doc/Rot3.ipynb

Lines changed: 28 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{
2727
"cell_type": "markdown",
2828
"source": [
29-
"A `gtsam.Rot3` represents a rotation in 3D space. It can be manipulated and presented as a rotation matrix, a quaternion, roll-pitch-yaw angles (Euler angles), or as an axis-angle combination. It models a 3D rotation in the [Special Orthogonal Group $\\text{SO}(3)$](https://en.wikipedia.org/wiki/SO(3)), which is a [Lie group](https://en.wikipedia.org/wiki/Lie_group)."
29+
"A `gtsam.Rot3` represents an orientation or attitude in 3D space. It can be manipulated and presented as a rotation matrix $ R \\in \\mathbb{R}^{3 \\times 3} $, a unit quaternion, roll-pitch-yaw (Euler) angles $ (\\phi, \\theta, \\psi) $, or as an axis-angle representation $ (\\hat{\\omega}, \\theta) $ with $ \\hat{\\omega} \\in \\mathbb{R}^3 $ and $ \\theta \\in \\mathbb{R} $. It models a 3D orientation as both a manifold in $ \\mathcal{SO}(3) $ and as a Lie group in $ \\text{SO}(3) $. Internally, it is stored as a $ 3 \\times 3 $ rotation matrix but can be configured to use quaternions at build time for efficiency."
3030
],
3131
"metadata": {
3232
"id": "YqaxPKyloJG_"
@@ -43,30 +43,11 @@
4343
},
4444
{
4545
"cell_type": "code",
46-
"execution_count": 1,
46+
"execution_count": null,
4747
"metadata": {
48-
"colab": {
49-
"base_uri": "https://localhost:8080/"
50-
},
51-
"id": "HyXPOMakoDkY",
52-
"outputId": "665a19a8-4265-4d54-bc43-b5f4df9b62c8"
48+
"id": "HyXPOMakoDkY"
5349
},
54-
"outputs": [
55-
{
56-
"output_type": "stream",
57-
"name": "stdout",
58-
"text": [
59-
"Collecting gtsam\n",
60-
" Downloading gtsam-4.2-cp311-cp311-manylinux2014_x86_64.whl.metadata (7.6 kB)\n",
61-
"Requirement already satisfied: numpy>=1.11.0 in /usr/local/lib/python3.11/dist-packages (from gtsam) (1.26.4)\n",
62-
"Requirement already satisfied: pyparsing>=2.4.2 in /usr/local/lib/python3.11/dist-packages (from gtsam) (3.2.1)\n",
63-
"Downloading gtsam-4.2-cp311-cp311-manylinux2014_x86_64.whl (22.4 MB)\n",
64-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m22.4/22.4 MB\u001b[0m \u001b[31m10.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
65-
"\u001b[?25hInstalling collected packages: gtsam\n",
66-
"Successfully installed gtsam-4.2\n"
67-
]
68-
}
69-
],
50+
"outputs": [],
7051
"source": [
7152
"%pip install gtsam"
7253
]
@@ -81,7 +62,7 @@
8162
"metadata": {
8263
"id": "_fWy46Mepoxh"
8364
},
84-
"execution_count": 2,
65+
"execution_count": null,
8566
"outputs": []
8667
},
8768
{
@@ -96,7 +77,7 @@
9677
{
9778
"cell_type": "markdown",
9879
"source": [
99-
"A `Rot3` can be initialized in many different ways, which are detailed in this section. Note that printing a `Rot3` displays its 3x3 rotation matrix representation, which in general is a 3x3 matrix where the columns are unit vectors that define a coordinate frame."
80+
"A `Rot3` can be initialized in many different ways, which are detailed in this section. Note that printing a `Rot3` displays its 3x3 rotation matrix representation, which in general is a 3x3 matrix where the columns are unit vectors that define the orientation's coordinate frame."
10081
],
10182
"metadata": {
10283
"id": "RrJ5ZEdhqJPU"
@@ -148,7 +129,7 @@
148129
"id": "mj8X-wIdq6GR",
149130
"outputId": "48a6921d-df39-4fd8-aaf8-76d4bcdb70b1"
150131
},
151-
"execution_count": 3,
132+
"execution_count": null,
152133
"outputs": [
153134
{
154135
"output_type": "stream",
@@ -220,7 +201,7 @@
220201
"id": "GcAB8GtVaLjK",
221202
"outputId": "b9e701cd-6a3f-4171-a518-158a2f7b60fd"
222203
},
223-
"execution_count": 4,
204+
"execution_count": null,
224205
"outputs": [
225206
{
226207
"output_type": "stream",
@@ -277,7 +258,7 @@
277258
"id": "w-qh5dX6VWAW",
278259
"outputId": "8fe29ae6-eb47-4460-c27b-3acd8ee5e5bf"
279260
},
280-
"execution_count": 5,
261+
"execution_count": null,
281262
"outputs": [
282263
{
283264
"output_type": "stream",
@@ -354,7 +335,7 @@
354335
"id": "bGEMGXkpYT9t",
355336
"outputId": "31655b9f-045f-4b51-dff2-42de4382427f"
356337
},
357-
"execution_count": 6,
338+
"execution_count": null,
358339
"outputs": [
359340
{
360341
"output_type": "stream",
@@ -412,7 +393,7 @@
412393
"id": "uO9hb2RBaG3g",
413394
"outputId": "5409ef2e-3651-439b-af9f-6ed7888aa9d5"
414395
},
415-
"execution_count": 7,
396+
"execution_count": null,
416397
"outputs": [
417398
{
418399
"output_type": "stream",
@@ -451,7 +432,7 @@
451432
"id": "M_OOSKgAaqhF",
452433
"outputId": "cbb875b7-9204-4a90-c225-dbea46718c6f"
453434
},
454-
"execution_count": 8,
435+
"execution_count": null,
455436
"outputs": [
456437
{
457438
"output_type": "stream",
@@ -491,7 +472,7 @@
491472
"id": "NUgeRQzIcqYp",
492473
"outputId": "8c189748-267b-4c25-e0cf-4eed8721bc4a"
493474
},
494-
"execution_count": 9,
475+
"execution_count": null,
495476
"outputs": [
496477
{
497478
"output_type": "stream",
@@ -537,7 +518,7 @@
537518
"id": "EFMbwiTKfLfJ",
538519
"outputId": "72bf7784-6a8c-4052-c444-d85d6d9014e7"
539520
},
540-
"execution_count": 10,
521+
"execution_count": null,
541522
"outputs": [
542523
{
543524
"output_type": "stream",
@@ -610,7 +591,7 @@
610591
"id": "zbNPBHiwDAE2",
611592
"outputId": "716f9db1-f7c7-4418-f7c7-5c6bae0b6a2c"
612593
},
613-
"execution_count": 11,
594+
"execution_count": null,
614595
"outputs": [
615596
{
616597
"output_type": "stream",
@@ -683,7 +664,7 @@
683664
"id": "rtbkHyp3GgWx",
684665
"outputId": "43b1178c-39d3-4df2-face-9e8cef162cdd"
685666
},
686-
"execution_count": 12,
667+
"execution_count": null,
687668
"outputs": [
688669
{
689670
"output_type": "stream",
@@ -723,7 +704,7 @@
723704
"id": "MYiKxq4vItz3",
724705
"outputId": "e8f8fdd0-c539-476f-f233-2f78f98ca671"
725706
},
726-
"execution_count": 13,
707+
"execution_count": null,
727708
"outputs": [
728709
{
729710
"output_type": "stream",
@@ -767,7 +748,7 @@
767748
"id": "y45qZPivHkRR",
768749
"outputId": "e2320424-004f-47bf-e844-bf04df63a916"
769750
},
770-
"execution_count": 14,
751+
"execution_count": null,
771752
"outputs": [
772753
{
773754
"output_type": "stream",
@@ -818,7 +799,7 @@
818799
"id": "axvFPtxYdGru",
819800
"outputId": "977f9582-5b23-43c7-a6f5-a7bfce6d5cea"
820801
},
821-
"execution_count": 15,
802+
"execution_count": null,
822803
"outputs": [
823804
{
824805
"output_type": "stream",
@@ -859,7 +840,7 @@
859840
"id": "ffVBzuOhGugd",
860841
"outputId": "ff207bed-850c-422a-d9a6-a0b59e801989"
861842
},
862-
"execution_count": 16,
843+
"execution_count": null,
863844
"outputs": [
864845
{
865846
"output_type": "stream",
@@ -903,7 +884,7 @@
903884
"id": "4zXJJ77FdLBB",
904885
"outputId": "c5875121-0d97-475c-8669-93b92ac37c1b"
905886
},
906-
"execution_count": 17,
887+
"execution_count": null,
907888
"outputs": [
908889
{
909890
"output_type": "stream",
@@ -947,7 +928,7 @@
947928
"id": "_qGyDV15dgmU",
948929
"outputId": "be748925-3425-41c7-b06b-57ab87955699"
949930
},
950-
"execution_count": 18,
931+
"execution_count": null,
951932
"outputs": [
952933
{
953934
"output_type": "stream",
@@ -985,7 +966,7 @@
985966
"id": "SchtjDIPfXtb",
986967
"outputId": "7d199a1e-b9a7-4775-81e7-9c1328012b89"
987968
},
988-
"execution_count": 19,
969+
"execution_count": null,
989970
"outputs": [
990971
{
991972
"output_type": "stream",
@@ -1026,7 +1007,7 @@
10261007
"id": "ysQSPxuwfnen",
10271008
"outputId": "4a7d8404-fc2a-46ca-ba18-236fd417382b"
10281009
},
1029-
"execution_count": 20,
1010+
"execution_count": null,
10301011
"outputs": [
10311012
{
10321013
"output_type": "stream",
@@ -1125,7 +1106,7 @@
11251106
},
11261107
"outputId": "e0c75e07-2b6d-4f84-a90d-f1cceb3ad9fa"
11271108
},
1128-
"execution_count": 25,
1109+
"execution_count": null,
11291110
"outputs": [
11301111
{
11311112
"output_type": "stream",
@@ -1227,7 +1208,7 @@
12271208
"id": "0V2oQQ0lxS2-",
12281209
"outputId": "62b40acb-799e-4a91-dacd-c9e0266665c3"
12291210
},
1230-
"execution_count": 26,
1211+
"execution_count": null,
12311212
"outputs": [
12321213
{
12331214
"output_type": "stream",
@@ -1257,7 +1238,7 @@
12571238
"id": "-kTgSGJS06EC",
12581239
"outputId": "97051c49-284e-4ee8-d806-53f0d842fc31"
12591240
},
1260-
"execution_count": 27,
1241+
"execution_count": null,
12611242
"outputs": [
12621243
{
12631244
"output_type": "stream",
@@ -1312,7 +1293,7 @@
13121293
"id": "m6ku7L_768Ta",
13131294
"outputId": "8cb6fe04-6759-4cd9-8145-42f4fc2a72dd"
13141295
},
1315-
"execution_count": 28,
1296+
"execution_count": null,
13161297
"outputs": [
13171298
{
13181299
"output_type": "stream",

0 commit comments

Comments
 (0)