Skip to content

Commit 89805ab

Browse files
Mauro Passerinomergify-bot
authored andcommitted
Address PR comments
Signed-off-by: Mauro Passerino <mpasserino@irobot.com>
1 parent a2d0f15 commit 89805ab

12 files changed

Lines changed: 15 additions & 16 deletions

File tree

rclcpp/include/rclcpp/detail/add_guard_condition_to_rcl_wait_set.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ namespace detail
2424

2525
/// Adds the guard condition to a waitset
2626
/**
27-
* This function is thread-safe.
2827
* \param[in] wait_set reference to a wait set where to add the guard condition
2928
* \param[in] guard_condition reference to the guard_condition to be added
3029
*/

rclcpp/src/rclcpp/node_interfaces/node_base.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ NodeBase::get_notify_guard_condition()
247247
{
248248
std::lock_guard<std::recursive_mutex> notify_condition_lock(notify_guard_condition_mutex_);
249249
if (!notify_guard_condition_is_valid_) {
250-
throw std::runtime_error("Trying to get invalid notify guard condition");
250+
throw std::runtime_error("failed to get notify guard condition because it is invalid");
251251
}
252252
return notify_guard_condition_;
253253
}

rclcpp/src/rclcpp/node_interfaces/node_graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ NodeGraph::notify_graph_change()
538538
node_gc.trigger();
539539
} catch (const rclcpp::exceptions::RCLError & ex) {
540540
throw std::runtime_error(
541-
std::string("Failed to notify wait set on graph change: ") + ex.what());
541+
std::string("failed to notify wait set on graph change: ") + ex.what());
542542
}
543543
}
544544

rclcpp/src/rclcpp/node_interfaces/node_services.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ NodeServices::add_service(
4646
node_gc.trigger();
4747
} catch (const rclcpp::exceptions::RCLError & ex) {
4848
throw std::runtime_error(
49-
std::string("Failed to notify wait set on service creation: ") + ex.what());
49+
std::string("failed to notify wait set on service creation: ") + ex.what());
5050
}
5151
}
5252

@@ -71,7 +71,7 @@ NodeServices::add_client(
7171
node_gc.trigger();
7272
} catch (const rclcpp::exceptions::RCLError & ex) {
7373
throw std::runtime_error(
74-
std::string("Failed to notify wait set on client creation: ") + ex.what());
74+
std::string("failed to notify wait set on client creation: ") + ex.what());
7575
}
7676
}
7777

rclcpp/src/rclcpp/node_interfaces/node_timers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ NodeTimers::add_timer(
4747
node_gc.trigger();
4848
} catch (const rclcpp::exceptions::RCLError & ex) {
4949
throw std::runtime_error(
50-
std::string("Failed to notify wait set on timer creation: ") + ex.what());
50+
std::string("failed to notify wait set on timer creation: ") + ex.what());
5151
}
5252

5353
TRACEPOINT(

rclcpp/src/rclcpp/node_interfaces/node_topics.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ NodeTopics::add_publisher(
6565
node_gc.trigger();
6666
} catch (const rclcpp::exceptions::RCLError & ex) {
6767
throw std::runtime_error(
68-
std::string("Failed to notify wait set on publisher creation: ") + ex.what());
68+
std::string("failed to notify wait set on publisher creation: ") + ex.what());
6969
}
7070
}
7171

@@ -112,7 +112,7 @@ NodeTopics::add_subscription(
112112
node_gc.trigger();
113113
} catch (const rclcpp::exceptions::RCLError & ex) {
114114
throw std::runtime_error(
115-
std::string("Failed to notify wait set on subscription creation: ") + ex.what());
115+
std::string("failed to notify wait set on subscription creation: ") + ex.what());
116116
}
117117
}
118118

rclcpp/src/rclcpp/node_interfaces/node_waitables.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ NodeWaitables::add_waitable(
4646
node_gc.trigger();
4747
} catch (const rclcpp::exceptions::RCLError & ex) {
4848
throw std::runtime_error(
49-
std::string("Failed to notify wait set on waitable creation: ") + ex.what());
49+
std::string("failed to notify wait set on waitable creation: ") + ex.what());
5050
}
5151
}
5252

rclcpp/test/rclcpp/node_interfaces/test_node_graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ TEST_F(TestNodeGraph, notify_graph_change_rcl_error)
558558
"lib:rclcpp", rcl_trigger_guard_condition, RCL_RET_ERROR);
559559
RCLCPP_EXPECT_THROW_EQ(
560560
node()->get_node_graph_interface()->notify_graph_change(),
561-
std::runtime_error("Failed to notify wait set on graph change: error not set"));
561+
std::runtime_error("failed to notify wait set on graph change: error not set"));
562562
}
563563

564564
TEST_F(TestNodeGraph, get_info_by_topic)

rclcpp/test/rclcpp/node_interfaces/test_node_services.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ TEST_F(TestNodeService, add_service_rcl_trigger_guard_condition_error)
103103
"lib:rclcpp", rcl_trigger_guard_condition, RCL_RET_ERROR);
104104
RCLCPP_EXPECT_THROW_EQ(
105105
node_services->add_service(service, callback_group),
106-
std::runtime_error("Failed to notify wait set on service creation: error not set"));
106+
std::runtime_error("failed to notify wait set on service creation: error not set"));
107107
}
108108

109109
TEST_F(TestNodeService, add_client)
@@ -130,7 +130,7 @@ TEST_F(TestNodeService, add_client_rcl_trigger_guard_condition_error)
130130
"lib:rclcpp", rcl_trigger_guard_condition, RCL_RET_ERROR);
131131
RCLCPP_EXPECT_THROW_EQ(
132132
node_services->add_client(client, callback_group),
133-
std::runtime_error("Failed to notify wait set on client creation: error not set"));
133+
std::runtime_error("failed to notify wait set on client creation: error not set"));
134134
}
135135

136136
TEST_F(TestNodeService, resolve_service_name)

rclcpp/test/rclcpp/node_interfaces/test_node_timers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ TEST_F(TestNodeTimers, add_timer_rcl_trigger_guard_condition_error)
8787
"lib:rclcpp", rcl_trigger_guard_condition, RCL_RET_ERROR);
8888
RCLCPP_EXPECT_THROW_EQ(
8989
node_timers->add_timer(timer, callback_group),
90-
std::runtime_error("Failed to notify wait set on timer creation: error not set"));
90+
std::runtime_error("failed to notify wait set on timer creation: error not set"));
9191
}

0 commit comments

Comments
 (0)