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

Update display if empty pointcloud2 is published #1073

Merged
merged 1 commit into from
Apr 29, 2017
Merged

Update display if empty pointcloud2 is published #1073

merged 1 commit into from
Apr 29, 2017

Conversation

axelschroth
Copy link
Contributor

Currently, a PointCloud2 display keeps showing the old point cloud if an empty point cloud message is published. I consider this a bug, since rviz still shows old data which is invalid in the meantime.

Do not show last point cloud any more, if published point cloud message does not contain any points
@wjwwood
Copy link
Member

wjwwood commented Jan 9, 2017

Thanks for the report and pr, I'll investigate it asap. If you have time to provide it, a simple bag file that reproduces the problem would make it easier for me to test this.

As you can imagine, this is sensitive code (a break in this code would affect a lot of users), so I'll have to be quite cautious with it. If any other point cloud users can +1/-1 this I would appreciate it too.

@wjwwood wjwwood self-requested a review January 9, 2017 21:38
@wjwwood wjwwood added the bug label Jan 9, 2017
@axelschroth
Copy link
Contributor Author

Sure, attached you will find a bag publishing some points on /point_cloud followed by an empty point cloud.

test_pointcloud_2017-01-10-10-20-10.bag.zip

@wjwwood
Copy link
Member

wjwwood commented Apr 29, 2017

Sorry it took me so long to get back to you. I've reproduced what you've described and that your patch fixes it. Thanks for giving a clear description and a reproducible bag, makes my job a lot easier 😄!

I'll still do a code review before merging, but it's looking good so far.

Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

lgtm

@wjwwood wjwwood merged commit 54a1e95 into ros-visualization:kinetic-devel Apr 29, 2017
wjwwood pushed a commit that referenced this pull request Jun 5, 2017
Do not show last point cloud any more, if published point cloud message does not contain any points
@wjwwood
Copy link
Member

wjwwood commented Jun 5, 2017

Backported in #1110

wjwwood added a commit that referenced this pull request Jun 5, 2017
* Add fullscreen option. (#1017)

* urdfdom compatibility (#1064)

* Use urdf::*ShredPtr instead of boost::shared_ptr (#1044)

urdfdom_headers uses C++ std::shared_ptr. As it exports it as custom
*SharedPtr type, we can use the to sty compatible.

This also adds a proper dependency for urdfdom-headers

* adaptions to build against both urdfdom 0.3 and 0.4

... relying on the compatibility layer of urdf package

* Update display if empty pointcloud2 is published (#1073)

Do not show last point cloud any more, if published point cloud message does not contain any points

* Correctly scale the render panel on high resolution displays (#1078)

* support multiple material for one link (#1079)

* Fixed duplicate property name for Path colors (#1089)

See issue #1087.

* fix type error in newer versions of urdf (#1098)

* Use unique material names for robot links. (#1102)

* avoid C++11 feature for back port to indigo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants