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

fixing late dynamic_reconfigure initialization #8

Merged
merged 1 commit into from
Jan 23, 2013

Conversation

jkammerl
Copy link
Member

nodelet/driver.cpp:

important globals such as the image width and height are initialized within the config callback triggered by dynamic_reconfigure. During initialization of dynamic_reconfigure, this callback is executed in order to provide the default configuration.

Interestingly, the initialization of dynamic_reconfigure takes place within a separate thread (and not within the constructor). If a subscriber already connects during start-up to the image_raw publisher, the initialization thread might not be ready yet and width&height defined within the dynamic_reconfigure callback is undefined (leading to a crash of the nodelet manager).

jonbinney pushed a commit that referenced this pull request Jan 23, 2013
fixing late dynamic_reconfigure initialization
@jonbinney jonbinney merged commit e2b3773 into ros-drivers:groovy-devel Jan 23, 2013
stwirth pushed a commit to stwirth/openni_camera that referenced this pull request Dec 9, 2014
Attempt to fix invalid image_transport::CameraPublisher crashes during start-up.
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