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
Fix audio to spectrogram plot and add test #2764
Fix audio to spectrogram plot and add test #2764
Conversation
import cv_bridge | ||
from dynamic_reconfigure.server import Server | ||
from jsk_topic_tools import ConnectionBasedTransport | ||
import matplotlib | ||
matplotlib.use('Agg') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iory please add code to check version of matlab and display warning if it is not apt installed one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
be635ab
Thank you. I added warning code for users.
oneshot=False, | ||
) | ||
if (LooseVersion(pkg_resources.get_distribution('rospy').version) >= | ||
LooseVersion('1.12.0')): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about add checking use_sim_time
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
85af1af
I added code to check use_sim_time
cd5df7b
to
02002ab
Compare
02002ab
to
be635ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirmed this PR works with apt-version matplotlib (2.1.1).
I also confirmed this works with pip-version matplotlib (2.2.5) and prints warning messages as intended.
Just FYI:
The latter is slower than the former even though both of them use Agg
, not default TkAgg
.
So when the apt-version matplotlib is updated in the future, we will face slowing down.
But I think this is not a problem because slowing down is not so big.
See #2759 (comment) for more detail.
What is this?
This change is by defaulting to Agg as the backend for matplotlib.
See #2759