moveit2 icon indicating copy to clipboard operation
moveit2 copied to clipboard

Getting error with MoveItPy on shutdown -- cannot publish data -- Fail in delete datareader

Open dsandber opened this issue 2 years ago • 4 comments

Description

A simple program like this:

    rclpy.init()
    panda = MoveItPy(node_name="moveit_py")
    panda.shutdown()
    rclpy.shutdown()

Gives this error on shut-down:

[motion_planning_python_api_tutorial.py-1] cannot publish data, at ./src/rmw_publish.cpp:62 during '__function__'
[motion_planning_python_api_tutorial.py-1] Fail in delete datareader, at ./src/rmw_service.cpp:100 during '__function__'
[ERROR] [motion_planning_python_api_tutorial.py-1]: process has died [pid 987728, exit code -11, cmd '/home/dan/yorc/arm-ros/install/moveit2_tutorials/lib/moveit2_tutorials/motion_planning_python_api_tutorial.py --ros-args -r __node:=moveit_py --params-file /tmp/launch_params_w2kpnvnn']

MoveItPy created node not shutting down properly? I've tried adding sleeps in between the statements to check for a race condition but it didn't help.

Your environment

  • ROS Distro: Iron
  • OS Version: Ubuntu 22.04
  • Source, main branch
  • Which RMW (Fast DDS or Cyclone DDS)? Humble or Rolling should be using Cyclone.

eProsima Fast DDS (the default for the Ubuntu packages for Iron)

dsandber avatar Feb 19 '24 16:02 dsandber

This issue is being labeled as stale because it has been open 45 days with no activity. It will be automatically closed after another 45 days without follow-ups.

github-actions[bot] avatar Apr 12 '24 12:04 github-actions[bot]

This issue was closed because it has been stalled for 45 days with no activity.

github-actions[bot] avatar May 28 '24 12:05 github-actions[bot]

This is still an issue and I'm curious for a solution.

rhaschke avatar May 28 '24 14:05 rhaschke

This issue is being labeled as stale because it has been open 45 days with no activity. It will be automatically closed after another 45 days without follow-ups.

github-actions[bot] avatar Jul 15 '24 12:07 github-actions[bot]