Skip to content

Commit b935a67

Browse files
author
Murilo Marinho
committed
[lesson2] Using x,y,z coordinates.
1 parent ee57fdf commit b935a67

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

basic_lessons/lesson2_tutorial.ipynb

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -636,16 +636,18 @@
636636
},
637637
"source": [
638638
"# An SE(3) translation\n",
639-
"x = 1\n",
640-
"y = 2\n",
641-
"z = 3\n",
642-
"H0_a = np.array([[1, 0, 0, 1],\n",
643-
" [0, 1, 0, 2],\n",
644-
" [0, 0, 1, 3],\n",
639+
"x = 1 # distance in metres\n",
640+
"y = 2 # distance in metres\n",
641+
"z = 3 # distance in metres\n",
642+
"\n",
643+
"H0_a = np.array([[1, 0, 0, x],\n",
644+
" [0, 1, 0, y],\n",
645+
" [0, 0, 1, z],\n",
645646
" [0, 0, 0, 1]])\n",
646647
"\n",
647648
"# An SE(3) rotation\n",
648-
"θab = pi/4\n",
649+
"θab = pi/4 # angle in radians\n",
650+
"\n",
649651
"Ha_b = np.array([[cos(θab), -sin(θab), 0, 0],\n",
650652
" [sin(θab), cos(θab), 0, 0],\n",
651653
" [0, 0, 1, 0],\n",

0 commit comments

Comments
 (0)