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

draw over ranged data #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

furushchev
Copy link

Currently, rqt_plot does not plot over ranged data in an array.
For example, with the message like below:

float32[] data

and when I set the first and second index of the data as plotted topics

screenshot from 2018-10-05 23-16-13

rostopic pub -s -r 1 /pub_topic "data: [30]"

rqt_plot shows the first data.

And then if I publish data which contains 2 float data like below:

rostopic pub -s -r 1 /pub_topic "data: [30, 50]"

The data /pub_topic/data[1] is never plotted.

This pull request fixes this error.
With this pull request, rqt_plot immediately draws whenever the data is available.

screenshot from 2018-10-05 23-18-09

else:
for f in self.field_evals:
val = f(val)
self.error = None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the error should be reset in the _ros_cb method after acquiring the lock instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dirk-thomas Thank you for the comment! Updated the commit.

@furushchev
Copy link
Author

Resolved conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants