# Chapter 4 Quiz not end as expected mark 7.0

**URL:** <https://get-help.theconstruct.ai/t/chapter-4-quiz-not-end-as-expected-mark-7-0/20624>\
**Category:** ROS2 Basics in 5 Days (Python)\
**Created:** [November 21, 2022, 6:03pm UTC](https://get-help.theconstruct.ai/t/chapter-4-quiz-not-end-as-expected-mark-7-0/20624 "2022-11-21T18:03:01Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vkuehn](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/vkuehn/32/7379_2.png) [@vkuehn](https://get-help.theconstruct.ai/u/vkuehn)\
**Post date:** [November 21, 2022, 6:03pm UTC](https://get-help.theconstruct.ai/t/chapter-4-quiz-not-end-as-expected-mark-7-0/20624/1 "2022-11-21T18:03:01Z")

</div>

Hi,

the server creates this log

```auto
[services_quiz_server-1] [INFO] [1669053400.427494336] [turn_server]: req direction Turn Right velocity 0.2 time 10
[services_quiz_server-1] [INFO] [1669053400.428299051] [turn_server]: Turning to right direction!!
[services_quiz_server-1] [INFO] [1669053400.428992002] [turn_server]: Interval Start 2022-11-21 17:56:40
[services_quiz_server-1] [INFO] [1669053410.001020483] [turn_server]: Interval Stop 2022-11-21 17:56:50

```

when launching the client so in theory it should be as requiered

- 
  - It will spin to the right.
  - It will spin at an angular velocity of 0.2 rad/s.
  - It will spin during 10 seconds.

any hint why it should not pass the test ?

Regards

---

<div class="post-metadata">

**Author:** ![girishkumar.kannan](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/girishkumar.kannan/32/6994_2.png) [@girishkumar.kannan](https://get-help.theconstruct.ai/u/girishkumar.kannan)\
**Post date:** [November 21, 2022, 7:15pm UTC](https://get-help.theconstruct.ai/t/chapter-4-quiz-not-end-as-expected-mark-7-0/20624/2 "2022-11-21T19:15:26Z")

</div>

Hi @vkuehn ,

Could you please post a picture of your error message that the Gradebot / Autograder generated?  
That would be an easy way to find a solution to your problem.

– Girish

---

<div class="post-metadata">

**Author:** ![vkuehn](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/vkuehn/32/7379_2.png) [@vkuehn](https://get-help.theconstruct.ai/u/vkuehn)\
**Post date:** [November 22, 2022, 6:15pm UTC](https://get-help.theconstruct.ai/t/chapter-4-quiz-not-end-as-expected-mark-7-0/20624/3 "2022-11-22T18:15:04Z")

</div>

Hi @girishkumar.kannan ,

it says

```auto
...
✔ [info] Checking that the robot performs the expected turn... (mark: 7.0)

✖ [assess] The robot did NOT fully perform the expected turn. Things your can check:
- Did the robot turn as indicated in the notebook?
- Did the robot complete the turn within the stipulated time? (mark: 7.0)

```

Does this shed some light ?

Regards

---

<div class="post-metadata">

**Author:** ![girishkumar.kannan](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/girishkumar.kannan/32/6994_2.png) [@girishkumar.kannan](https://get-help.theconstruct.ai/u/girishkumar.kannan)\
**Post date:** [November 22, 2022, 7:19pm UTC](https://get-help.theconstruct.ai/t/chapter-4-quiz-not-end-as-expected-mark-7-0/20624/4 "2022-11-22T19:19:12Z")

</div>

Hi @vkuehn ,

Thanks for posting the error info.

The two checks for validating the “turn” seems straightforward.  
I believe you have done it and verified it by testing your code (as posted on your earlier / initial post).

At this point, I have no suggestions for a solution and you must check with The Construct team to provide you a solution.

Regards,  
Girish

---

<div class="post-metadata">

**Author:** ![vkuehn](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/vkuehn/32/7379_2.png) [@vkuehn](https://get-help.theconstruct.ai/u/vkuehn)\
**Post date:** [November 22, 2022, 8:17pm UTC](https://get-help.theconstruct.ai/t/chapter-4-quiz-not-end-as-expected-mark-7-0/20624/5 "2022-11-22T20:17:54Z")

</div>

Thanks @girishkumar.kannan

---

<div class="post-metadata">

**Author:** ![albertoezquerro](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/albertoezquerro/32/7031_2.png) [@albertoezquerro](https://get-help.theconstruct.ai/u/albertoezquerro)\
**Post date:** [November 23, 2022, 10:19am UTC](https://get-help.theconstruct.ai/t/chapter-4-quiz-not-end-as-expected-mark-7-0/20624/6 "2022-11-23T10:19:46Z")

</div>

Hello @vkuehn ,

Looking at the logs, the problem is with the final orientation of the robot when it finishes the rotation. The final expected orientation is more or less 90 degrees to the right (as shown in the GIF of the resulting motion). Does your robot end in a similar orientation? Could you check the orientation quaternion of the robot when your motion finishes (you can check it on the `/odom` topic)?

---

<div class="post-metadata">

**Author:** ![vkuehn](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/vkuehn/32/7379_2.png) [@vkuehn](https://get-help.theconstruct.ai/u/vkuehn)\
**Post date:** [November 23, 2022, 9:10pm UTC](https://get-help.theconstruct.ai/t/chapter-4-quiz-not-end-as-expected-mark-7-0/20624/7 "2022-11-23T21:10:39Z")

</div>

Hello @albertoezquerro,

thanks.  
I did miss the point that the turn messages should allow the angular speed equals zero.  
But when moving 10 second with the speed 0.2 the rotation is not 90 degrees.

start z: -0.0002586989728542422  
0.2 z: -0.5181289083644276  
0.3 z: -0.9343995303966297

speed 0.3 would be almost 90 degree is that right to pass the test ?

---

<div class="post-metadata">

**Author:** ![albertoezquerro](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/albertoezquerro/32/7031_2.png) [@albertoezquerro](https://get-help.theconstruct.ai/u/albertoezquerro)\
**Post date:** [November 24, 2022, 8:36am UTC](https://get-help.theconstruct.ai/t/chapter-4-quiz-not-end-as-expected-mark-7-0/20624/8 "2022-11-24T08:36:56Z")

</div>

Yes, after the 10 seconds pass, the robot has to stop. Then, the final orientation of the robot is evaluated. If this orientation is close to 90 degrees (it allows an error threshold), the Quiz should pass. Let me know if it doesn’t.

---

<div class="post-metadata">

**Author:** ![vkuehn](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/vkuehn/32/7379_2.png) [@vkuehn](https://get-help.theconstruct.ai/u/vkuehn)\
**Post date:** [November 24, 2022, 4:41pm UTC](https://get-help.theconstruct.ai/t/chapter-4-quiz-not-end-as-expected-mark-7-0/20624/9 "2022-11-24T16:41:25Z")

</div>

@albertoezquerro,

no doesn’t pass !  
as mentioned above the rotation speed should be correct(tried 0.2 and 0.3) but rotates not close enough.

---

<div class="post-metadata">

**Author:** ![albertoezquerro](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/albertoezquerro/32/7031_2.png) [@albertoezquerro](https://get-help.theconstruct.ai/u/albertoezquerro)\
**Post date:** [November 25, 2022, 9:59am UTC](https://get-help.theconstruct.ai/t/chapter-4-quiz-not-end-as-expected-mark-7-0/20624/10 "2022-11-25T09:59:52Z")

</div>

Hello @vkuehn ,

I did some adjustments to the correction script. Could you please try to correct it again?

---

<div class="post-metadata">

**Author:** ![vkuehn](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/vkuehn/32/7379_2.png) [@vkuehn](https://get-help.theconstruct.ai/u/vkuehn)\
**Post date:** [November 25, 2022, 1:26pm UTC](https://get-help.theconstruct.ai/t/chapter-4-quiz-not-end-as-expected-mark-7-0/20624/11 "2022-11-25T13:26:12Z")

</div>

Hello @albertoezquerro,

thanks a lot ! that did the trick !

Kind Regards

---

<div class="post-metadata">

**Author:** ![system](https://get-help.theconstruct.ai/uploads/default/original/2X/9/9d3ce8305cc0d0d9b6e07d15767a6f245c526f1b.jpeg) [@system](https://get-help.theconstruct.ai/u/system)\
**Post date:** [November 30, 2022, 1:27pm UTC](https://get-help.theconstruct.ai/t/chapter-4-quiz-not-end-as-expected-mark-7-0/20624/12 "2022-11-30T13:27:04Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
