Skip to content

Rework executor callback data#50

Merged
irobot-ros merged 7 commits intoirobot-ros:irobot/add-events-executorfrom
mauropasse:mauro/group-callback-data
Mar 11, 2021
Merged

Rework executor callback data#50
irobot-ros merged 7 commits intoirobot-ros:irobot/add-events-executorfrom
mauropasse:mauro/group-callback-data

Conversation

@mauropasse
Copy link
Copy Markdown
Collaborator

Group callback data types under a single struct:

struct 
{
  entity_id;      
  executor_ptr;    
  event_type;
}

A void * of this struct is passed down from rclcpp to the rmw, and is used as argument for the listeners callback.

The executor cast it back and uses it to push the correspoding event to the queue.

@irobot-ros irobot-ros merged commit 0d50b6c into irobot-ros:irobot/add-events-executor Mar 11, 2021
@mauropasse mauropasse deleted the mauro/group-callback-data branch April 9, 2021 13:36
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