Skip to content

Ros2 devel#69

Merged
jondave merged 2 commits intomasterfrom
ros2-devel
Dec 1, 2025
Merged

Ros2 devel#69
jondave merged 2 commits intomasterfrom
ros2-devel

Conversation

@jondave
Copy link

@jondave jondave commented Dec 1, 2025

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Related Tickets & Documents

  • Related Issue #
  • Closes #

QA Instructions, Screenshots, Recordings

Please replace this line with instructions on how to test your changes.

[optional] Are there any post deployment tasks we need to perform?

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR transitions the Sentor monitoring system from test/example configurations using generic chatter topics to a production-ready configuration monitoring the Hunter robot's status. The changes include updating the topic monitor configuration to track the /hunter_status topic with battery voltage checks, and removing the RobotStateMachine submodule from the repository.

  • Replaced test chatter topic monitors with Hunter robot status monitoring
  • Added battery voltage validation lambda (≥20.0V threshold)
  • Removed RobotStateMachine submodule reference

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/sentor/config/test_monitor_config.yaml Updated monitor configuration from test chatter topics to Hunter robot status topic with battery voltage monitoring
src/RobotStateMachine Removed submodule commit reference (submodule deletion)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +78 to +79
- name: "/hunter_status"
message_type: "hunter_msgs/msg/HunterStatus"
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hunter_msgs package is not listed as a dependency in package.xml. This configuration references hunter_msgs/msg/HunterStatus, but the package doesn't declare hunter_msgs as an exec_depend. This will cause runtime failures when the sentor node attempts to subscribe to this topic.

To fix this, add the following to src/sentor/package.xml:

<exec_depend>hunter_msgs</exec_depend>

Copilot uses AI. Check for mistakes.
tags: ["resolution"]
safety_critical: false
autonomy_critical: false
process_indices: [2] # Optional
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The process_indices field references index [2], but the execute list on line 100 is empty. This means there's no process at index 2 to execute when the lambda condition is met. Either remove process_indices: [2] or add appropriate processes to the execute list.

Suggested change
process_indices: [2] # Optional

Copilot uses AI. Check for mistakes.
@@ -90,43 +90,13 @@ monitors: #[]
safety_critical: true # ← leave false if this “published” check shouldn’t gate safety‐beat
autonomy_critical: true # ← set true if you want mere “published” to gate warning‐beat
signal_lambdas:
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The lambda expression assumes battery_voltage is a valid attribute of HunterStatus. It would be helpful to add a comment documenting the expected message structure or verifying that battery_voltage is indeed a field in hunter_msgs/msg/HunterStatus, especially since this is a test configuration that may serve as documentation for other developers.

For example:

# Checks that battery voltage is at least 20.0V (HunterStatus.battery_voltage field)
- expression: "lambda data: data.battery_voltage >= 20.0"
Suggested change
signal_lambdas:
signal_lambdas:
# Checks that battery voltage is at least 20.0V (HunterStatus.battery_voltage field)

Copilot uses AI. Check for mistakes.
@jondave jondave merged commit a705eb6 into master Dec 1, 2025
8 checks passed
@marc-hanheide marc-hanheide deleted the ros2-devel branch December 2, 2025 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants