-
Notifications
You must be signed in to change notification settings - Fork 126
Fsm debug window #3489
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
Draft
GrayHoang
wants to merge
289
commits into
UBC-Thunderbots:master
Choose a base branch
from
GrayHoang:FSMDebugWindow
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Fsm debug window #3489
Changes from 250 commits
Commits
Show all changes
289 commits
Select commit
Hold shift + click to select a range
ee78316
refactor goalie tactic
GrayHoang 71b525b
refactor halt tactic
GrayHoang 1ec9a70
refactor kick tactic
GrayHoang 837eaec
refactor move tactic
GrayHoang 64ed6fe
refactor pass_Defender tactic
GrayHoang 7be6b3f
refacter penalty_kick tactic
GrayHoang 491fed5
refactor pivot_kick tactic
GrayHoang 7172689
refactor receiver tactic
GrayHoang d2729a7
refactor shadow_enemy tactic
GrayHoang cf5cf44
debug tactic.cpp
GrayHoang 18472e7
move attacker control params
GrayHoang 02bc609
move chip control params, use default updateprimitive
GrayHoang 8530896
move crease defender control params and use default update primitive
GrayHoang b58919f
formatting in chip
GrayHoang 53a0e0b
move dribble control params, use default updatePrimitive
GrayHoang d3e56eb
move get behind ball control params, use default updatePrimitive
GrayHoang bb77adf
move control_param constructor (I forgor)
GrayHoang eae0de4
goalie
GrayHoang c9c656f
halt
GrayHoang fa37b67
kick
GrayHoang 358995a
move
GrayHoang 1956131
pass_defender
GrayHoang 98ed2cd
penalty_kick
GrayHoang c329476
pivot_kick
GrayHoang a12d5a0
receiver
GrayHoang 387fcfc
I went too fast
GrayHoang 9229ccd
shadow enemy
GrayHoang f117d8b
Comments, code style, default constructors for controlParam structs, …
GrayHoang 968302a
Revert "shadow enemy"
GrayHoang 5f335ba
Revert "I went too fast"
GrayHoang 312fcbf
Revert "receiver"
GrayHoang 57d67c5
Revert "pivot_kick"
GrayHoang 849a8f6
Revert "penalty_kick"
GrayHoang 681b336
Revert "pass_defender"
GrayHoang 9e46d97
Revert "move"
GrayHoang 74a1324
Revert "kick"
GrayHoang 9a54929
Revert "halt"
GrayHoang 66576e7
Revert "goalie"
GrayHoang e78f6ad
Revert "move control_param constructor (I forgor)"
GrayHoang b438b0a
Revert "move get behind ball control params, use default updatePrimit…
GrayHoang 920508f
Revert "move dribble control params, use default updatePrimitive"
GrayHoang 37d2fd6
Revert "move crease defender control params and use default update pr…
GrayHoang e1b4d0d
Revert "move chip control params, use default updateprimitive"
GrayHoang 83cc9f4
Revert "move attacker control params"
GrayHoang 1212a27
standardize updatePrimitive to definition in tactic.cpp and delete ta…
GrayHoang 6d93909
debug
GrayHoang 81fdbbe
revert of default constructors for control param structs
GrayHoang e100648
debug defenderbase
GrayHoang 8dde60c
use template for subFsms and patch some bad issues with certain tactics
GrayHoang 2f0ec62
Add a tactic interface class
GrayHoang fe5fea8
rework ai files to use shared pointer ai_config
GrayHoang ea56b17
type docs
GrayHoang 8e57d49
comment
GrayHoang 2423eed
debug
GrayHoang 7447e9e
Add FSM base class for play, debug tactic
GrayHoang 31c364f
refactor BallPlacementPlay
GrayHoang 2586fa1
Crease Defense Play
GrayHoang 4a154e9
defense Play
GrayHoang 71ceca2
enemy ball palcement
GrayHoang 8808929
enemy free kick
GrayHoang 8681ede
example play
GrayHoang 1a40da7
free kick
GrayHoang e53897e
halt play
GrayHoang 71f32f1
hardware challenge plays
GrayHoang 3cbf9ea
offense play
GrayHoang d9945e5
penalty kick play
GrayHoang c6b3b46
penalty kick enemy
GrayHoang 39fe69b
shoot or pass play
GrayHoang fdc8a70
test plays
GrayHoang 9d0266a
function comment
GrayHoang d9ce648
refactor the various coroutine plays
GrayHoang 9197dad
final refactors and debugs
GrayHoang 1dc5cf3
delete vestigial file
GrayHoang a0f1817
refactor tests
GrayHoang 48e7996
move function definitions of template classes to header file
GrayHoang a5fff52
debug tactic
GrayHoang e6f1da3
debug some tactics
GrayHoang ed734ab
fix play tests
GrayHoang 9b130b6
the base of logging feature
GrayHoang eb66b82
use logging base in all fsms
GrayHoang 6622757
edit tests to use logger
GrayHoang 0a1d293
resolve merge conflicts
GrayHoang b5586ee
resolve merge conflicts
GrayHoang 90a4ee5
Merge branch 'master' into Tactic-and-Play-Refactor
GrayHoang 5ddcded
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 80e7736
more merge conflicts??
GrayHoang eb6fc19
Add files via upload
GrayHoang 30afdce
Update and rename Tactic-and-Play-Structure.md to tactic-and-play-str…
GrayHoang c2e14e9
Add files via upload
GrayHoang b780d0f
Update tactic-and-play-structure.md
GrayHoang 1496896
Update tactic-and-play-structure.md
GrayHoang d275b36
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] f2bf8fc
fix remainder of tests
GrayHoang 427b0b4
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang 6efd315
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] a324171
fix more tests
GrayHoang 1df6672
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang 75313b1
resolve merge conflicts
GrayHoang f9e36ca
merge conflicts from cherry pick
GrayHoang 462dadc
Add files via upload
GrayHoang 86da5d0
Update and rename Tactic-and-Play-Structure.md to tactic-and-play-str…
GrayHoang c655913
Add files via upload
GrayHoang e3142da
Update tactic-and-play-structure.md
GrayHoang 6265292
Update tactic-and-play-structure.md
GrayHoang bdb92cd
more cherry pick merge conflicts
GrayHoang 2df9256
fix more tests
GrayHoang 6e86eb0
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] d62f0a0
Merge branch 'master' of github.com:UBC-Thunderbots/Software into FSM…
GrayHoang 2a2cf04
please be the last of the ubild errors
GrayHoang 27826b6
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] da57963
docs
GrayHoang f1db64e
debug segfault in play factory test
GrayHoang cd18a7b
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] adbe1fd
debug penalty_kick_enemy_play_test
GrayHoang c3c331d
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang 93d6b27
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] bee593a
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang 7c429bb
made mistake in merge
GrayHoang 24ed8d5
update docs
GrayHoang 26229b1
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] dd821e0
more detailed logging message (really really slows down things)
GrayHoang 66ca22d
debug
GrayHoang 15addda
rename tactic and tactic interface
GrayHoang 460e719
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang 1a02f78
rename template files to .hpp
GrayHoang 2de6c29
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] f5c6d53
idk why the references didn't get fixeed here
GrayHoang 4bbe80a
move function defs
GrayHoang 75aa809
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang 428cc90
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 35201a0
debug another test that didn't get the name change
GrayHoang d6f5984
remove docs
GrayHoang 9827da7
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang 77e235c
readd logger
GrayHoang 112a0da
Merge branch 'master' of github.com:UBC-Thunderbots/Software into FSM…
GrayHoang ce1a150
Merge branch 'master' of github.com:UBC-Thunderbots/Software into Tac…
GrayHoang f12386f
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 0525492
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang b0a00c1
early logging
GrayHoang 6cd6fcc
singleton logger
GrayHoang d2f9f0a
update macro
GrayHoang e8c4516
update files to fit macro
GrayHoang 9507fd3
way stronger filter
GrayHoang c737aed
delete comments
GrayHoang 43ca1ca
modify some filters
GrayHoang 314120f
Merge branch 'master' of github.com:UBC-Thunderbots/Software into FSM…
GrayHoang bd051ef
Merge branch 'master' of github.com:UBC-Thunderbots/Software into Tac…
GrayHoang 7e92978
virtual fsm_init and inilne accept
GrayHoang 51c3b23
code cleanliness
GrayHoang 2511a40
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang bd4e963
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] e9c6292
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang 9063b53
debug
GrayHoang c76f927
formatting
GrayHoang 5260ae0
more commented code
GrayHoang a6404bf
disable default constructors
GrayHoang 1e9a338
change scope of guard instantiation
GrayHoang 096722c
change the logger class to no longer use singleton and instead contai…
GrayHoang f8633dc
changed ai to initialize with logger instance
GrayHoang 400ea4f
use logger instance in play base
GrayHoang b372410
change tactic base to use logger instance with robot id
GrayHoang 76c36d5
change tests
GrayHoang 176ccaa
made a mistake on the tests
GrayHoang 05303f0
add fields to protobuffer
GrayHoang 093bc9a
mechanisms for protobuffer writing
GrayHoang 34b96f9
update protobuffer
GrayHoang e3b9cfe
add fields to thunderscope (temp)
GrayHoang df1af51
add const to all ai_config_ptr
GrayHoang 520e667
added const qualifier to ai_config_ptr
GrayHoang 8a1bcf1
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang ad9d505
merge conflict part 2
GrayHoang efc7fcc
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 526fd1e
bugfix test
GrayHoang c97d9b3
remove old singleton code
GrayHoang 6ade3f7
remove commented code
GrayHoang 704c5cf
use CRTP in fsm base classes
GrayHoang 872caad
Revert "Refactor AttackerFSM"
GrayHoang cf91407
Revert "Refactor Dribble FSM and change references to dribble_tactic_…
GrayHoang a11ca47
Correct Mistakes
GrayHoang 749d9e0
Revert "refactor crease defender"
GrayHoang 9b86aaf
Revert "refactor goalie_fsm"
GrayHoang 1829d66
Revert "refactor get_behind_ball"
GrayHoang 257dba0
more mistakes
GrayHoang 3044e65
Revert "chip fsm refactor"
GrayHoang 66e5051
Revert "refactor haltFSM"
GrayHoang 99412f6
Revert "refactor KeepAwayFSM"
GrayHoang b52702a
Revert "refactor kickFSM"
GrayHoang 178f982
fixes
GrayHoang d282b91
more fixes
GrayHoang 6792a47
Revert "refactor moveFSM"
GrayHoang 29e9d48
Revert "refactor PassDefenderFSM"
GrayHoang 5c97980
fixes
GrayHoang c792bee
Revert "refactor PenaltyKickFSM"
GrayHoang 9b446ea
fix base class
GrayHoang b7776ec
Revert "refactor PivotKickFSM"
GrayHoang 1d5560f
fixes
GrayHoang 89b1f75
more fixes
GrayHoang 44e708e
Revert "refactor ReceiverFSM"
GrayHoang ef87201
Revert "refactor ShadowEnemyFSM"
GrayHoang dc980c4
Revert "refactor reference to AttackerFSM::ControlParams"
GrayHoang b865ace
Revert "refactor references to ChipFSM::ControlParams"
GrayHoang 7aeaae5
fix goalie
GrayHoang 732146c
fixes
GrayHoang b722f87
revert the plays
GrayHoang 1fec581
Merge branch 'master' of github.com:UBC-Thunderbots/Software into FSM…
GrayHoang 434f43c
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang 951a39a
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] e4d76f3
fix tests
GrayHoang 9b1d21a
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang dbc753b
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 86d8582
Merge branch 'master' of github.com:UBC-Thunderbots/Software into Tac…
GrayHoang 22a8fca
move constructor definitions
GrayHoang 58345c6
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang eab19df
comments
GrayHoang 255e03c
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] f5471a4
whitespace
GrayHoang 6a5bf40
rename play_fsm and move implementations
GrayHoang 3afcc9d
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang a231a60
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] d2ba0d0
Merge branch 'master' of github.com:UBC-Thunderbots/Software into Tac…
GrayHoang f085dfc
many nits
GrayHoang 021f3a1
fixes
GrayHoang 2c63644
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 23a7be9
Merge branch 'master' of github.com:UBC-Thunderbots/Software into Tac…
GrayHoang 30fbc6d
class docs
GrayHoang 4cdae62
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang 5613222
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang 8d5d15a
Remove disk cache GC settings from .bazelrc
GrayHoang 7e10692
Update src/software/ai/hl/stp/tactic/goalie/goalie_fsm.h
GrayHoang e4007e3
Update src/software/ai/hl/stp/tactic/tactic_base.hpp
GrayHoang 66f7250
Merge branch 'master' of github.com:UBC-Thunderbots/Software into Tac…
GrayHoang 53b4145
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang d917d82
Merge branch 'Tactic-and-Play-Refactor' of github.com:potatoisagender…
GrayHoang ad7b1f5
small fix
GrayHoang bbd68e5
log pyqt version number
GrayHoang 53d154b
more debugging, local import to enable webengine
GrayHoang fc218bd
make all thunderscope dependencies hermetic, use rules_py
GrayHoang 4761958
bugfix qwebengine
GrayHoang 1bed136
add mermaid diagram
GrayHoang 4ab9179
Merge branch 'master' of github.com:UBC-Thunderbots/Software into FSM…
GrayHoang 20f06ca
remaining merge
GrayHoang dfe37c0
mistake in build file
GrayHoang fd80056
merge conflicts
GrayHoang b3da03d
change the ui
GrayHoang 0ea6b7d
some minor changes
GrayHoang c95b78e
Merge branch 'master' into FSMDebugWindow
GrayHoang b4023d4
Merge branch 'master' of github.com:UBC-Thunderbots/Software into FSM…
GrayHoang 88870f6
module.lock
GrayHoang 16236dc
Merge branch 'master' of github.com:UBC-Thunderbots/Software into FSM…
GrayHoang 9a8d1bb
fix requests
GrayHoang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,9 +18,9 @@ class Ai final | |
|
|
||
| /** | ||
| * Create an AI with given configurations | ||
| * @param ai_config_ The AI configuration | ||
| * @param ai_config_ptr shared pointer to the ai configuration | ||
| */ | ||
| explicit Ai(const TbotsProto::AiConfig& ai_config); | ||
| explicit Ai(std::shared_ptr<const TbotsProto::AiConfig> ai_config_ptr); | ||
|
|
||
| /** | ||
| * Overrides the play | ||
|
|
@@ -60,12 +60,13 @@ class Ai final | |
| * | ||
| * @param ai_config The new AiConfig proto | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. delete |
||
| */ | ||
| void updateAiConfig(TbotsProto::AiConfig& ai_config); | ||
| void updateAiConfig(); | ||
|
|
||
| private: | ||
| private: | ||
| void checkAiConfig(); | ||
|
|
||
| TbotsProto::AiConfig ai_config_; | ||
| FSMLogger logger; | ||
| std::shared_ptr<const TbotsProto::AiConfig> ai_config_ptr; | ||
| std::unique_ptr<FSM<PlaySelectionFSM>> fsm; | ||
| std::unique_ptr<Play> override_play; | ||
| std::unique_ptr<Play> current_play; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks unintentional
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very much so :(
I will remove later