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

Removing an element of a MultiArray doesn't actually remove it from being published #18

Open
felixduvallet opened this issue Apr 6, 2016 · 0 comments

Comments

@felixduvallet
Copy link
Contributor

(I found this to be unexpected behavior when testing your fix for #17 , but this could just be a Garbage In -> Garbage Out problem. Feel free to close as wontfix.)

When publishing a MultiArray topic, removing an element in the GUI doesn't actually remove it from being published on the topic.

For example,

  • Publish a MultiArrayFoo with one element -> len(data) = 1
  • Add an additional element -> len(data) = 2
  • Remove element data[1] -> len(data) = 2 still (I would have expected 1), and the last stored value gets published in data[1].

On a related note, removing an element that is not the last (e.g., data[1] with 3 elements) also keeps publishing the last stored value in data[1]. Perhaps setting the value to zero could be more intuitive.

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

No branches or pull requests

1 participant