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

Fixed crash due to already declared parameters #37

Closed
wants to merge 1 commit into from

Conversation

FranzAlbers
Copy link

@FranzAlbers FranzAlbers commented Dec 11, 2023

When rviz2 is used with the current PR to display draco compressed point clouds (ros2/rviz#1008), rviz2 crashes when more than one draco subscriber is initialized, because the SkipQuantization parameters are already declared (as mentioned here: ros2/rviz#1008 (comment)).

The crash can be reproduced by using the PR mentioned above and adding two PointCloud2 displays in rviz2 subscribing to topics ending on "/draco" (e.g. /points1/draco and /points2/draco). The pointclouds don't need to be published.

This PR adds a simple try-catch block around the declare_parameters statements to avoid the crash.

@ahcorde
Copy link
Collaborator

ahcorde commented Dec 11, 2023

Closing this PR but openning this other PR ros-perception/point_cloud_transport#43 which creates the proper fix

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

Successfully merging this pull request may close these issues.

2 participants