Closed
Conversation
…ods of move_group_interface - Reimplemented getPlannerParams, setPlannerParams, getInterfaceDescription, getInterfaceDescriptions, plan, execute, move and computeCartesianPath methods of move_group_interface using rclcpp's own api - Removed callback_thread_
…rmw_wait issues of rmw_zenoh - Changed move_group server's executor as SingleThreadedExecutor - Added event_topic_subsciber to different executor
CihatAltiparmak
commented
Jun 24, 2024
| RCLCPP_INFO(nh->get_logger(), "MoveGroup debug mode is OFF"); | ||
| } | ||
|
|
||
| rclcpp::executors::MultiThreadedExecutor executor; |
Member
Author
There was a problem hiding this comment.
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.
Comment on lines
+196
to
+202
| 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()); |
Member
Author
There was a problem hiding this comment.
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.
4 tasks
Member
Author
|
It's not necessary anymore. rmw_zenoh is able to run with MultiThreadedExecutor now . Closing. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
I made a few modifications for MoveIt to be able to run with rmw_zenoh middleware implementation. This is experimental PR and should not be merged. It seems this modifications works well with rmw_zenoh. We have actually just changed below (see my reviews) parts. I also added this PR's commits. By the way i don't know how these changes affect MoveIt execution flow. I am still investigating.
Checklist