Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rospy.sleep exception handling #169

Merged

Conversation

fmessmer
Copy link
Contributor

some sleep() exception handling which prevents a lot of terminal output on "STRG+C"

try:
r.sleep()
except rospy.exceptions.ROSInterruptException as e:
#print "ROSInterruptException", e
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not remove this line (same below)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copied it from some other script which had it...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

convinced: it's cleaner without

@fmessmer
Copy link
Contributor Author

fmessmer commented Jan 20, 2017

Added proper from __future__ import print_function as suggested in https://github.com/ipa320/cob_control/issues/129#issuecomment-274029626 and python_2_and_3_compatible_code

@floweisshardt floweisshardt merged commit 64032d2 into 4am-robotics:indigo_dev Jan 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants