Skip to content

Commit fd6bc9b

Browse files
author
Jeffery Hsu
committed
Specifically specify callback signature
fix another missing callback
1 parent bcebcfb commit fd6bc9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

irobot_events_executor/src/rclcpp/executors/events_executor/events_executor_entities_collector.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ std::function<void(size_t)>
389389
EventsExecutorEntitiesCollector::create_entity_callback(
390390
void * exec_entity_id, ExecutorEventType event_type)
391391
{
392-
auto callback = [this, exec_entity_id, event_type](size_t num_events) {
392+
std::function<void(size_t)> callback = [this, exec_entity_id, event_type](size_t num_events) {
393393
ExecutorEvent event = {exec_entity_id, -1, event_type, num_events};
394394
associated_executor_->events_queue_->enqueue(event);
395395
};
@@ -399,7 +399,7 @@ EventsExecutorEntitiesCollector::create_entity_callback(
399399
std::function<void(size_t, int)>
400400
EventsExecutorEntitiesCollector::create_waitable_callback(void * exec_entity_id)
401401
{
402-
auto callback = [this, exec_entity_id](size_t num_events, int gen_entity_id) {
402+
std::function<void(size_t, int)> callback = [this, exec_entity_id](size_t num_events, int gen_entity_id) {
403403
ExecutorEvent event =
404404
{exec_entity_id, gen_entity_id, ExecutorEventType::WAITABLE_EVENT, num_events};
405405
associated_executor_->events_queue_->enqueue(event);

0 commit comments

Comments
 (0)