Skip to content

Commit

Permalink
fix(controllers): trigger check (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
domire8 authored Nov 6, 2024
1 parent 70c35e3 commit 20ca350
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Release Versions:
## Upcoming changes (in development)

- fix(controllers): change predicate rate to double type (#163)
- fix(controllers): trigger check (#164)

## 5.0.1

Expand Down
2 changes: 1 addition & 1 deletion source/modulo_controllers/src/BaseControllerInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ void BaseControllerInterface::add_trigger(const std::string& trigger_name) {
}

void BaseControllerInterface::trigger(const std::string& trigger_name) {
if (std::find(triggers_.cbegin(), triggers_.cend(), trigger_name) != triggers_.cend()) {
if (std::find(triggers_.cbegin(), triggers_.cend(), trigger_name) == triggers_.cend()) {
RCLCPP_ERROR(
get_node()->get_logger(), "Failed to trigger: could not find trigger with name '%s'.", trigger_name.c_str());
return;
Expand Down

0 comments on commit 20ca350

Please sign in to comment.