Skip to content

Commit 763ca4f

Browse files
committed
update jupyter docs
1 parent e4fb755 commit 763ca4f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

PathPlanning/QuinticPolynomialsPlanner/quintic_polynomials_planner.ipynb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,19 @@
2424
"\n",
2525
"$x(0) = a_0 = x_s$\n",
2626
"\n",
27-
"x_s is a start x position.\n",
27+
"$x_s$ is a start x position.\n",
2828
"\n",
29+
"Then, differentiating this equation with t, \n",
2930
"\n",
31+
"$x'(t) = a_1+2a_2t+3a_3t^2+4a_4t^3$\n",
3032
"\n",
31-
"$e^{i\\pi} + 1 = 0$\n",
33+
"So, when time is 0,\n",
34+
"\n",
35+
"$x'(0) = a_1 = v_s$\n",
36+
"\n",
37+
"$v_s$ is a initial speed for x axis.\n",
3238
"\n",
33-
"\n"
39+
"=== TBD ==== \n"
3440
],
3541
"metadata": {
3642
"collapsed": false

PathPlanning/QuinticPolynomialsPlanner/quintic_polynomials_planner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class QuinticPolynomial:
2626

2727
def __init__(self, xs, vxs, axs, xe, vxe, axe, time):
2828
# calc coefficient of quintic polynomial
29+
# See jupyter notebook document for derivation of this equation.
2930
self.a0 = xs
3031
self.a1 = vxs
3132
self.a2 = axs / 2.0

0 commit comments

Comments
 (0)