Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Krabi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Victor
Krabi
Commits
17f70113
Commit
17f70113
authored
9 years ago
by
root
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of /srv/git/hook_robotique/../repositories/gitRobotique
parents
66081e54
d88e7ed4
Branches
standAloneStrategy
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
stm32/include/simul/objet.h
+4
-4
4 additions, 4 deletions
stm32/include/simul/objet.h
stm32/include/strategie/etape.h
+7
-8
7 additions, 8 deletions
stm32/include/strategie/etape.h
stm32/src/strategie/krabi2016.cpp
+11
-33
11 additions, 33 deletions
stm32/src/strategie/krabi2016.cpp
with
22 additions
and
45 deletions
stm32/include/simul/objet.h
+
4
−
4
View file @
17f70113
...
...
@@ -21,12 +21,12 @@ class Objet
SHELL
,
/*!< Représente un coquillage*/
SANDCUBE
,
SANDCUBE1
,
/*!< Représente un cube de chateau de sable*/
/
*
SANDCONE, /*!< Représente un cone de chateau de sable*/
/
/
SANDCONE, /*!< Représente un cone de chateau de sable*/
SANDCYLINDER
,
/*!< Représente un cylinder de chateau de sable*/
PORTE
/*!< Représente la porte des cabine de plage*/
/
*
MER, /*!< Représente la mer*/
/
*
POISSON, /*!< Représente le poisson*/
/
*
FILET/*!< Représente le filet*/
/
/
MER, /*!< Représente la mer*/
/
/
POISSON, /*!< Représente le poisson*/
/
/
FILET/*!< Représente le filet*/
};
/**@brief Constructeur de la classe permettant de construire directement un objet de type type à la position p avec pour angle initial theta. */
/**@param world Pointer vers le b2World dans lequel va être créé notre objet*/
...
...
This diff is collapsed.
Click to expand it.
stm32/include/strategie/etape.h
+
7
−
8
View file @
17f70113
...
...
@@ -18,17 +18,16 @@ public:
/** @brief Enum des types d'étape possible (un feu, un point de passage...) */
enum
EtapeType
{
ROBOT_VU_ICI
=
0x80
,
DEPART
=
0x01
,
CUBE_DEBUT
=
0x02
,
CABINE
=
0x40
,
ZONE_CONSTRUCTION
=
0x20
,
CUBE_DEBUT
=
0x10
,
DUNE
=
0x08
,
DUNE
=
0x04
,
ZONE_CONSTRUCTION
=
0x08
,
POINT_PASSAG
E
=
0x0
4
,
COLLECT
=
0x
0
2
,
CABIN
E
=
0x
1
0
,
POINT_PASSAGE
=
0x2
0
,
DEPART
=
0x0
1
ROBOT_VU_ICI
=
0x
4
0
};
...
...
This diff is collapsed.
Click to expand it.
stm32/src/strategie/krabi2016.cpp
+
11
−
33
View file @
17f70113
...
...
@@ -57,39 +57,18 @@ Krabi2016::Krabi2016(bool isYellow) : StrategieV3(isYellow)
/** Liens **/
// [WIP]
Etape
::
get
(
start
)
->
addVoisin
(
p1
);
Etape
::
get
(
p1
)
->
addVoisin
(
p2
);
Etape
::
get
(
p1
)
->
addVoisin
(
p4
);
Etape
::
get
(
cubedebut
)
->
addVoisin
(
p1
);
Etape
::
get
(
p1
)
->
addVoisins
(
start
,
cubedebut
,
p2
,
p4
);
Etape
::
get
(
p3
)
->
addVoisins
(
zc1
,
zc2
,
dune4
);
Etape
::
get
(
p4
)
->
addVoisins
(
cabine1
,
cabine2
,
p2
);
Etape
::
get
(
p5
)
->
addVoisins
(
p1
,
p2
,
p3
,
p4
);
Etape
::
get
(
p5
)
->
addVoisins
(
dune1
,
dune2
,
dune4
);
Etape
::
get
(
p3
)
->
addVoisin
(
zc1
);
Etape
::
get
(
p3
)
->
addVoisin
(
zc2
);
Etape
::
get
(
p3
)
->
addVoisin
(
dune4
);
Etape
::
get
(
dune1
)
->
addVoisin
(
p2
);
Etape
::
get
(
dune2
)
->
addVoisin
(
dune1
);
Etape
::
get
(
dune3
)
->
addVoisin
(
p5
);
Etape
::
get
(
cabine1
)
->
addVoisin
(
p4
);
Etape
::
get
(
cabine2
)
->
addVoisin
(
p4
);
Etape
::
get
(
p4
)
->
addVoisin
(
p2
);
Etape
::
get
(
dune1
)
->
addVoisin
(
p2
);
Etape
::
get
(
dune2
)
->
addVoisin
(
dune1
);
Etape
::
get
(
dune3
)
->
addVoisin
(
p5
);
Etape
::
get
(
p5
)
->
addVoisin
(
p1
);
Etape
::
get
(
p5
)
->
addVoisin
(
p2
);
Etape
::
get
(
p5
)
->
addVoisin
(
p3
);
Etape
::
get
(
p5
)
->
addVoisin
(
p4
);
Etape
::
get
(
p5
)
->
addVoisin
(
dune1
);
Etape
::
get
(
p5
)
->
addVoisin
(
dune2
);
Etape
::
get
(
p5
)
->
addVoisin
(
dune4
);
Etape
::
get
(
p5
)
->
addVoisin
(
p3
);
Etape
::
get
(
zc1
)
->
addVoisin
(
dune1
);
Etape
::
get
(
zc1
)
->
addVoisin
(
dune2
);
Etape
::
get
(
zc2
)
->
addVoisin
(
dune1
);
Etape
::
get
(
zc2
)
->
addVoisin
(
dune2
);
Etape
::
get
(
zc2
)
->
addVoisin
(
p5
);
Etape
::
get
(
zc1
)
->
addVoisins
(
dune1
,
dune2
);
Etape
::
get
(
zc2
)
->
addVoisins
(
dune1
,
dune2
,
p5
);
#ifndef ROBOTHW
qDebug
()
<<
Etape
::
getTotalEtapes
();
...
...
@@ -122,6 +101,7 @@ int Krabi2016::getScoreEtape(int i)
return
0
;
case
Etape
::
POINT_PASSAGE
:
return
0
;
case
Etape
::
ZONE_CONSTRUCTION
:
{
if
(
benne
->
getIsBenneEmpty
())
{
return
1
;
...
...
@@ -138,11 +118,9 @@ int Krabi2016::getScoreEtape(int i)
return
500
;
case
Etape
::
DUNE
:
{
if
(
benne
->
getIsBenneEmpty
()
)
{
return
400
;
}
else
{
return
1
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment