Skip to content
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

motion_planning_api_tutorial not running #540

Closed
LucaBross opened this issue Nov 4, 2022 · 1 comment
Closed

motion_planning_api_tutorial not running #540

LucaBross opened this issue Nov 4, 2022 · 1 comment

Comments

@LucaBross
Copy link

Description

motion_planning_api_tutorial getting stuck when trying to run it

Your environment

  • ROS Distro: Humble
  • OS Version: Ubuntu 22.04
  • Source

Steps to reproduce

start ros2 launch moveit2_tutorials move_group.launch.py
then ros2 launch moveit2_tutorials move_group_interface_tutorial.launch.py
-->RViz pops up, text: MOveGroupInterface_Demo appears in RViz
press Next
-->the PlannedPath moves to the destination
then the Script gets stuck
further pressing Next dosent work

Backtrace or Console output

my Console output can be found here:
https://gist.github.com/LucaBross/8cf8f8c69cfc4712bd201f82b11fcc30

the last Console output before nothing happens anymore is

[move_group-4] [INFO] [1667555423.385853725] [moveit_move_group_default_capabilities.move_action_capability]: Motion plan was computed successfully.
[move_group_interface_tutorial-1] [INFO] [1667555423.318970902] [move_group_interface]: MoveGroup action client/server ready

@LucaBross
Copy link
Author

LucaBross commented Nov 5, 2022

I think this issue relates to this one: moveit/moveit2#1474
Moving the MGI initialization before the SingleThreadedExecutor should solve it.

  moveit::planning_interface::MoveGroupInterface move_group_interface(node, "panda_arm");

  rclcpp::executors::SingleThreadedExecutor executor;
  executor.add_node(node);
  auto spinner = std::thread([&executor]() { executor.spin(); });

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

No branches or pull requests

1 participant