Differential Drive robot having difficulty doing 180 turns during navigation.
When arriving on a goal the robot swerves left to right until it decides to make a turn, occurs mainly in 180 like turns, was trying to create a code to make it rotate in place to the next path position, however as it turns out, that isn't the easiest thing for me to code, as I'm relatively new to all the ROS stuff. So i wanted to know if it could be some parameter that i haven't thought about or there was some other way i could make the code to be simple to work with. I'm using the ROS Kinetic and writing codes in python. Any help is wanted, thanks.
Are you using move_base? Or did you write custom code to write directly to the cmd_vel topic? Or something else?
Yes, I'am using move_base, I used remap so it publishes on another topic and a custom code that manipulates the values to publish to cmd_vel.