def __init__(self):
        rospy.init_node('search_action_client')

        self.client = actionlib.SimpleActionClient('/search_action_server',
                                                   SearchAction)
        self.client.wait_for_server()

        self.rate = rospy.Rate(1)
        self.action_complete = False
        self.count = 0
        self.distance = 0
        self.goal = SearchGoal()

        rospy.on_shutdown(self.shutdown_ops)
    def __init__(self):
        self.action_complete = False
        self.distance_travelled = 0.0

        rospy.init_node('search_action_client')

        self.rate = rospy.Rate(10)

        self.goal = SearchGoal()

        self.client = actionlib.SimpleActionClient('/search_action_server',
                                                   SearchAction)
        self.client.wait_for_server()

        self.ctrl_c = False
        rospy.on_shutdown(self.shutdown_ops)
Пример #3
0
    def __init__(self):
 
        self.action_complete = False
        
        rospy.init_node("search_action_client")

        self.rate = rospy.Rate(2)

        self.goal = SearchGoal()

        self.client = actionlib.SimpleActionClient("/search_action_server", 
                    SearchAction)
        self.client.wait_for_server()

        rospy.on_shutdown(self.shutdown_ops)

        self.distance = 0.0

        self.i = 0