Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versao thales #8

Open
wants to merge 75 commits into
base: VersaoThales
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
fbcb339
Kicker and Logger
AlexanderSilvaB Nov 3, 2018
52f2745
Remove video
AlexanderSilvaB Nov 3, 2018
05b5675
Kicker
AlexanderSilvaB Nov 3, 2018
46ec09f
Merge pull request #3 from AlexanderSilvaB/VersãoAlexander
AlexanderSilvaB Nov 3, 2018
46cee2d
Merge branch 'master' into VersãoAlexander
AlexanderSilvaB Nov 3, 2018
955d399
Team Number
AlexanderSilvaB Nov 3, 2018
71004c1
Merge branch 'master' into VersãoAlexander
AlexanderSilvaB Nov 3, 2018
83878ea
Merge VersãoThales com VersaoAlexander
thaleshspin Nov 3, 2018
0a8578a
Kicker
AlexanderSilvaB Nov 4, 2018
c10a4cb
Fix conflicts
AlexanderSilvaB Nov 4, 2018
1172048
Merge pull request #4 from AlexanderSilvaB/master
AlexanderSilvaB Nov 4, 2018
b6949c3
Times in strategy
AlexanderSilvaB Nov 4, 2018
ebad61a
Merge pull request #5 from AlexanderSilvaB/VersãoAlexander
AlexanderSilvaB Nov 4, 2018
d6f22da
Defender
AlexanderSilvaB Nov 4, 2018
a48b592
Merge pull request #7 from AlexanderSilvaB/VersãoAlexander
AlexanderSilvaB Nov 4, 2018
5d8dbb5
Remove unused files and implement game controller
AlexanderSilvaB Nov 4, 2018
0009e5c
Code merge
AlexanderSilvaB Nov 4, 2018
b6de9e3
Fix some things
AlexanderSilvaB Nov 5, 2018
5c1c4ba
New strategy selection
AlexanderSilvaB Nov 5, 2018
571e8f6
FakeKick on spellbook
AlexanderSilvaB Nov 5, 2018
b66b7d2
New network script
AlexanderSilvaB Nov 7, 2018
ea9dc64
Remove fakekick parameter
AlexanderSilvaB Nov 7, 2018
58dac19
Fix network
AlexanderSilvaB Nov 7, 2018
de77a44
Merge branch 'master' of github.com:AlexanderSilvaB/Mari
AlexanderSilvaB Nov 7, 2018
298ee6a
Remove ball check
AlexanderSilvaB Nov 8, 2018
6a61bf6
Fast walk on init
AlexanderSilvaB Nov 8, 2018
01eead7
Pre kick fix
AlexanderSilvaB Nov 9, 2018
5af8ef8
Remove pre-kick
AlexanderSilvaB Nov 9, 2018
aeece5a
Chute do João
AlexanderSilvaB Nov 9, 2018
d6d7fc5
João chute
AlexanderSilvaB Nov 9, 2018
651768d
Walk first
AlexanderSilvaB Nov 9, 2018
3a3b77f
Super fast robot and kick
AlexanderSilvaB Nov 14, 2018
92f6110
Remove .qi
AlexanderSilvaB Nov 14, 2018
d34435f
Fixed roles
AlexanderSilvaB Nov 14, 2018
5ea6d9b
Fix network
AlexanderSilvaB Nov 14, 2018
92b1d48
Setup script
AlexanderSilvaB Nov 16, 2018
5ec567a
Fix scripts
AlexanderSilvaB Nov 16, 2018
db31476
Fix scripts and keep simple
AlexanderSilvaB Nov 16, 2018
7aa3607
Add Supervisor
AlexanderSilvaB Nov 16, 2018
307faf3
Update README.md
AlexanderSilvaB Nov 16, 2018
655682a
Fix README.md
AlexanderSilvaB Nov 16, 2018
aa0d94f
Fix README
AlexanderSilvaB Nov 16, 2018
fb3786e
Better README
AlexanderSilvaB Nov 16, 2018
1edc71e
I promisse this is the last fix in README for today
AlexanderSilvaB Nov 16, 2018
3e27143
Image and SDK
AlexanderSilvaB Nov 16, 2018
4477194
Fix supervisor
AlexanderSilvaB Nov 16, 2018
c91cd85
Fix sync
AlexanderSilvaB Nov 20, 2018
de0a582
Remove video delete
AlexanderSilvaB Nov 20, 2018
75a8e04
Add Enable and Disable scripts
AlexanderSilvaB Dec 7, 2018
c46f3ac
Fix enable and disable
AlexanderSilvaB Dec 12, 2018
29bd243
Cmake in setup and prevent root
AlexanderSilvaB Dec 13, 2018
8084c08
Add qibuild init to setup
AlexanderSilvaB Dec 13, 2018
0f56501
Better README
AlexanderSilvaB Dec 13, 2018
85ade4b
Better README
AlexanderSilvaB Dec 13, 2018
d33957c
Fix network
AlexanderSilvaB Dec 14, 2018
0a660d3
New TcpUdpSocket
AlexanderSilvaB Jan 25, 2019
13773a1
Perception/Feature folder created
thaleshspin Jul 30, 2019
3fcff14
FeatureExtractor added
thaleshspin Jul 30, 2019
ecd0086
external feature extractor added
thaleshspin Aug 20, 2019
15d4d95
updated with feature extractor option
thaleshspin Aug 20, 2019
5f67be9
Vision Module updated
thaleshspin Aug 20, 2019
e24ea08
Strategy Module updated
thaleshspin Aug 20, 2019
ed391c3
Feature Tracker added
thaleshspin Aug 20, 2019
0612552
Localizer Role added
thaleshspin Aug 20, 2019
a360c43
CMakeLists Updated
thaleshspin Aug 20, 2019
6d2bb07
Clustering data added
thaleshspin Aug 20, 2019
b6d0488
Clustering implemented
thaleshspin Aug 20, 2019
13082d3
Precision implemented
thaleshspin Sep 4, 2019
7b24046
Opponents Detector Module Implemented
thaleshspin Sep 21, 2019
0a9ebd4
Sonar implemented with RobotDetector module
thaleshspin Oct 13, 2019
d5ca5d1
Sonar data usage implemented
thaleshspin Oct 14, 2019
471f670
Improvments on RobotDetector Module
thaleshspin Oct 15, 2019
3f139e9
SonarStopped Behaviour implemented
thaleshspin Oct 18, 2019
26c7e7a
Improvments on RobotDetector Module
thaleshspin Oct 23, 2019
84732bf
--local option added to install naoqi sdk
thaleshspin Jun 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.zip filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.opn filter=lfs diff=lfs merge=lfs -text
52 changes: 51 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## CodeRelease
CMakeCache.txt
CMakeFiles
CMakeScripts
Expand All @@ -9,4 +10,53 @@ compile_commands.json
CTestTestfile.cmake
build-*
keys
.vscode
.vscode
.qi
sdk

## Supervisor
# C++ objects and libs
*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.dll
*.dylib

# Qt-es
object_script.*.Release
object_script.*.Debug
*_plugin_import.cpp
/.qmake.cache
/.qmake.stash
*.pro.user
*.pro.user.*
*.qbs.user
*.qbs.user.*
*.moc
moc_*.cpp
moc_*.h
qrc_*.cpp
ui_*.h
*.qmlc
*.jsc
Makefile*
*build-*
*.user
*.user.*

# Qt unit tests
target_wrapper.*

# QtCreator
*.autosave

# QtCreator Qml
*.qmlproject.user
*.qmlproject.user.*

# QtCreator CMake
CMakeLists.txt.user*
61 changes: 0 additions & 61 deletions .qi/path.conf

This file was deleted.

1 change: 0 additions & 1 deletion .qi/qibuild.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .qi/worktree.xml

This file was deleted.

47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,49 @@
# Mari
This is just a temporary code release

## Get Started
In order to make your computer ready to compile our code, first run the script *setup*.
```shell
./setup
```
This script will guide through all the required steps to make your environment ready. You will be asked to place an SDK inside the newly created *sdk* folder. We have used the version 2.1.4.13 from Aldebaran which can be found in [Aldebaran Community](https://community.ald.softbankrobotics.com/en/resources/software) website or in our [Mari Assets](https://github.com/AlexanderSilvaB/Mari-Assets) repository.

On running this script without any arguments, a toolchain called **rinobot-robot** will be created on your system. You can also setup with a custom toolchain name. To do that just run the script with a toolchain name as argument.
```shell
./setup toolchain-name
```

## Install on robot
To install our code release on NAO, use the *sync* script. This script will configure the robot and copy all needed files to the correct places. On the first time you run this script on any robot is needed that you use the argument *--all* to make sure that all needed settings will be made on the robot. In this script is always required to pass a robot IP or hostname as an argument.

You can use the *--build* argument to force the code compilation on sync. We recommend that you always use this parameter so the code changes will always be compiled before sync.

To configure and sync a robot for the first time you can use:
```shell
./sync robot-hostname --all
```

To sync the robot after the first configuration you just need to use:
```shell
./sync robot-hostname --build
```

By default this script uses a toolchain called **rinobot-toolchain**, if you change your toolchain name with the script *setup* you will need to pass the correct toolchain name as an argument.
```shell
./sync robot-hostname toolchain-name --build
```

## Structure
Our repository is structured in a way that 3 main folders are used, as described bellow:
* **root**: This will be copied to the robot root directory

* **src**: This is complete source code

* **supervisor**: Here lives our Supervisor software

There is also 3 main script that are used:
* **setup**: This script is used to configure the user machine

* **sync**: This script is responsible to configure the robot and copy the binaries and data needed to run our software.

* **build**: This is the script used to compile the source code. Is also possible to not run this script directly and instead use the argument *--build* in the *sync* script.
31 changes: 31 additions & 0 deletions build
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

toolchain="rinobot-robot"

configure=false

for i in "$@" ; do
if [[ $i == "--configure" ]] ; then
configure=true
else
toolchain=$i
fi
done

if [ ! -d ".qi" ]; then
echo "Initializing qibuild"
qibuild init
fi

if [ ! -d "src/build-$toolchain" ]; then
configure=true
fi


echo "Build with $toolchain"
cd src
if [ $configure == true ]; then
qibuild configure -c $toolchain
fi
qibuild make -c $toolchain
cd ..
20 changes: 0 additions & 20 deletions build.sh

This file was deleted.

File renamed without changes.
110 changes: 110 additions & 0 deletions root/etc/naoqi/autoload_rinobot.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# Here is the list of modules loaded in NaoQi core process.

# You should not edit this file.

# If you need to load your module at startup, create a file
# in /home/nao/naoqi/preferences/autoload.ini looking like:

# [user]
# /the/full/path/to/your/libyourmodule.so
#
# Note: to use urbi, you should use:
#
# [user]
# /usr/lib/naoqi/liburbistarter.so
#


[core]
albase
#preferencemanager
#framemanager
#logmanager
#alservicemanager
#aldebug

[extra]
#notificationmanager
dcm_hal
#expressiveness
#alresourcemanager
robotmodel
#aldiagnosis
sensors
#albodytemperature
motion
#touch
#robotposture
#redballtracker
#facetracker
#motionrecorder
#leds
#alworldrepresentation
#alvideodevice
#colorblobdetection
#redballdetection
#facedetection
#visionrecognition
#landmarkdetection
#darknessdetection
#backlightingdetection
#photocapture
#videorecorder
#alvisualcompass
#visualspacehistory
#alsystem
#packagemanager
#alusersession

# modularity and filters
#modularityperception
#audiofilterloader

audiodevice
#audiorecorder
audioout
#speechrecognition
#voiceemotionanalysis
#albattery
#alchestbutton
#mecalogger
#pythonbridge
#launcher
#allaser
#behaviormanager
#animatedspeech
#memorywatcher
#navigation
albonjour
#infrared
#altelepathe
#altracker
#allocalization
#alpanoramacompass
#robothealthmonitor
#notificationreader

# vision modules using modularity
#segmentation3D
#barcodereader
#movementdetection
#peopleperception
#engagementzones
#sittingpeopledetection
#gazeanalysis
#wavingdetection
#facecharacteristics
#objectdetection
#closeobjectdetection
#fastpersontracking
#findpersonhead

# audition modules using modularity
#sounddetection
#soundlocalization

#basicawareness
#autonomousblinking
#autonomousmoves
#autonomouslife
#dialog
15 changes: 12 additions & 3 deletions root/home/nao/data/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Vision":
{
"Enabled": true,
"Record" : true,
"Record" : false,
"BallDetector": {
"Enabled": true,
"Method": "Cascade",
Expand All @@ -22,6 +22,12 @@
]
}
},
"FeatureExtractor": {
"Enabled": false
},
"RobotDetector": {
"Enabled": true
},
"Localization":
{
"Enabled": false,
Expand All @@ -43,12 +49,15 @@
}
},
"Strategy": {
"Enabled": true
"Enabled": true,
"Defensive" : false,
"FakeKick" : false
},
"Behaviour": {
"Enabled": true,
"Number" : 2,
"Names" : ["NAO 1", "NAO 2", "NAO 3", "NAO 4", "NAO 5", "NAO 6"]
"TeamNumber" : 47,
"Names" : ["Dino", "Luci", "Tiny Hand", "Lilith", "Morgana", "Unknown", "Localizer"]
}
}
}
Loading