00001 #!/usr/bin/env python 00002 # 00003 # License: BSD 00004 # https://raw.github.com/robotics-in-concert/rocon_multimaster/hydro-devel/rocon_gateway_tests/LICENSE 00005 # 00006 ############################################################################## 00007 # Imports 00008 ############################################################################## 00009 00010 import rospy 00011 import rocon_gateway 00012 import sys 00013 00014 ############################################################################## 00015 # Main 00016 ############################################################################## 00017 00018 if __name__ == '__main__': 00019 rospy.init_node('pull_all') 00020 cancel_flag = rospy.get_param("cancel", False) 00021 try: 00022 rocon_gateway.samples.pull_all(cancel=cancel_flag) 00023 except rocon_gateway.GatewaySampleRuntimeError as e: 00024 rospy.logerr("Pull All: %s" % str(e)) 00025 sys.exit(1)