chicagoedt / revo_robot

Code for EDT's IGVC entry, Revo.
http://www.igvc.org/
20 stars 23 forks source link

pixel_coordinate_calc improper exit #81

Closed l0g1x closed 9 years ago

l0g1x commented 9 years ago

After im done running pixel_to_coordinate_calculator.py and then press ctrl+c i get this error log:

Traceback (most recent call last):
  File "/home/edt/igvc/l0g1x_ws/src/Software_IGVC/line_detection/src/pixel_to_coordinate_calculator.py", line 253, in <module>
    rate.sleep()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/timer.py", line 99, in sleep
    sleep(self._remaining(curr_time))
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/timer.py", line 157, in sleep
    raise rospy.exceptions.ROSInterruptException("ROS shutdown request")
rospy.exceptions.ROSInterruptException: ROS shutdown request
shutting down processing monitor...
... shutting down processing monitor complete
done

@basheersubei can you fix this so that the node simply exits on completion? i think thats simplest way to do it

bsubei commented 9 years ago

That doesn't seem like an error. It just raises an interrupt exception (which you raised when you hit ctrl+c), and the exception is caught by rospy (that's what the spin() does in rospy) and it shuts down the node. I don't see a problem here.

bsubei commented 9 years ago

fixed in f83a732d53b85c0417d214c2636d0a7965ef3ff0