Simulator is not responding

Thank you I got that working. However, I as facing difficulties in calculating correctly. I have referred to one of the other threads to explore options to solve it. In that post , you mentioned about getting smaller values and we can use use rviz for that. Couldnt figure out how to do it. Appreciate your help.

Reference : Problem with publishing to cmd_vel and incorrect distances from laser