Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Seminar-HFO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
Seminar-HFO
Commits
beceb50a
Commit
beceb50a
authored
Aug 12, 2017
by
drallensmith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup bhv_basic_move.cpp
parent
adc0ebf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/bhv_basic_move.cpp
src/bhv_basic_move.cpp
+9
-7
No files found.
src/bhv_basic_move.cpp
View file @
beceb50a
...
...
@@ -107,15 +107,17 @@ Bhv_BasicMove::execute( PlayerAgent * agent )
agent
->
debugClient
().
setTarget
(
target_point
);
agent
->
debugClient
().
addCircle
(
target_point
,
dist_thr
);
if
(
ball
.
rposValid
()
||
wm
.
self
().
collidesWithPost
())
{
success
=
true
;
}
else
{
success
=
false
;
}
if
(
Body_GoToPoint
(
target_point
,
dist_thr
,
dash_power
).
execute
(
agent
)
||
Body_TurnToBall
().
execute
(
agent
)
)
{
if
(
ball
.
rposValid
()
||
wm
.
self
().
collidesWithPost
())
{
success
=
true
;
}
else
{
success
=
false
;
}
).
execute
(
agent
)
)
{
// OK
}
else
if
(
Body_TurnToBall
().
execute
(
agent
)
)
{
// OK
}
else
{
success
=
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment