Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3d43db2
Adds ateam_game_state package with in progress game_state_tracker imp…
barulicm Sep 29, 2025
a49dec0
Moves ateam_field_manager to state_tracking folder.
barulicm Sep 29, 2025
7fd83c7
Moves ateam_vision_filter to state_tracking folder.
barulicm Sep 29, 2025
a132ddb
Copies in play and double touch evaluators to game_state_tracker.
barulicm Sep 30, 2025
7cdd9d7
Splits vision/game state messages and removes unused message types.
barulicm Sep 30, 2025
03f2727
Switches vision filter to new vision state message types
barulicm Sep 30, 2025
bef9b43
Switches UI to new vision state messages
barulicm Sep 30, 2025
56c87c0
Switches motion benchmarks to new vision state messages
barulicm Sep 30, 2025
a1a741b
Switches Kenobi to new vision/game state types.
barulicm Sep 30, 2025
6e9f46b
Switches ateam_game_state to new state message types.
barulicm Sep 30, 2025
f0419f3
Merge remote-tracking branch 'origin/main' into dev/barulicm/split_ke…
barulicm Oct 1, 2025
2b26a37
Synchronizes message and c++ fields in game state types
barulicm Oct 1, 2025
4029c4b
Adds missing field to game state tracker ball update function.
barulicm Oct 1, 2025
baa5e3f
Adds more robot state subscribers to game_state_tracker
barulicm Oct 1, 2025
5b534c5
Swaps out kenobi state tracking code for a subscription to the new wo…
barulicm Oct 1, 2025
78d82b0
Adds game_state_tracker to autonomy launch file.
barulicm Oct 1, 2025
01bfe13
Fixes several issues from kenobi split.
barulicm Oct 1, 2025
86235d5
Fixes linting failures
barulicm Oct 1, 2025
c6afe31
Merge remote-tracking branch 'origin/main' into dev/barulicm/split_ke…
barulicm Oct 12, 2025
e21e5cf
Merge remote-tracking branch 'origin/main' into dev/barulicm/split_ke…
barulicm Oct 13, 2025
f80708e
Moves types.hpp -> state_types.hpp
barulicm Oct 13, 2025
3c92d75
Fixes linting failurs in kenobi
barulicm Oct 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ateam_bringup/launch/autonomy.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
<node name="field_manager" pkg="ateam_field_manager" exec="ateam_field_manager_node" respawn="True">
<param name="gc_team_name" value="$(var team_name)"/>
</node>
<node name="game_state_tracker" pkg="ateam_game_state" exec="game_state_tracker_node" respawn="True">
<param name="gc_team_name" value="$(var team_name)"/>
</node>
<let name="kenobi_prefix" value="$(eval '\'xterm -fg white -bg black -e gdb -ex run --args\' if (\'$(var kenobi_debug)\'.lower() == \'true\') else \'\'')"/>
<node name="kenobi_node" pkg="ateam_kenobi" exec="ateam_kenobi_node" respawn="True" launch-prefix="$(var kenobi_prefix)">
<param name="use_world_velocities" value="$(var use_world_velocities)"/>
<param name="use_emulated_ballsense" value="$(var use_emulated_ballsense)"/>
<param name="gc_team_name" value="$(var team_name)"/>
<param name="playbook" value="$(var kenobi_playbook)"/>
</node>
<node name="vader" pkg="ateam_bringup" exec="vader.py" respawn="True"/>
Expand Down
2 changes: 2 additions & 0 deletions ateam_common/include/ateam_common/topic_names.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ constexpr std::string_view kJoystickControlStatus = "/joystick_control_status";

// Output from AI
constexpr std::string_view kRobotMotionCommandPrefix = "/robot_motion_commands/robot";

constexpr std::string_view kWorld = "/world";
} // namespace Topics

#endif // ATEAM_COMMON__TOPIC_NAMES_HPP_
3 changes: 2 additions & 1 deletion ateam_kenobi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ find_package(rclcpp_components REQUIRED)
find_package(ateam_msgs REQUIRED)
find_package(ateam_radio_msgs REQUIRED)
find_package(ateam_common REQUIRED)
find_package(ateam_game_state REQUIRED)
find_package(tf2 REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)
find_package(ateam_geometry REQUIRED)
Expand All @@ -34,7 +35,6 @@ target_sources(kenobi_node_component PRIVATE
src/core/path_planning/escape_velocity.cpp
src/core/path_planning/obstacles.cpp
src/core/path_planning/path_planner.cpp
src/core/types/message_conversions.cpp
src/core/motion/frame_conversions.cpp
src/core/motion/motion_controller.cpp
src/core/motion/motion_executor.cpp
Expand Down Expand Up @@ -123,6 +123,7 @@ ament_target_dependencies(
"ateam_radio_msgs"
"ateam_msgs"
"ateam_common"
"ateam_game_state"
"tf2"
"tf2_geometry_msgs"
"ateam_geometry"
Expand Down
1 change: 1 addition & 0 deletions ateam_kenobi/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<depend>ateam_msgs</depend>
<depend>ateam_radio_msgs</depend>
<depend>ateam_common</depend>
<depend>ateam_game_state</depend>
<depend>tf2</depend>
<depend>tf2_geometry_msgs</depend>
<depend>ateam_geometry</depend>
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/ballsense_emulator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <array>
#include <ateam_common/robot_constants.hpp>
#include <ateam_geometry/normalize.hpp>
#include "core/types/world.hpp"
#include "core/types/state_types.hpp"

namespace ateam_kenobi
{
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/ballsense_filter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <ranges>
#include <array>
#include "core/types/world.hpp"
#include "core/types/state_types.hpp"

namespace ateam_kenobi
{
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/defense_area_enforcement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#define CORE__DEFENSE_AREA_ENFORCEMENT_HPP_

#include <ateam_msgs/msg/robot_motion_command.hpp>
#include "core/types/world.hpp"
#include "core/types/state_types.hpp"

namespace ateam_kenobi::defense_area_enforcement
{
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/double_touch_eval.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <vector>
#include <ateam_common/robot_constants.hpp>
#include <boost/scope_exit.hpp>
#include "core/types/world.hpp"
#include "core/types/state_types.hpp"
#include "core/visualization/overlays.hpp"

namespace ateam_kenobi
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/fps_tracker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define CORE__FPS_TRACKER_HPP_

#include <ateam_common/time.hpp>
#include "core/types/world.hpp"
#include "core/types/state_types.hpp"

namespace ateam_kenobi
{
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/in_play_eval.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <optional>
#include <ateam_geometry/types.hpp>
#include <ateam_common/game_controller_listener.hpp>
#include "core/types/world.hpp"
#include "core/types/state_types.hpp"

namespace ateam_kenobi
{
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/motion/frame_conversions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define CORE__MOTION__FRAME_CONVERSIONS_HPP_

#include <ateam_geometry/types.hpp>
#include "core/types/robot.hpp"
#include "core/types/state_types.hpp"
#include "core/motion/motion_intent.hpp"

namespace ateam_kenobi::motion
Expand Down
3 changes: 1 addition & 2 deletions ateam_kenobi/src/core/motion/motion_controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
#include <rclcpp/rclcpp.hpp>
#include <ateam_msgs/msg/robot_motion_command.hpp>
#include <ateam_geometry/ateam_geometry.hpp>
#include "core/types/robot.hpp"
#include "core/types/world.hpp"
#include "core/types/state_types.hpp"
#include "pid.hpp"
#include "motion_options.hpp"
#include "motion_intent.hpp"
Expand Down
3 changes: 1 addition & 2 deletions ateam_kenobi/src/core/motion/motion_intent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
#include <variant>
#include <vector>
#include <ateam_geometry/types.hpp>
#include "core/types/world.hpp"
#include "core/types/robot.hpp"
#include "core/types/state_types.hpp"
#include "core/path_planning/path.hpp"
#include "core/path_planning/planner_options.hpp"
#include "motion_options.hpp"
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/path_planning/escape_velocity.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <vector>
#include <ateam_geometry/types.hpp>
#include <ateam_geometry/any_shape.hpp>
#include "core/types/robot.hpp"
#include "core/types/state_types.hpp"

namespace ateam_kenobi::path_planning
{
Expand Down
4 changes: 2 additions & 2 deletions ateam_kenobi/src/core/path_planning/obstacles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ bool IsPointInBounds(
ateam_geometry::Rectangle pathable_region(ateam_geometry::Point(-x_bound, -y_bound),
ateam_geometry::Point(x_bound, y_bound));

if (world.ignore_side > 0) {
if (world.field.ignore_side > 0) {
pathable_region = ateam_geometry::Rectangle(
ateam_geometry::Point(-x_bound, -y_bound),
ateam_geometry::Point(0, y_bound));
} else if (world.ignore_side < 0) {
} else if (world.field.ignore_side < 0) {
pathable_region = ateam_geometry::Rectangle(
ateam_geometry::Point(0, y_bound),
ateam_geometry::Point(x_bound, -y_bound));
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/path_planning/obstacles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <vector>
#include <ateam_geometry/any_shape.hpp>
#include "core/types/world.hpp"
#include "core/types/state_types.hpp"

namespace ateam_kenobi::path_planning
{
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/path_planning/path_planner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <ateam_common/robot_constants.hpp>
#include <ateam_geometry/any_shape.hpp>
#include <ateam_geometry/types.hpp>
#include "core/types/world.hpp"
#include "core/types/state_types.hpp"
#include "core/stp/base.hpp"
#include "path.hpp"
#include "planner_options.hpp"
Expand Down
4 changes: 1 addition & 3 deletions ateam_kenobi/src/core/play_helpers/available_robots.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@

#include <vector>
#include <ateam_geometry/types.hpp>
#include "core/types/robot.hpp"
#include "core/types/world.hpp"

#include "core/types/state_types.hpp"
namespace ateam_kenobi::play_helpers
{

Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/play_helpers/lanes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#define CORE__PLAY_HELPERS__LANES_HPP_

#include <ateam_geometry/types.hpp>
#include "core/types/world.hpp"
#include "core/types/state_types.hpp"

namespace ateam_kenobi::play_helpers::lanes
{
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/play_helpers/possession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <algorithm>
#include <limits>
#include <ateam_common/robot_constants.hpp>
#include "core/types/robot.hpp"
#include "core/types/state_types.hpp"

namespace ateam_kenobi::play_helpers
{
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/play_helpers/possession.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef CORE__PLAY_HELPERS__POSSESSION_HPP_
#define CORE__PLAY_HELPERS__POSSESSION_HPP_

#include "core/types/world.hpp"
#include "core/types/state_types.hpp"

namespace ateam_kenobi::play_helpers
{
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/play_helpers/robot_assignment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <optional>
#include <string>
#include <unordered_map>
#include "core/types/robot.hpp"
#include "core/types/state_types.hpp"

namespace ateam_kenobi::play_helpers
{
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/play_helpers/shot_evaluation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define CORE__PLAY_HELPERS__SHOT_EVALUATION_HPP_

#include <ateam_geometry/types.hpp>
#include "core/types/world.hpp"
#include "core/types/state_types.hpp"

namespace ateam_kenobi::play_helpers
{
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/play_helpers/window_evaluation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <utility>
#include <vector>
#include <ateam_geometry/types.hpp>
#include "core/types/robot.hpp"
#include "core/types/state_types.hpp"
#include "core/visualization/overlays.hpp"

namespace ateam_kenobi::play_helpers::window_evaluation
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/play_selector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <rclcpp/rclcpp.hpp>
#include <ateam_msgs/msg/playbook_state.hpp>
#include "core/stp/play.hpp"
#include "core/types/world.hpp"
#include "core/types/state_types.hpp"

namespace ateam_kenobi
{
Expand Down
2 changes: 1 addition & 1 deletion ateam_kenobi/src/core/stp/play.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <string>
#include "base.hpp"
#include "play_score.hpp"
#include "core/types/world.hpp"
#include "core/types/state_types.hpp"
#include "core/types/robot_command.hpp"

namespace ateam_kenobi::stp
Expand Down
Loading