Operation mode manager implementation#656
Merged
Merged
Conversation
3 tasks
Andeshog
reviewed
Jan 8, 2026
Andeshog
reviewed
Jan 8, 2026
jorgenfj
requested changes
Jan 8, 2026
jorgenfj
left a comment
Contributor
There was a problem hiding this comment.
First round of review.
Consider splitting into header and source file, and move declarations into the header file.
Also use spdlog for logging instead of rclcpp. Spdlog gives more readable timestamps. You can look at the dp_adapt_backs_controller package for how to import and use spdlog.
Andeshog
reviewed
Jan 8, 2026
Andeshog
reviewed
Jan 9, 2026
Andeshog
reviewed
Jan 9, 2026
Andeshog
reviewed
Jan 9, 2026
Andeshog
reviewed
Jan 9, 2026
Andeshog
reviewed
Jan 9, 2026
Andeshog
reviewed
Jan 9, 2026
…nd added to all subscribers
jorgenfj
requested changes
Feb 12, 2026
jorgenfj
left a comment
Contributor
There was a problem hiding this comment.
Service names should be read from orca.yaml the same way topic are to ensure a single source of truth
2 tasks
jorgenfj
requested changes
Feb 18, 2026
| } catch (const std::exception& e) { | ||
| RCLCPP_ERROR(this->get_logger(), | ||
| "Failed to get operation mode: %s", e.what()); | ||
| killswitch_on_ = true; |
| } catch (const std::exception& e) { | ||
| RCLCPP_ERROR(this->get_logger(), | ||
| "Failed to get operation mode: %s", e.what()); | ||
| killswitch_on_ = true; |
Comment on lines
112
to
113
| RCLCPP_INFO(this->get_logger(), "Killswitch: %s", | ||
| killswitch_on_ ? "on" : "off"); |
Comment on lines
+119
to
+120
| RCLCPP_INFO(this->get_logger(), "Operation mode: %s", | ||
| vortex::utils::types::mode_to_string(operation_mode_).c_str()); |
Comment on lines
+13
to
+16
| RCLCPP_INFO( | ||
| this->get_logger(), | ||
| "Operation Mode Manager Node started. Initial mode: %s, Killswitch: %s", | ||
| mode_to_string(mode_).c_str(), killswitch_ ? "true" : "false"); |
Comment on lines
+102
to
+103
| RCLCPP_INFO(this->get_logger(), "Mode set to to %s", | ||
| mode_to_string(mode_).c_str()); |
Comment on lines
+116
to
+117
| RCLCPP_INFO(this->get_logger(), "Killswitch set to %s", | ||
| killswitch_ ? "true" : "false"); |
Comment on lines
+135
to
+136
| RCLCPP_INFO(this->get_logger(), "Killswitch set to %s", | ||
| killswitch_ ? "true" : "false"); |
|
🎉 This PR is included in version 2.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Added service node:
operation_mode_manager.cpp
Changed joystick interface to make use of the manager
Added Operation mode service request type, aswell as message type to use for the operation mode topic
Changed various dp controls to accomodate these changes.
Added operation mode manager to orca.launch.py
Also added operation mode to stonefish_sim in this pull request:
vortexntnu/vortex-stonefish-sim#18