Classes | |
class | TurtleScheduler |
Functions | |
def | turtle1_align |
def | turtle1_coverage |
def | turtle1_go |
def | turtle1_pose_updated |
def | turtle2_orbit |
def | turtle2_orbiting |
def | turtle2_pose_updated |
Variables | |
tuple | clear_background = rospy.ServiceProxy('clear', EmptyServiceCall) |
tuple | reset_simulator = rospy.ServiceProxy('reset', EmptyServiceCall) |
tuple | sched = TurtleScheduler() |
tuple | spawn_turtle = rospy.ServiceProxy('spawn', Spawn) |
tuple | turtle1_set_pen = rospy.ServiceProxy('turtle1/set_pen', SetPen) |
tuple | turtle1_teleport = rospy.ServiceProxy('turtle1/teleport_absolute', TeleportAbsolute) |
tuple | turtle1_velocity = rospy.Publisher('turtle1/command_velocity', Velocity) |
tuple | turtle2_set_pen = rospy.ServiceProxy('turtle2/set_pen', SetPen) |
tuple | turtle2_teleport = rospy.ServiceProxy('turtle2/teleport_absolute', TeleportAbsolute) |
tuple | turtle2_velocity = rospy.Publisher('turtle2/command_velocity', Velocity) |
def turtle_coverage.turtle1_align | ( | target_angle | ) |
Make turtle1 align to angle, giving new speed command every second
Definition at line 33 of file turtle_coverage.py.
def turtle_coverage.turtle1_coverage | ( | ) |
Make turtle1 do a square in the environment
Definition at line 51 of file turtle_coverage.py.
def turtle_coverage.turtle1_go | ( | target | ) |
Make turtle1 go to target, giving new speed command every 0.2 s
Definition at line 25 of file turtle_coverage.py.
def turtle_coverage.turtle1_pose_updated | ( | new_pose | ) |
We received a new pose of turtle1 from turtlesim, update condition variable in scheduler
Definition at line 101 of file turtle_coverage.py.
def turtle_coverage.turtle2_orbit | ( | target | ) |
Make turtle2 orbit around target, giving new speed command every second
Definition at line 43 of file turtle_coverage.py.
def turtle_coverage.turtle2_orbiting | ( | ) |
Make turtle2 do a square in the environment, reverse direction as turtle1
Definition at line 72 of file turtle_coverage.py.
def turtle_coverage.turtle2_pose_updated | ( | new_pose | ) |
We received a new pose of turtle2 from turtlesim, update condition variable in scheduler
Definition at line 105 of file turtle_coverage.py.
tuple turtle_coverage::clear_background = rospy.ServiceProxy('clear', EmptyServiceCall) |
Definition at line 121 of file turtle_coverage.py.
tuple turtle_coverage::reset_simulator = rospy.ServiceProxy('reset', EmptyServiceCall) |
Definition at line 118 of file turtle_coverage.py.
tuple turtle_coverage::sched = TurtleScheduler() |
Definition at line 111 of file turtle_coverage.py.
tuple turtle_coverage::spawn_turtle = rospy.ServiceProxy('spawn', Spawn) |
Definition at line 122 of file turtle_coverage.py.
tuple turtle_coverage::turtle1_set_pen = rospy.ServiceProxy('turtle1/set_pen', SetPen) |
Definition at line 125 of file turtle_coverage.py.
tuple turtle_coverage::turtle1_teleport = rospy.ServiceProxy('turtle1/teleport_absolute', TeleportAbsolute) |
Definition at line 127 of file turtle_coverage.py.
tuple turtle_coverage::turtle1_velocity = rospy.Publisher('turtle1/command_velocity', Velocity) |
Definition at line 134 of file turtle_coverage.py.
tuple turtle_coverage::turtle2_set_pen = rospy.ServiceProxy('turtle2/set_pen', SetPen) |
Definition at line 129 of file turtle_coverage.py.
tuple turtle_coverage::turtle2_teleport = rospy.ServiceProxy('turtle2/teleport_absolute', TeleportAbsolute) |
Definition at line 131 of file turtle_coverage.py.
tuple turtle_coverage::turtle2_velocity = rospy.Publisher('turtle2/command_velocity', Velocity) |
Definition at line 136 of file turtle_coverage.py.