コード例 #1
0
#!/usr/bin/env python

from nodes.patrol_node import PatrolController

if __name__ == '__main__':
    _patrolControl = PatrolController()

    while not _patrolControl.isShutDown():
        if not _patrolControl.isPatrolling():
            pass

        _patrolControl.sleep()
コード例 #2
0
#!/usr/bin/env python
import rospy

from nodes.patrol_node import PatrolController

if __name__ == '__main__':

    _patrolControl = PatrolController()

    while not _patrolControl.isShutDown():
        rospy.logwarn(_patrolControl.isPatrolling())

        if not _patrolControl.isPatrolling():
            _patrolControl.startPatrol()

        _patrolControl.sleep()