Count number of collisions while navigating to goal
I have the navigation stack working in ROS Kinetic on my computer. In Stage ROS simulations, I can specify the goal and the robot navigates to it. I need to count the number of collisions (if any) that occurred. How can I go about achieving this ?