Robot is not moving despite the publications in the /cmd_vel topic

Hi there!

I’m having trouble with the Susbcribers & Messages quiz :frowning:
My robot is not even moving anymore. I hhave checked my publisher works and the /cmd_vel topic is changing but even when I tap “rostopic echo /cmd_vel” and receive
x: 1.0
y: 0.0
z: 0.0
x: 0.0
y: 0.0
z: 0.0”
but the robot is not moving.

Here is my script:

Thank you for your help!

You shouldn’t initialize you node (rospy.init_node) nor create a publisher in your callback. You should do that either in another function to initialize the node, publishers and subscribers or put it below your main