C++ Basics problem with the simulation

Hi, I am doing the final project in the C++ Basics For Robotics course. My main problem is with the naive obstacle avoider. I initialize a linear velocity for the RobotInterface instance, but after doing so the robot doesn’t respond to the naive obstacle avoider and just keeps going until it clashes a wall in the simulation. Why can it happen?

Hi @EdwardGrieg ,

Welcome to this Community!

I need more context to understand the error that you are facing.

The Naive Obstacle Avoider program is written by the student as per the instructions provided for the project. So the chances are that the code is not doing something that it has to do and I can’t say what that is, without having a look at the code or the behavior of the robot.

If you can share a short animation or video of the issue, that would be helpful in understanding the behavior of your program, and provide better suggestions for you.

If you don’t mind sharing your code here, I can provide you with some suggestions as to what you have to do and what you are doing wrong.

Regards,
Girish

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