-
Notifications
You must be signed in to change notification settings - Fork 93
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
enable to cleanly quit from the program when audio is enabled #61
Conversation
without this |
Hi Does this really fix your issue ? I am a little skeptical. When I enable tactile and/or bumper, the bridge ends up like this: And after 6 or 7 tries, I get your issue, because the camera subscribers are not properly cleaned. |
No,we also just realized this does not fixes the issue #57, but without this, we could not kill the naoqi_driver
|
and you're correct, even we have this, we still have some error on termination process,
|
k-okada@1f7efa0 may fix the bumper/tactile terminatiion problem. |
Yes your last commit should fix it ! About the audio I am not sure this works. Can you check it is still working ? Looking at the code, calling subscribe and then setClientPreferences should stop the audio transmission. |
yes, we need to call subscribe first to prevent the error... |
we can see following message on the exit, and which was
|
And do you still receive audio buffer on /naoqi_driver_node/audio ? |
ooh not it did not publish |
Not yet :) |
BTW which version of naoqi do you use ? |
I'm using default version installed by ros-indigo
|
just for memo, following code seems better than before...
|
Hum I'll study this change. And the naoqi version on the robot (for audio it matters) ? |
naoqi version on the robot is 2.4.2.26 |
may be much better. I suspect it is the problem of mutex is failing to unlock when C-C is pressed. |
Something like that you are right. I guess AudioDevice waits for the callback to return before unsubscribing naoqi_driver, leading to this deadlock. Removing the mutex in the stopProcess will indeed solve the issue but I'm afraid it might induce crashes of naoqi if it is not enough protected. I'll check that on Monday. If it is not safe then we will probably need something more complex. |
#62 is ok for me, thanks ◉ Kei Okada On Wed, Feb 3, 2016 at 4:41 AM, Surya Ambrose notifications@github.com
|
And I've just released new version as 0.5.7 |
thx ! that should be a pretty solid version. |
see discussion #57