9. Practical Guide\9.10 Teleportation

9.10 Teleportation

A CoSpace Rescue game lasts for 8 minutes, with two teams competing in one game. A game consists of WORLD_1 and WORLD_2. The robot can spend between 3-5 min in WORLD_1 and then should be teleported to WORLD_2 for the remaining of the time to complete the mission.


Program a robot to collect RED objects while navigating in both WORLD_1 and WORLD_2. A robot will unload the objects collected when it enters the deposit box. The robot will teleport to the WORLD_2 200 seconds after the game begins.

Procedure:

1.    Open the Project “Deposit”.

2.    Copy the same code created for WORLD_1 to the WORLD_2.

3.    In WORLD_1 program, add a new statement called “teleportation”. The robot will teleport at 200 sec after the game begins. After teleportation, the robot in WORLD_1 will remain stationary.

4.    Add conditions and actions for the “teleportation” statement.

There are 3 teleporting locations in WORLD_2. You can use the key action Teleport1, Teleport2 and Teleport3 to teleport the robot to different locations.

5.    Save the project as “Teleportation”.

6.    Build the project.

7.    Load the “Teleportation.dll” to the RED robot and monitor its performance.

 

 

Top of Page