Hello
I cant see why the robot is not stopping moving
Blockquote
Thanks for your help
Hi @info2016frei,
It seems you are doing the topics_quiz
(or a similar exercise). Here are some hints for you:
move.angular.z
to zero. Only set it to non-zero when your robot is close to the wall and needs to turn right/left. We expect that the robot will move towards the wall at first, without turning. Imagine that you are driving the robot…you would go straight first and then turn only when you get close, right?move.linear.z
at all; it’s not needed here. Only move.linear.x
(forward) and move.angular.z
(turn) are needed.move.linear.x=0
. In other words, while linear.x
is non-zero, angular.z
should be zero and vice-versa.Thank you very much for your help
You’re welcome, I updated the response to make it clearer.