Following are the instructions to run the code:
- Run
casino.py
. - Run
player.py
in 3 other terminals.
The game will start and will ask for a future game (Y/N) at the end.
NOTE: Try changing port number if failed to connect in socket programming tasks.
-
Run
bonus_casino.py
. -
Run
bonus_client.py
.Enter details of the game, such as the number of players and the number of rounds.
-
Run
bonus_player.py
in as many terminals as the number of players.
The game will start. Enjoy!
- Run
FSM_traffic.py
. - Enter the number of time steps (
t
). - Enter the inputs, one by one. For example, if the inputs are
1 2 3 4
, you would enter1
, then2
, then3
, and then4
.
The traffic will be cleared in the lowest number of time steps possible, avoiding accumulation of cars on any side.
- Run
traffic_server.py
. - Enter the number of time steps (
t
). - Run
traffic_client.py
in 4 terminals. - Enter the inputs at each client in order. For example, if the inputs for side A are
1 2
and the inputs for side B are3 4
, you would enter1 2
in the first terminal and3 4
in the second terminal.
The traffic will be cleared in the lowest number of time steps possible.
-
Run
RRT_StarConnect.py
(with the first image)- The path will be generated. This generally takes 500-1000 iterations.
- The number of iterations will be displayed on the output screen, so you can see that the algorithm is running.
-
Run
generalised_RRT.py
(with 2nd generalized image)- Enter start and end (int). This is based on the distance from the origin (0,0).
- The path will take more time to generate, about 5000+ iterations.
Steps to move the turtle:
- Run
RRT_StarConnect.py
as described above. - Run
roscore
in a terminal. - Run
rosrun turtlesim turtlesim_node
in another terminal. - cd to the
catkin_ws
directory and runsource devel/setup.bash
. - cd into
catkin_ws/src
directory and runrosrun turtlesim_cleaner turtle_path_tracking-Task3
.
The RRT_StarConnect.py
file should continue running while you follow above steps.
This task is based on the UTAustinVilla3D codebase for the RoboCup Soccer Simulation 3D.
Run the attacker
and defender
files following the usual commands to run the robosoccer simulation:
- Run
rcssserver3d
. - Run
./roboviz.sh
in theroboviz
terminal. - Run
./start.sh
in both theattacker
anddefender
terminals.