Example #1
0
from robot_control_class import RobotControl
rc = RobotControl()

while rc.get_laser(360) > 1:
    rc.move_straight()

rc.stop_robot()
rc.rotate(75)
Example #2
0
File: task2.py Project: sreejen/ROS
from robot_control_class import RobotControl

rc = RobotControl()
l = rc.get_laser(360)

while l>1:
    rc.move_straight()
    l = rc.get_laser(360)
rc.stop_robot()
rc.rotate(-90)
rc.stop_robot()
Example #3
0
from robot_control_class import RobotControl
rc = RobotControl()

while rc.get_laser(360) >= 1:
    rc.move_straight()

rc.stop_robot()
rc.rotate(-75)