-
Notifications
You must be signed in to change notification settings - Fork 911
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
rostopic echo of array indices fails #480
Comments
I'm able to reproduce this with the |
Please try #481 and check if it also fixes the problem you have with rqt_plot. |
I'm not near my Indigo machine at the moment; I'll try to test this when I get home tonight. |
Confirmed; this fixes rostopic echo for array members, and rqt_plot for the same cases, although I do get some rather ugly stacktraces whlie typing that don't happen in the hydro version:
|
What exactly did you try when you got the stack trace? From the assertion it looks like you passed a topic name with an open bracket but without a closing one. |
Yep. I got that stack while typing the full topic name. |
Can you please post a reproducible example? |
I used the topic entry box to interactively select the topic in question, using the With the test_pub.py node running, run |
So rqt_plot is calling the API with an invalid topic name. Before it was silently ignored - now it prints the assertion. Do you want to modify rqt_plot to not call the API with temporary (invalid) user input? Or should I change the patch to silently ignore invalid input again? |
rqt_plot is calling get_topic_type to determine what is and is not a valid topic/field name. The previous version of get_topic_type handled this by returning I don't expect to modify rqt_plot so that it doesn't call get_topic_type with an invalid topic name. I think it makes sense to wrap the call to get_topic_type in rqt_plot with a try/catch so that this error |
Sorry, but the last two paragraphs seem to contradict each other:
I have modified the pull request to not change API behavior - for an invalid topic it will return |
This is part of the root cause for ros-visualization/rqt_common_plugins#261
When publishing an array message (on topic
/array
):rostopic echo /array/values[0]
fails, butrostopic echo /array/values
succeeds.This worked on Hydro, and fails on Indigo. It looks like the underlying bug here is a change somewhere in rostopic's
_get_topic_type()
The text was updated successfully, but these errors were encountered: