-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zenoh Integration To MoveIt #2879
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8b34466
Reimplemented server response-waiting functionalities inside the meth…
CihatAltiparmak 2868bdc
Merge branch 'main' into fix/move_group_interface_response_waiting_im…
sjahr e928b16
Merge branch 'main' into fix/move_group_interface_response_waiting_im…
CihatAltiparmak 9586346
Make private node name inside move_group_interface anoynmous
CihatAltiparmak 2a5c382
Removed pnode_ again and deleted unnecessary if conditions
CihatAltiparmak db86507
Undone the deleted comment with a little modification
CihatAltiparmak 7988cc2
Changed MultiThreadedExecutor with SingleThreadedExecutor because of …
CihatAltiparmak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,12 +193,13 @@ void TrajectoryExecutionManager::initialize() | |
// The default callback group for rclcpp::Node is MutuallyExclusive which means we cannot call | ||
// receiveEvent while processing a different callback. To fix this we create a new callback group (the type is not | ||
// important since we only use it to process one callback) and associate event_topic_subscriber_ with this callback group | ||
auto callback_group = node_->create_callback_group(rclcpp::CallbackGroupType::MutuallyExclusive); | ||
auto callback_group = node_->create_callback_group(rclcpp::CallbackGroupType::MutuallyExclusive, false); | ||
auto options = rclcpp::SubscriptionOptions(); | ||
options.callback_group = callback_group; | ||
event_topic_subscriber_ = node_->create_subscription<std_msgs::msg::String>( | ||
EXECUTION_EVENT_TOPIC, rclcpp::SystemDefaultsQoS(), | ||
[this](const std_msgs::msg::String::ConstSharedPtr& event) { return receiveEvent(event); }, options); | ||
private_executor_->add_callback_group(callback_group, node_->get_node_base_interface()); | ||
Comment on lines
+196
to
+202
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added this callback group to private_executor that also spins control_manager node so that event_topic_subscriber receives callback to stop trajectory execution. Shortly, it seems MultiThreadedExecutor in MoveIt's default implementation is just for spinning this subscription. |
||
|
||
controller_mgr_node_->get_parameter("trajectory_execution.execution_duration_monitoring", | ||
execution_duration_monitoring_); | ||
|
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have modified this part due to the fact that rmw_wait function of rmw_zenoh still has some problems. We must use SingleThreadedExecutor at the moment.