Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d786ff9
Updates software-communication module to support/generation3
barulicm Jun 18, 2025
bb98b6d
Adds ateam_radio_msgs package.
barulicm Jun 18, 2025
aaaf09e
Finishes drafting ateam_radio_msgs conversion code.
barulicm Jun 19, 2025
407c234
Changes ateam_radio_bridge to use ateam_radio_msgs.
barulicm Jun 19, 2025
fef8c23
Moves ateam_radio_bridge to radio folder.
barulicm Jun 19, 2025
3f62de5
Moves simulation radio bridge package to radio folder.
barulicm Jun 19, 2025
ebc0809
Switches kenobi to use ateam_radio_msgs.
barulicm Jun 19, 2025
b5d252d
Switches sim radio bridge to use ateam_radio_msgs.
barulicm Jun 19, 2025
28b2267
Sets missing fields in control packet.
barulicm Jun 22, 2025
8fa7bb1
Fixes parameter names
barulicm Jun 22, 2025
41b7ef7
WIP: Updating radio bridge tests.
barulicm Jun 22, 2025
027dbf6
Updates command test.
barulicm Jun 22, 2025
e2bf3d9
Updates comms submodule
barulicm Jun 22, 2025
21b57b5
Makes auto-generated message comments more specific.
barulicm Jun 22, 2025
1b0a4c8
Removes old comms submodule from .gitmodules
barulicm Jun 22, 2025
8010484
Removes log used for debugging.
barulicm Jun 22, 2025
dfb5134
Adds python-cloang to readme install instructions
barulicm Jun 22, 2025
833febe
Adds python-clang install to actions
barulicm Jun 22, 2025
d7a199e
Fixes feedback topic remaps in bringup physical
barulicm Jun 22, 2025
d3a6e4b
Merge remote-tracking branch 'origin/main' into dev/barulicm/auto_rad…
barulicm Jun 22, 2025
b290c4b
Adds yes flag to python clang apt install in actions.
barulicm Jun 22, 2025
94f4de9
Fixes linting setup in ateam_radio_msgs
barulicm Jun 22, 2025
91e1dfe
Fixes linting failures in sim radio bridge
barulicm Jun 22, 2025
c36fcb3
Fix linting complaint in kenobi
barulicm Jun 22, 2025
16ab5b2
Skips radio bridge tests in actions
barulicm Jun 23, 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
3 changes: 2 additions & 1 deletion .github/workflows/full_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
rosdep update --rosdistro=jazzy
rosdep install --from-paths . --ignore-src -y
./src/ateam_software/ateam_ui/install_deps.sh
sudo apt install -y python3-clang

- name: Build
shell: bash
Expand All @@ -35,5 +36,5 @@ jobs:
shell: bash
run: |
source /opt/ros/jazzy/setup.bash
colcon test --packages-skip ateam_ui ateam_spatial
colcon test --packages-skip ateam_ui ateam_spatial ateam_radio_bridge
colcon test-result --verbose
3 changes: 2 additions & 1 deletion .github/workflows/pr_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
rosdep update --rosdistro=jazzy
rosdep install --from-paths . --ignore-src -y
./src/ateam_software/ateam_ui/install_deps.sh
sudo apt install -y python3-clang

- name: Get Changed Packages
id: get-changed-packages
Expand All @@ -49,5 +50,5 @@ jobs:
shell: bash
run: |
source /opt/ros/jazzy/setup.bash
colcon test --packages-skip ateam_ui ateam_spatial --packages-select ${{ steps.get-changed-packages.outputs.changed-packages }}
colcon test --packages-skip ateam_ui ateam_spatial ateam_radio_bridge --packages-select ${{ steps.get-changed-packages.outputs.changed-packages }}
colcon test-result --verbose
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "ateam_radio_bridge/software-communication"]
path = ateam_radio_bridge/software-communication
url = https://github.com/SSL-A-Team/software-communication.git
[submodule "ssl_ros_bridge"]
path = ssl_ros_bridge
url = https://github.com/SSL-A-Team/ssl_ros_bridge.git
[submodule "radio/ateam_radio_msgs/software-communication"]
path = radio/ateam_radio_msgs/software-communication
url = https://github.com/SSL-A-Team/software-communication.git
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
source /opt/ros/jazzy/setup.bash
# In the ateam_ws directory
./src/software/ateam_ui/install_deps.sh

sudo apt install python3-clang
```
<!-- TODO(braulicm): Add custom rosdep keys file -->

1. Build the code

Expand Down
5 changes: 3 additions & 2 deletions ateam_bringup/launch/bringup_physical.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ def generate_launch_description():
respawn=True,
remappings=remap_indexed_topics([
('~/robot_motion_commands/robot', '/robot_motion_commands/robot'),
('~/robot_feedback/status/robot', '/robot_feedback/status/robot'),
('~/robot_feedback/motion/robot', '/robot_feedback/motion/robot')
('~/robot_feedback/basic/robot', '/robot_feedback/basic/robot'),
('~/robot_feedback/extended/robot', '/robot_feedback/extended/robot'),
('~/robot_feedback/connection/robot', '/robot_feedback/connection/robot')
]),
# prefix=['xterm -bg black -fg white -e gdb -ex run --args']
),
Expand Down
5 changes: 3 additions & 2 deletions ateam_common/include/ateam_common/topic_names.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ constexpr std::string_view kVisionMessages = "/vision_messages"; // Raw vision
constexpr std::string_view kRefereeMessages = "/referee_messages"; // Raw ref protobufs

// Input from robots
constexpr std::string_view kRobotFeedbackPrefix = "/robot_feedback/status/robot";
constexpr std::string_view kRobotMotionFeedbackPrefix = "/robot_feedback/motion/robot";
constexpr std::string_view kRobotFeedbackPrefix = "/robot_feedback/basic/robot";
constexpr std::string_view kRobotMotionFeedbackPrefix = "/robot_feedback/extended/robot";
constexpr std::string_view kRobotConnectionStatusPrefix = "/robot_feedback/connection/robot";

// Output from vision filter
constexpr std::string_view kBall = "/ball";
Expand Down
2 changes: 2 additions & 0 deletions ateam_kenobi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rclcpp_components REQUIRED)
find_package(ateam_msgs REQUIRED)
find_package(ateam_radio_msgs REQUIRED)
find_package(ateam_common REQUIRED)
find_package(tf2 REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)
Expand Down Expand Up @@ -117,6 +118,7 @@ ament_target_dependencies(
kenobi_node_component
"rclcpp"
"rclcpp_components"
"ateam_radio_msgs"
"ateam_msgs"
"ateam_common"
"tf2"
Expand Down
1 change: 1 addition & 0 deletions ateam_kenobi/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<depend>rclcpp</depend>
<depend>rclcpp_components</depend>
<depend>ateam_msgs</depend>
<depend>ateam_radio_msgs</depend>
<depend>ateam_common</depend>
<depend>tf2</depend>
<depend>tf2_geometry_msgs</depend>
Expand Down
26 changes: 21 additions & 5 deletions ateam_kenobi/src/kenobi_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
#include <rclcpp/rclcpp.hpp>
#include <rclcpp_components/register_node_macro.hpp>
#include <ateam_msgs/msg/ball_state.hpp>
#include <ateam_radio_msgs/msg/basic_telemetry.hpp>
#include <ateam_radio_msgs/msg/connection_status.hpp>
#include <ateam_msgs/msg/robot_state.hpp>
#include <ateam_msgs/msg/robot_feedback.hpp>
#include <ateam_msgs/msg/field_info.hpp>
#include <ateam_msgs/msg/robot_motion_command.hpp>
#include <ateam_msgs/msg/overlay.hpp>
Expand Down Expand Up @@ -99,13 +100,20 @@ class KenobiNode : public rclcpp::Node
&KenobiNode::yellow_robot_state_callback,
this);

create_indexed_subscribers<ateam_msgs::msg::RobotFeedback>(
create_indexed_subscribers<ateam_radio_msgs::msg::BasicTelemetry>(
robot_feedback_subscriptions_,
Topics::kRobotFeedbackPrefix,
10,
&KenobiNode::robot_feedback_callback,
this);

create_indexed_subscribers<ateam_radio_msgs::msg::ConnectionStatus>(
robot_connection_status_subscriptions_,
Topics::kRobotConnectionStatusPrefix,
10,
&KenobiNode::robot_connection_callback,
this);

create_indexed_publishers<ateam_msgs::msg::RobotMotionCommand>(
robot_commands_publishers_, Topics::kRobotMotionCommandPrefix,
rclcpp::SystemDefaultsQoS(), this);
Expand Down Expand Up @@ -177,8 +185,10 @@ class KenobiNode : public rclcpp::Node
16> blue_robots_subscriptions_;
std::array<rclcpp::Subscription<ateam_msgs::msg::RobotState>::SharedPtr,
16> yellow_robots_subscriptions_;
std::array<rclcpp::Subscription<ateam_msgs::msg::RobotFeedback>::SharedPtr,
std::array<rclcpp::Subscription<ateam_radio_msgs::msg::BasicTelemetry>::SharedPtr,
16> robot_feedback_subscriptions_;
std::array<rclcpp::Subscription<ateam_radio_msgs::msg::ConnectionStatus>::SharedPtr,
16> robot_connection_status_subscriptions_;
rclcpp::Subscription<ateam_msgs::msg::FieldInfo>::SharedPtr
field_subscription_;
std::array<rclcpp::Publisher<ateam_msgs::msg::RobotMotionCommand>::SharedPtr,
Expand Down Expand Up @@ -251,15 +261,21 @@ class KenobiNode : public rclcpp::Node
}

void robot_feedback_callback(
const ateam_msgs::msg::RobotFeedback::SharedPtr robot_feedback_msg,
const ateam_radio_msgs::msg::BasicTelemetry::SharedPtr robot_feedback_msg,
int id)
{
world_.our_robots.at(id).radio_connected = robot_feedback_msg->radio_connected;
world_.our_robots.at(id).breakbeam_ball_detected = robot_feedback_msg->breakbeam_ball_detected;
world_.our_robots.at(id).kicker_available = robot_feedback_msg->kicker_available;
world_.our_robots.at(id).chipper_available = robot_feedback_msg->chipper_available;
}

void robot_connection_callback(
const ateam_radio_msgs::msg::ConnectionStatus::SharedPtr robot_connection_msg,
int id)
{
world_.our_robots.at(id).radio_connected = robot_connection_msg->radio_connected;
}

void ball_state_callback(const ateam_msgs::msg::BallState::SharedPtr ball_state_msg)
{
world_.ball.visible = ball_state_msg->visible;
Expand Down
3 changes: 0 additions & 3 deletions ateam_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ rosidl_generate_interfaces(${PROJECT_NAME}
msg/Overlay.msg
msg/OverlayArray.msg
msg/RefereeInfo.msg
msg/RobotFeedback.msg
msg/RobotMotionCommand.msg
msg/RobotMotionFeedback.msg
msg/RobotMotorFeedback.msg
msg/RobotState.msg
msg/Sample3d.msg
msg/TeamClientConnectionStatus.msg
Expand Down
32 changes: 0 additions & 32 deletions ateam_msgs/msg/RobotFeedback.msg

This file was deleted.

16 changes: 0 additions & 16 deletions ateam_msgs/msg/RobotMotionFeedback.msg

This file was deleted.

31 changes: 0 additions & 31 deletions ateam_msgs/msg/RobotMotorFeedback.msg

This file was deleted.

1 change: 0 additions & 1 deletion ateam_radio_bridge/software-communication
Submodule software-communication deleted from 5c06b8
Loading