How to make robot move autonomous ?
I am using ROS indigo and gazebo 7 and new to this area. I have gone through some tutorials from gazebosim website where I found diff_drive robot. It is for to move robot according to x y z values. I want to make that autonomous. Can you help me with that that how can I move robot some meters and then take right or left turn. I am using hokuyo laser model. I want to move robot left or right when the laser sense that the object is 1 meter away. I guess i need c file for this but i don't know where to find the file and how to use this c file.