Robotics Team Design Project at University of Glasgow
- Head to robocup_ws (workspace):
cd robocup_ws
- Build dependencies and packages:
catkin_make
- Source the project so that ROS can locate all packages:
source devel/setup.bash
- Once in /src, run:
roslaunch robocup_gazebo robocup_world.launch
- source the base ROS
- catkin_make the workspace
- source workspace build
- using ros launch:
- go to workspace dir
roslaunch GameEngine game.launch
- Or using ros run:
- go to workspace dir
rosmaster
rosrun GameEngine game_master.py
rosrun GameEngine game_simulator.py
1.For ROS 2. For PyCharm
- In Pycharm open project with UofG_Robotics_TDP as a source folder
file -> Settings -> Project: UofG_Robotics_TDP -> Project Structure
- Right click on
robotcap_ws
folder and click onsource
- Install PyCharm
- Create an alias to Pycharm
- Create an alias to main ROS source
- Source base ROS
- from same terminal launch PyCharm
- Create a virtual environemtn (call it:
.venv
) - Create launch configuration
- change the launch directory to GameEngine
...to be continue
- git clone
- git checkout speccific branch
- source base ROS
source /opt/ros/__vrsion__/setup.bash
- cd robotcup
- catkin_make
- source devel/setup.bash
- cd ../
- sudo pip3 install -r requirements.txt (if pip3 is not working install it)
- cd robotcup
- roslaunch GameEngine game.launch
Simple ros launch:
roslaunch GameEngine game.launch
ros launch with the ball init position at x = 1, y = 2 in world coordinate system
roslaunch GameEngine game.launch simulator_args:="--ball_pos 1 2"
ros launch with the ball init position at x = 1, y = 2 (in world coordinate system) and vel x = 0 y = 0.4
roslaunch GameEngine game.launch simulator_args:="--ball_pos 0.5 0.5 --ball_vel 0 0.4"
ros launch with team 1 at new positions: player1_x, player1_y, player2_x, player2_y, ... , player5_y
roslaunch GameEngine game.launch simulator_args:="--team_1_init_pos -2 2 -2 -2 2 1 2 -1 -4 0"
The step to finish the project.
In requirement.txt
The simulation and game master is finished, therefore, new learner can write some stragetic things for the project.
This is a project for new learner to follow.
Distributed under the MIT License. See LICENSE
for more information.
- Boss and Leader: Szymon Gula @Szymon
- Our visual effect specialist - visualisation: Feng Feng @Feng
- Our strategy guy: Omar Jabri @Omar
- Martial arts guru - "how to avoid enemy": Yifan Xie @Yifan
- Dynamics: Shreyansh Singh @Shrey
- Project address @Project address