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

Error in destruction of rcl subscription handle: Failed to delete datareader #305

Open
FeetPro opened this issue Apr 23, 2024 · 2 comments

Comments

@FeetPro
Copy link

FeetPro commented Apr 23, 2024

Hello, I got some problems in sending command to gripper.
My gripper is shown successfully in gazebo with command:
ros2 launch gazebo_ros2_control_demos gripper_mimic_joint_example.launch.py
But when i send command to move the gripper in other terminal:
ros2 run gazebo_ros2_control_demos example_gripper
It appears error:

cannot publish data, at ./src/rmw_publish.cpp:62 during '__function__'
[ERROR] [1713850255.212319171] [gripper_test_node.rclcpp]: Error in destruction of rcl subscription handle: Failed to delete datareader, at ./src/subscription.cpp:52, at ./src/rcl/subscription.c:184
cannot publish data, at ./src/rmw_publish.cpp:62 during '__function__'
Fail in delete datareader, at ./src/rmw_service.cpp:104 during '__function__'
[ros2run]: Segmentation fault

how can i fix this?
I use Ros2 Humble and Ubuntu 22.04,
Thanks.

@christophfroehlich
Copy link
Contributor

This is a quick-and-dirty design of the example_gripper executable. It publishes the topics but does not exit cleanly. Check with ros2 topic echo /gripper_controller/commands, you'll receive the commands and the gripper should move.

@gavanderhoorn
Copy link

Errors remind me of ros2/rclcpp#1766. This got 'fixed' in ros2/rmw_fastrtps#770, which unfortunately won't get backported.

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

3 participants