Did anyone get HW3-4 corrected yet

The grading robot corrected 3-5 overnight.

Progress still shows 3-4 as incorrect and 3-6 as correct with the same move code.
I suppose it's possible the test case is tighter around 3-4 to it's application in 3-6, but it seems odd to get 3-4 wrong and 3-6 right. Maybe it's possible the robot hasn't gotten to 3-4 yet.
I thought it was worth taking a survey among classmates though, so maybe I don't bug the staff with this question as regrading is still in progress.

Any way I guess at this point it's kind of irrelevant due to the final taking precedence, but it would be nice to see it marked correct. :)

asked 11 Apr '12, 07:52

peteMcC's gravatar image

peteMcC
1.4k82040
accept rate: 88%


9 Answers:

My hw3-4 still says incorrect even though it passes tests and as far as I can tell is implemented correctly:

def move(self, motion): # Do not change the name of this function

    # ADD CODE HERE
    #steering angle
    alpha = float(motion[0])
    #distance
    d = float(motion[1])
    #turning angle
    B = (d/self.length)*tan(alpha)

    if (abs(B) >= 0.001):
        #if turning angle is significant enough
        #calculate circular motion

        #turning radius
        R = d/B
        #center x,y coordinates
        cx = self.x - (sin(self.orientation)*R)
        cy = self.y + (cos(self.orientation)*R)

        x = cx + (sin(self.orientation + B)*R)
        y = cy - (cos(self.orientation + B)*R)
        orientation = (self.orientation + B) % (2*pi)
    else:
        #approximate for straight motion

        x = self.x + (d*cos(self.orientation))
        y = self.y + (d*sin(self.orientation))
        orientation = (self.orientation + B) % (2*pi)

    #cyclic truncate
    x %= world_size
    y %= world_size

    #create resultant robot
    result = robot(self.length)
    result.set(x, y, orientation)
    return result # make sure your move function returns an instance
                  # of the robot class with the correct coordinates.
link

answered 13 Apr '12, 10:07

Jeff%20Molsen's gravatar image

Jeff Molsen
17817

1

In code:

world_size = 100.0 # world is NOT cyclic. Robot is allowed to travel "out of bounds"

Your code:

#cyclic truncate
x %= world_size
y %= world_size
(13 Apr '12, 10:37) Gundega ♦♦ Gundega's gravatar image

Thanks for the explanation. I guess I missed that comment - I was too focused on the test cases and the main comment at the top of the code as far as correctness and directions. Maybe for future iterations of this class, add a test case that allows the robot to travel out of bounds.

Thanks again!

(13 Apr '12, 11:05) Jeff Molsen Jeff%20Molsen's gravatar image

@jmolsen I will try to make the test cases to be consistent with the grading code in the next iteration. Sorry for the confusion, but we are learning as well! :-)

(13 Apr '12, 11:17) Gundega ♦♦ Gundega's gravatar image

@GundegaUdacity No worries. I appreciate the opportunity to participate in this first iteration. That you are offering a great course like this for free is awesome. The important thing to me is that I learned a lot. :)

(13 Apr '12, 11:22) Jeff Molsen Jeff%20Molsen's gravatar image

I made the same error assuming the cyclic world in my calculation. Thanks for explaining it.

(13 Apr '12, 18:43) peteMcC peteMcC's gravatar image

HWs 3-4 and 3-5 are now marked correct.
HWs 5-2 and 5-4 are still marked incorrect here though.

link

answered 11 Apr '12, 08:22

Gabriel%20Guimaraes's gravatar image

Gabriel Guim...
573

I have 3-5 marked as correct which is good! but unfortunately I still have 3-4 as incorrect even though it passes both of the test cases provided. I tried running my code in the page as says "there's something wrong in the website" although I can run that code locally in my machine. All I did was adding my code into the move function so it's highly unlikely this is due to a different version of Python between my computer and the website.

Also, I still have 2.5 marked as wrong. I had resubmitted the values for the matrix after the deadline once the value shifting problem was announced and then I was marked "you got it right!" but now when I went to see it the values were shifted to the right again.

Is there anyone with the same issues?

Thanks

link

answered 11 Apr '12, 08:53

Guillermo%20Luis%20Fr%C3%ADas-1's gravatar image

Guillermo Lu...
4601412

Sounds like most got 3-4 regraded as correct, but for some reason ours is still graded incorrect, even though we use the same function in 3-6.

(11 Apr '12, 08:59) peteMcC peteMcC's gravatar image

I have the same issue with 2.5. I also resubmitted it after the announcement, and it is shifted to the right again.

(13 Apr '12, 18:01) John-Paul John-Paul's gravatar image

My hw3-4 was marked as correct now.

But HW5-4 was still incorrect. Has anyone got HW5-4 regraded?

link

answered 11 Apr '12, 08:01

Tran%20Duc%20Hieu-1's gravatar image

Tran Duc Hieu-1
2.6k132744

My hw3-4 was also corrected. It was the only issue I had pending with the grading robot :-)

(11 Apr '12, 09:18) Jose Jose's gravatar image

I get correct the HW3-4.

Did anyone get correct the 2-5? (Transition Matrix) and I get correct the 2-6 where I use that matrix =/

link

answered 11 Apr '12, 08:12

Victor%20Cajes's gravatar image

Victor Cajes
1891315

I also got HW3-4 corrected but the transition matrix in HW2-5 still appears as incorrect.

(11 Apr '12, 09:10) Jose M. Dana Jose%20M.%20Dana's gravatar image

I also got the HW3-4 correct, My 2-5 was correct, at the first time, because i noticed that bug and resubmitted it before the deadline. I think there was an issue with HW5 too, my HW5-2 is marked as incorrect, if i run it it gives correct, if i submit it says "Incorrect. There was an error running your code. It may have timed out." I don't rely know if my code is incorrect, or the grading bot has an issue correcting it.

link

answered 11 Apr '12, 08:23

LevTaylor's gravatar image

LevTaylor
799

just the same as you

(11 Apr '12, 10:11) Anna-Chiara ... Anna-Chiara%20Bellini's gravatar image

I still have 3-4 and 5-2 marked as incorrect but looks correct when I run it.

link

answered 11 Apr '12, 09:43

Daniel%20H.%20Holloway's gravatar image

Daniel H. Ho...
118138

Similar situation here: HW3-4 and HW3-5 are now marked as correct but HW5-2 is still incorrect although it passes the test cases.

link

answered 11 Apr '12, 10:21

Jonesy-1's gravatar image

Jonesy-1
12717

Ditto (3-4 and 3-5 marked correct, 5-2 marked incorrect but passes both tests)

(11 Apr '12, 10:50) MCN MCN's gravatar image

My hw3-5 has been rectified but now my hw1-4 is marked incorrectly and it is giving me "There was a problem with your submission" when I try to resubmit it.

link

answered 13 Apr '12, 18:47

Jason%20Kuen%20Wen%20Yong's gravatar image

Jason Kuen W...
12416

Your answer
Question text:

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5,187
×515
×187
×80
×13

Asked: 11 Apr '12, 07:52

Seen: 578 times

Last updated: 13 Apr '12, 18:47