diff --git a/labs/catkin_ws/src/l2e4/teleport_turtle3.py b/labs/catkin_ws/src/l2e4/teleport_turtle3.py new file mode 100644 index 0000000000000000000000000000000000000000..5d90683cc455823456cb5c3947ae52ef2d0eb06b --- /dev/null +++ b/labs/catkin_ws/src/l2e4/teleport_turtle3.py @@ -0,0 +1,7 @@ +from turtlesim.srv import TeleportAbsolute, Spawn + +spawn_client = rospy.ServiceProxy('/spawn', Spawn) +spawn_client(x_pos, y_pos, theta, "turtle3") + +teleport_client = rospy.ServiceProxy('/turtle3/teleport_absolute', TeleportAbsolute) +teleport_client(x_pos, y_pos, theta) \ No newline at end of file