Skip to content

Instantly share code, notes, and snippets.

@qiaoxu123
Last active March 9, 2022 16:41
Show Gist options
  • Save qiaoxu123/75fec9fab77680966b5629430f0ec2b6 to your computer and use it in GitHub Desktop.
Save qiaoxu123/75fec9fab77680966b5629430f0ec2b6 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uscgongjianxin
Copy link

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.

@qiaoxu123
Copy link
Author

qiaoxu123 commented Jul 1, 2019

Please check the issue, from the Coursera forum @uscgongjianxin
qiaoxu123/Self-Driving-Cars#1

@MohamedMa-hmoud
Copy link

Have did you calculate the 352 and 1800 ?

@kvkraju99
Copy link

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

@sadavarterohit
Copy link

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

The order of compilation is what decides that part
make sure you compiled the cell above the cell where you're typing

@AhmedSobhyHaggag
Copy link

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

just run the former cells

@MdAnowarUllahSayed
Copy link

MdAnowarUllahSayed commented Jul 9, 2020

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

@Madhurock
Copy link

In 121, I am getting this message

File "", line 17
model.xc = 0
^
IndentationError: unexpected indent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment