-
-
Save qiaoxu123/75fec9fab77680966b5629430f0ec2b6 to your computer and use it in GitHub Desktop.
Please check the issue, from the Coursera forum @uscgongjianxin
qiaoxu123/Self-Driving-Cars#1
Have did you calculate the 352 and 1800 ?
NameError Traceback (most recent call last)
in
----> 1 class Bicycle(Bicycle):
2 def step(self, v, w):
3 self.xc = self.xc + v * np.cos(self.theta + self.beta) * self.sample_time
4 self.yc = self.yc + v * np.sin(self.theta + self.beta) * self.sample_time
5 self.theta = self.theta + ((v * np.cos(self.beta) * np.tan(self.delta)/self.L)) * self.sample_time
NameError: name 'Bicycle' is not defined
how to remove this error
NameError Traceback (most recent call last)
in
----> 1 class Bicycle(Bicycle):
2 def step(self, v, w):
3 self.xc = self.xc + v * np.cos(self.theta + self.beta) * self.sample_time
4 self.yc = self.yc + v * np.sin(self.theta + self.beta) * self.sample_time
5 self.theta = self.theta + ((v * np.cos(self.beta) * np.tan(self.delta)/self.L)) * self.sample_timeNameError: name 'Bicycle' is not defined
how to remove this error
The order of compilation is what decides that part
make sure you compiled the cell above the cell where you're typing
NameError Traceback (most recent call last)
in
----> 1 class Bicycle(Bicycle):
2 def step(self, v, w):
3 self.xc = self.xc + v * np.cos(self.theta + self.beta) * self.sample_time
4 self.yc = self.yc + v * np.sin(self.theta + self.beta) * self.sample_time
5 self.theta = self.theta + ((v * np.cos(self.beta) * np.tan(self.delta)/self.L)) * self.sample_timeNameError: name 'Bicycle' is not defined
how to remove this error
just run the former cells
can you help me . i face few problem. i do not get it where this file is saved and i face one problem
NameError Traceback (most recent call last)
in
1 sample_time = 0.01
2 time_end = 30
----> 3 model.reset()
4
5 t_data = np.arange(0,time_end,sample_time)
NameError: name 'model' is not defined
In 121, I am getting this message
File "", line 17
model.xc = 0
^
IndentationError: unexpected indent
Hi Qiaoxu, do you have the following error:
ImportError: bad magic number in 'notebook_grader': b'3\r\r\n'
I tried:
find . -name '*.pyc' -delete
And I still have the same problem.