-
Notifications
You must be signed in to change notification settings - Fork 189
Marking coordinator #2446
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
base: ros2
Are you sure you want to change the base?
Marking coordinator #2446
Changes from 32 commits
8b1aa38
ef5bc01
74e7956
a5487ae
dfe621e
01e4436
6301a5b
c85f542
e83d402
b501fe6
ded69ac
20b41d0
787f99b
32f8860
64ef7d4
15f1b61
267f9bd
30e54f6
86e538a
c740b5e
68ce933
245cfd4
1d6c90d
a6c207a
b653fd7
5477bf5
e2b8c4e
f070f8a
2f1354a
ac18cc7
a53480b
3914d60
3073ef6
9207a0c
d916b5a
8de5768
0ce1e25
e79fb8e
1fc4831
22d0b1b
88daaec
7b1c468
498f016
dd5a402
5e2cc4d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| Metadata-Version: 2.1 | ||
|
||
| Name: rj-gameplay | ||
| Version: 0.0.0 | ||
| Summary: Rewrite of the gameplay library. | ||
| Home-page: UNKNOWN | ||
| Maintainer: oswinso | ||
| Maintainer-email: [email protected] | ||
| License: UNKNOWN | ||
| Platform: UNKNOWN | ||
|
|
||
| UNKNOWN | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| README.md | ||
| setup.cfg | ||
| setup.py | ||
| rj_gameplay/__init__.py | ||
| rj_gameplay/gameplay_node.py | ||
| rj_gameplay/play_selector.py | ||
| rj_gameplay.egg-info/PKG-INFO | ||
| rj_gameplay.egg-info/SOURCES.txt | ||
| rj_gameplay.egg-info/dependency_links.txt | ||
| rj_gameplay.egg-info/entry_points.txt | ||
| rj_gameplay.egg-info/requires.txt | ||
| rj_gameplay.egg-info/top_level.txt | ||
| rj_gameplay.egg-info/zip-safe | ||
| rj_gameplay/eval/__init__.py | ||
| rj_gameplay/play/__init__.py | ||
| rj_gameplay/play/defend_restart.py | ||
| rj_gameplay/play/defense.py | ||
| rj_gameplay/play/defensive_clear.py | ||
| rj_gameplay/play/keepaway.py | ||
| rj_gameplay/play/kickoff_play.py | ||
| rj_gameplay/play/offense.py | ||
| rj_gameplay/play/penalty_defense.py | ||
| rj_gameplay/play/penalty_offense.py | ||
| rj_gameplay/play/prep_penalty_offense.py | ||
| rj_gameplay/play/restart.py | ||
| rj_gameplay/play/test_motion_planning.py | ||
| rj_gameplay/role/__init__.py | ||
| rj_gameplay/role/capture_role.py | ||
| rj_gameplay/role/dumb_move.py | ||
| rj_gameplay/role/goalie_role.py | ||
| rj_gameplay/role/marker.py | ||
| rj_gameplay/role/passer.py | ||
| rj_gameplay/role/receiver.py | ||
| rj_gameplay/role/seeker.py | ||
| rj_gameplay/role/striker.py | ||
| rj_gameplay/situation/__init__.py | ||
| rj_gameplay/situation/decision_tree/__init__.py | ||
| rj_gameplay/situation/decision_tree/plays.py | ||
| rj_gameplay/skill/__init__.py | ||
| rj_gameplay/skill/capture.py | ||
| rj_gameplay/skill/dribble.py | ||
| rj_gameplay/skill/intercept.py | ||
| rj_gameplay/skill/kick.py | ||
| rj_gameplay/skill/line_kick.py | ||
| rj_gameplay/skill/mark.py | ||
| rj_gameplay/skill/move.py | ||
| rj_gameplay/skill/pivot.py | ||
| rj_gameplay/skill/pivot_kick.py | ||
| rj_gameplay/skill/receive.py | ||
| rj_gameplay/skill/settle.py | ||
| rj_gameplay/tactic/__init__.py | ||
| rj_gameplay/tactic/clear_tactic.py | ||
| rj_gameplay/tactic/dumb_tactic.py | ||
| rj_gameplay/tactic/goalie_tactic.py | ||
| rj_gameplay/tactic/line_tactic.py | ||
| rj_gameplay/tactic/move_tactic.py | ||
| rj_gameplay/tactic/nmark_tactic.py | ||
| rj_gameplay/tactic/pass_tactic.py | ||
| rj_gameplay/tactic/prep_move.py | ||
| rj_gameplay/tactic/seek.py | ||
| rj_gameplay/tactic/striker_tactic.py | ||
| rj_gameplay/tactic/wall_tactic.py | ||
| stp/__init__.py | ||
| stp/global_parameters.py | ||
| stp/local_parameters.py | ||
| stp/pylint_stp.py | ||
| stp/rc.py | ||
| stp/testing.py | ||
| stp/action/__init__.py | ||
| stp/formations/__init__.py | ||
| stp/formations/diamond_formation.py | ||
| stp/formations/x_formation.py | ||
| stp/play/__init__.py | ||
| stp/play/pure_play.py | ||
| stp/role/__init__.py | ||
| stp/role/constraint.py | ||
| stp/role/cost.py | ||
| stp/role/assignment/__init__.py | ||
| stp/role/assignment/naive.py | ||
| stp/situation/__init__.py | ||
| stp/skill/__init__.py | ||
| stp/skill/action_behavior.py | ||
| stp/tactic/__init__.py | ||
| stp/utils/__init__.py | ||
| stp/utils/constants.py | ||
| stp/utils/enum.py | ||
| stp/utils/fsm.py | ||
| stp/utils/pass_seeker_optimizer.py | ||
| stp/utils/typed_key_dict.py | ||
| stp/utils/world_state_converter.py |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [console_scripts] | ||
| gameplay_node = rj_gameplay.gameplay_node:main | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| setuptools |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| rj_gameplay | ||
| stp |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # This is a message to pick a robot to mark | ||
| uint8[16] mark_robot_ids # ID of the robot to mark on the opposing team |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Request a robot to be added to or removed from the marking group | ||
| uint8 robot_id # ID of the robot (0 to kNumShells-1) | ||
| bool join | ||
| --- | ||
| bool success # Always true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,9 +16,7 @@ | |
| #include <rj_msgs/action/robot_move.hpp> | ||
|
|
||
| #include "rj_strategy/agent/position.hpp" | ||
| #include "rj_strategy/agent/position/marker.hpp" | ||
| #include "rj_strategy/agent/position/waller.hpp" | ||
|
|
||
| namespace strategy { | ||
|
|
||
| /* | ||
|
|
@@ -28,6 +26,8 @@ namespace strategy { | |
| class Defense : public Position { | ||
| public: | ||
| Defense(int r_id); | ||
| Defense(int r_id, std::shared_ptr<ClientHandles> clientHandles); | ||
|
||
| Defense(const Position& other, std::shared_ptr<ClientHandles> clientHandles); | ||
| ~Defense() override = default; | ||
| Defense(const Position& other); | ||
|
|
||
|
|
@@ -45,8 +45,8 @@ class Defense : public Position { | |
|
|
||
| private: | ||
| // static constexpr int kMaxWallers{6}; | ||
|
||
| static constexpr int kMaxWallers{ | ||
| static_cast<int>(kNumShells)}; // This effectively turns off marking | ||
| static constexpr int kMaxWallers{2}; | ||
|
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. can this be changed into a constant |
||
| // static_cast<int>(kNumShells)}; // This effectively turns off marking | ||
rishiso marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| /** | ||
| * @brief The derived_get_task method returns the task for the defensive robot | ||
|
|
@@ -120,8 +120,13 @@ class Defense : public Position { | |
| int get_waller_id(); | ||
| State current_state_ = JOINING_WALL; | ||
|
|
||
| int get_marker_target_id(); | ||
| Marker marker_; | ||
| bool sent_join_marking_group_request_ = false; | ||
| RJ::Time request_time_; | ||
| RJ::Seconds kMarkingGroupJoinTimeout{2.0}; // 2 seconds | ||
rishiso marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| bool pending_marking_state_ = false; | ||
|
|
||
| std::shared_ptr<ClientHandles> clientHandles_; | ||
| }; | ||
|
|
||
| } // namespace strategy | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,8 @@ namespace strategy { | |
| class FreeKicker : public Position { | ||
| public: | ||
| FreeKicker(int r_id); | ||
| FreeKicker(int r_id, std::shared_ptr<ClientHandles> clientHandles); | ||
| FreeKicker(const Position& other, std::shared_ptr<ClientHandles> clientHandles); | ||
|
||
| FreeKicker(const Position&); | ||
| ~FreeKicker() = default; | ||
|
|
||
|
|
@@ -38,6 +40,7 @@ class FreeKicker : public Position { | |
|
|
||
| private: | ||
| std::optional<RobotIntent> derived_get_task(RobotIntent intent) override; | ||
| std::shared_ptr<ClientHandles> clientHandles_; | ||
| }; | ||
|
|
||
| } // namespace strategy | ||
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.
can you remove these changes from the commit (same for
install/setup.zsh)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.
I don't think anything got changed here. Looks like just removed then added the line back.