Robot Left Wheel does not completely stop using teleop_twist_keyboard control

asked 2022-02-08 09:11:54 -0500

et435 gravatar image

Information:

OS: Ubuntu Server 20.04.3 LTS

Device: Raspberry Pi 4b 2G, Arduino MEGA 2560

ROS Version: Noetic

I am trying to control a 2-wheeled differential drive robot using rosserial (arduino) and teleop_twist_keyboard. I can drive in all directions (although, the robot does not stop when a control key is released, so this is a side problem I would appreciate feedback on). When pressing a key to stop control (ex. 'space bar'), the left wheel continues to run.

Using rostopic echo /cmd_vel I know that on key press, the correct command is being sent to the cmd_vel topic. I also checked the hardware, and all the voltages appear to be good and the motors were verified using a basic arduino program. The arduino was verified as receiving inputs by looking for the LED flash with each input.

Output of rostopic echo /cmd_vel on 'spacebar' press:

linear: x: 0.0 y: 0.0 z: 0.0

angular: x: 0.0 y: 0.0 z: 0.0

Bizarrely, this issue only started to present when I powered the robot with an external power supply. With absolutely identical code and process, running the bot with only power from the raspberry pi does not present this left wheel issue. Please let me know if I can provide any more information.

edit retag flag offensive close merge delete