Classes | Functions | Variables
turtle_dating Namespace Reference

Classes

class  TurtleScheduler

Functions

def cupidon
def turtle1_go
def turtle1_pose_updated
def turtle1_wandering
def turtle2_go
def turtle2_pose_updated
def turtle2_wandering

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)

Function Documentation

When turtles are close, make them dance 

Definition at line 69 of file turtle_dating.py.

def turtle_dating.turtle1_go (   target)
Make turtle1 go to target, giving new speed command every second 

Definition at line 25 of file turtle_dating.py.

We received a new pose of turtle1 from turtlesim, update condition variable in scheduler 

Definition at line 88 of file turtle_dating.py.

Make turtle1 do a square in the environment 

Definition at line 41 of file turtle_dating.py.

def turtle_dating.turtle2_go (   target)
Make turtle2 go to target, giving new speed command every second 

Definition at line 33 of file turtle_dating.py.

We received a new pose of turtle2 from turtlesim, update condition variable in scheduler 

Definition at line 92 of file turtle_dating.py.

Make turtle2 do a square in the environment, reverse direction as turtle1 

Definition at line 55 of file turtle_dating.py.


Variable Documentation

tuple turtle_dating::clear_background = rospy.ServiceProxy('clear', EmptyServiceCall)

Definition at line 110 of file turtle_dating.py.

tuple turtle_dating::reset_simulator = rospy.ServiceProxy('reset', EmptyServiceCall)

Definition at line 107 of file turtle_dating.py.

Definition at line 98 of file turtle_dating.py.

tuple turtle_dating::spawn_turtle = rospy.ServiceProxy('spawn', Spawn)

Definition at line 111 of file turtle_dating.py.

tuple turtle_dating::turtle1_set_pen = rospy.ServiceProxy('turtle1/set_pen', SetPen)

Definition at line 114 of file turtle_dating.py.

tuple turtle_dating::turtle1_teleport = rospy.ServiceProxy('turtle1/teleport_absolute', TeleportAbsolute)

Definition at line 116 of file turtle_dating.py.

tuple turtle_dating::turtle1_velocity = rospy.Publisher('turtle1/command_velocity', Velocity)

Definition at line 123 of file turtle_dating.py.

tuple turtle_dating::turtle2_set_pen = rospy.ServiceProxy('turtle2/set_pen', SetPen)

Definition at line 118 of file turtle_dating.py.

tuple turtle_dating::turtle2_teleport = rospy.ServiceProxy('turtle2/teleport_absolute', TeleportAbsolute)

Definition at line 120 of file turtle_dating.py.

tuple turtle_dating::turtle2_velocity = rospy.Publisher('turtle2/command_velocity', Velocity)

Definition at line 125 of file turtle_dating.py.



teer_example_turtle
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:56:02