Go to the documentation of this file.00001
00002
00003 __author__ = 'Minglong Li'
00004
00005 from robot_patrol import RobotPatrol
00006
00007 class RobotPatrolArea1(RobotPatrol):
00008 def __init__(self, topic = None, node_name = None):
00009 self.pose_0 = [4.0, 6.0, 0.0, 1.0]
00010 self.pose_1 = [5.9, 6.05, 0.706, 0.709]
00011 self.pose_2 = [5.9, 8.81, 1.0, 0.0]
00012 self.pose_3 = [4.0, 8.88, -0.707, 0.707]
00013 if node_name is None:
00014 node_name = 'robot_patrol_area_1'
00015 if topic is None:
00016 topic = 'robot_1/move_base/switch'
00017 self._node_name = node_name
00018 self._topic = topic
00019 RobotPatrol.__init__(self, node_name = self._node_name, pose_0 = self.pose_0, pose_1 = self.pose_1, pose_2 = self.pose_2, pose_3 = self.pose_3, topic = self._topic, wait_time = 6.0)
00020
00021 def run(self):
00022 RobotPatrol.start_patrol(self)