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
71a86f1a
You need to sign in or sign up before continuing.
Commit
71a86f1a
authored
Jul 11, 2017
by
drallensmith
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into randomization - avoid rebase
parents
0fe8cb89
a5a0d1c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
CMakeLists.txt
CMakeLists.txt
+4
-0
example/hand_coded_defense_agent.cpp
example/hand_coded_defense_agent.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
71a86f1a
...
...
@@ -153,6 +153,10 @@ add_executable(high_level_random_agent ${CMAKE_CURRENT_SOURCE_DIR}/example/high_
set_target_properties
(
high_level_random_agent PROPERTIES RUNTIME_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/example
)
target_link_libraries
(
high_level_random_agent hfo-lib
)
add_executable
(
hand_coded_defense_agent
${
CMAKE_CURRENT_SOURCE_DIR
}
/example/hand_coded_defense_agent.cpp
)
set_target_properties
(
hand_coded_defense_agent PROPERTIES RUNTIME_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/example
)
target_link_libraries
(
hand_coded_defense_agent hfo-lib
)
add_executable
(
mid_level_move_agent
${
CMAKE_CURRENT_SOURCE_DIR
}
/example/mid_level_move_agent.cpp
)
set_target_properties
(
mid_level_move_agent PROPERTIES RUNTIME_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/example
)
target_link_libraries
(
mid_level_move_agent hfo-lib
)
...
...
example/hand_coded_defense_agent.cpp
View file @
71a86f1a
...
...
@@ -104,7 +104,7 @@ action_with_params get_defense_action(const std::vector<float>& state_vec, doubl
//std:: cout << "In open Area" << "\n";
if
(
is_kickable
(
ball_pos_x
,
ball_pos_y
,
opp1_pos_x
,
opp1_pos_y
)
&&
get_dist_normalized
(
ball_pos_x
,
ball_pos_y
,
opp1_pos_x
,
opp1_pos_y
)
<
get_dist_normalized
(
ball_pos_x
,
ball_pos_y
,
opp
1_pos_x
,
opp1
_pos_y
))
{
get_dist_normalized
(
ball_pos_x
,
ball_pos_y
,
opp
2_pos_x
,
opp2
_pos_y
))
{
return
{
MARK_PLAYER
,
opp2_unum
};
// return {REDUCE_ANGLE_TO_GOAL, 1};
...
...
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