-
Notifications
You must be signed in to change notification settings - Fork 543
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
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
@@ -309,7 +309,7 @@ int main(int argc, char** argv) | |||
RCLCPP_INFO(nh->get_logger(), "MoveGroup debug mode is OFF"); | |||
} | |||
|
|||
rclcpp::executors::MultiThreadedExecutor executor; |
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.
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()); |
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.
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.
It's not necessary anymore. rmw_zenoh is able to run with MultiThreadedExecutor now . Closing. |
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