Gradebot not grading properly in basic exam

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

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:

rosservice call /dist_motion_service "{}"

Hi,

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

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.

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

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

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