Skip to content

Commit

Permalink
embedded in videos of the robot
Browse files Browse the repository at this point in the history
  • Loading branch information
MedadRufus committed Mar 12, 2020
1 parent 9be65b7 commit 70d641f
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 2 deletions.
12 changes: 12 additions & 0 deletions docs/Robot_Movement.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
Robot Motion
===============================

.. raw:: html

<div style="position: relative; padding-bottom: 10%; height: 0; overflow: hidden; max-width: 100%; height: auto;">
<iframe src="https://drive.google.com/file/d/1iwWsbIvJiJaZ3lVvjgfFsQGlwxhQhPgR/preview" width="640" height="480"></iframe>
</div>

..
The motion of the robot was controlled by setting



A separate python script was created which contained the robot class with methods related to its motion. This enabled us to keep the main python script clean and legible. The following in a breakdown of the methods within this Connect4Robot class.


Expand Down
Binary file modified docs/_static/Algorithm_flowchart.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/Panda_movement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 13 additions & 2 deletions docs/gazebo_simulations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ Word of advice: **Simulate, Simulate, Simulate**. Until everything works perfect

Note that the actual Franka Emika robot costs several thousand Euros, and you will have a very limited time with the actual robot. You can save a lot of time by simulating everything on your computer. By simulating, you can potentially avoid getting the robot to do unexpected things. E.g spin around and smash into the wall behind. It would be a very expensive error.


Here is a video a full game simulation of the robot.

.. raw:: html

<div style="position: relative; padding-bottom: 10%; height: 0; overflow: hidden; max-width: 100%; height: auto;">
<iframe src="https://drive.google.com/file/d/1JOPqCoLd7fvLnHGrHJNjEhJRbDciuPba/preview" width="640" height="480"></iframe>
</div>



Starting up your simulation
-----------------------------
Open five terminals, navigate to ``/catkin_ws`` and run the following commands in each:
Expand Down Expand Up @@ -72,7 +83,7 @@ Now that we have the simulation setup, we can run the code to move the robot and
Now you should be able to see the game startup on your terminal. It will give your instructions to help you position the Connect Four board right under the robot's gripper. More instructions on playing the game will be in the next section
Now you should be able to see the game startup on your terminal. It will give your instructions to help you position the Connect Four board right under the robot's gripper. More instructions on playing the game will be in the next page.

..
TODO: add in a link to the next section
Expand All @@ -86,7 +97,7 @@ For your reference, here is video showing the whole setup operation that will al

.. raw:: html

<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; height: auto;">
<div style="position: relative; padding-bottom: 10%; height: 0; overflow: hidden; max-width: 100%; height: auto;">
<iframe src="https://drive.google.com/file/d/1zKt-nPKSKOXqZ7UHFkeTi5kBK8eA0pko/preview" width="640" height="480"></iframe>
</div>

9 changes: 9 additions & 0 deletions docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ Overview & Main File Breakdown
In this project, the Franka Emika "Panda" robot was programmed to play a game of Connect 4 against a human. To do this, multiple tools such as Computer Vision, a Minimax Game Algorithm, Motion Planning and Collision Detection were implemented.
Extensive simulations of the robot's motion were also performed using Gazebo for visualisation.


Here is a quick introduction to what the robot does.

.. raw:: html

<div style="position: relative; padding-bottom: 10%; height: 0; overflow: hidden; max-width: 100%; height: auto;">
<iframe src="https://drive.google.com/file/d/1eVkhQu3TrlreGFJxFhc7Gkob9gC2Xbqn/preview" width="640" height="480"></iframe>
</div>

The different elements of the project were written in discrete python scripts, elements of which were than called and executed within a main file.

The flow chart below shows an overview of the steps that are executed in the main file.
Expand Down

0 comments on commit 70d641f

Please sign in to comment.