# Gradebot not grading properly in basic exam

**URL:** <https://get-help.theconstruct.ai/t/gradebot-not-grading-properly-in-basic-exam/32814>\
**Category:** ROS Basics In 5 Days (Python)\
**Tags:** error, quiz, final-exam\
**Created:** [October 4, 2024, 7:22pm UTC](https://get-help.theconstruct.ai/t/gradebot-not-grading-properly-in-basic-exam/32814 "2024-10-04T19:22:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mm4044](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@mm4044](https://get-help.theconstruct.ai/u/mm4044)\
**Post date:** [October 4, 2024, 7:22pm UTC](https://get-help.theconstruct.ai/t/gradebot-not-grading-properly-in-basic-exam/32814/1 "2024-10-04T19:22:17Z")

</div>

All the launch files and simulations have been thoroughly tested and simulated multiple times and all achieve proper functionality especially the main\_program but during grading, it seems something goes wrong with the grading simulation, and it gives me an error because of it. the program functionality has been verified by others as well, that it indeed does not have problems.

Kindly review my grade for the basic exam, thank you

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/6966_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [October 4, 2024, 8:34pm UTC](https://get-help.theconstruct.ai/t/gradebot-not-grading-properly-in-basic-exam/32814/2 "2024-10-04T20:34:31Z")

</div>

The problem is that a specific part of your program is taking too long to respond. It seems your `/dist_motion_service` is taking too long to respond.

Please start the service and check that the service responds on time when called:

```auto
rosservice call /dist_motion_service "{}"

```

---

<div class="post-metadata">

**Author:** ![mm4044](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@mm4044](https://get-help.theconstruct.ai/u/mm4044)\
**Post date:** [October 4, 2024, 8:51pm UTC](https://get-help.theconstruct.ai/t/gradebot-not-grading-properly-in-basic-exam/32814/3 "2024-10-04T20:51:36Z")

</div>

Hi,

Can confirm that the service responds and does the appropriate course of action when called after starting

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/6966_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [October 4, 2024, 9:27pm UTC](https://get-help.theconstruct.ai/t/gradebot-not-grading-properly-in-basic-exam/32814/4 "2024-10-04T21:27:31Z")

</div>

Then I suggest that your check the response time for all your services. Ensure no part of the code is taking longer than necessary.

I’ve optimized the gradbot script to use less time. Please check that your code responds as fast as possible, and try again.

---

<div class="post-metadata">

**Author:** ![mm4044](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@mm4044](https://get-help.theconstruct.ai/u/mm4044)\
**Post date:** [October 6, 2024, 4:27pm UTC](https://get-help.theconstruct.ai/t/gradebot-not-grading-properly-in-basic-exam/32814/5 "2024-10-06T16:27:05Z")

</div>

But all the simulations in the final exam run the same course of action and therefore all take the same amount of time

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/6966_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [October 7, 2024, 10:06am UTC](https://get-help.theconstruct.ai/t/gradebot-not-grading-properly-in-basic-exam/32814/6 "2024-10-07T10:06:35Z")

</div>

It’s not about how long the simulation runs or responds. It’s about how long it takes your service to finish its task. You can control that by how you write the service server logic.

For instance,

- you can determine how fast the robot moves by the values you set in the Twist message
- You can determine how fast the loop runs by using a `rospy.Rate` object
- Bugs in your code could cause a while loop to run forever or for too long

---

<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:** [October 12, 2024, 10:06am UTC](https://get-help.theconstruct.ai/t/gradebot-not-grading-properly-in-basic-exam/32814/7 "2024-10-12T10:06:37Z")

</div>

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