ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Ros2 robot changes direction when stuck

asked 2023-06-14 22:35:21 -0600

praveen_khm gravatar image

Hi,

I have built a four wheel robot with ros2 foxy. The setup is as follows:

  1. Controller is ros2_controller controlled by a joystick
  2. Raspberry pi connected via serial to esp32 with motor controller to control 4 motors individually
  3. Single Battery connected to esp32, motor controller, raspberry pi. Pi and esp32 both has its own 5v step down regulator
  4. Using differential drive controller method with remapping wheels to work as skid steer

Everything seems ok. However, when the robot is stuck or in full speed, it stops for a moment and then reverses direction. This means 1. Forward becomes reverse, left becomes right 2. It no longer has speed control from joystick. Even a small joystick movement makes robot go in full throttle 3. Restarting launch file works once or twice. Repeats just lose connection and robot is no longer connected to joystick or development machine. In this case, i need to restart robot.

Any idea if this is a hardware or ros2 controller or any other issues?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-16 22:44:47 -0600

praveen_khm gravatar image

Anyone to answer this?

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2023-06-14 22:35:21 -0600

Seen: 150 times

Last updated: Jun 16 '23