I have used pulisher at 0.5 sec and subscriber to topics /cmd_vel and /scan respectively. The logic is working fine in simulation but when I try to run it in real robot, it goes in circles and sometimes not move at all. I am considering 180 deg as robots front as it was working that way in simulation. Can anyone help me or give me suggestion of what might be going wrong.
Also its very difficult to debug in real enviorment as time given is very less