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

How to visualize both a Point Cloud and Octomap? #91

Open
Levi-Armstrong opened this issue May 30, 2020 · 7 comments
Open

How to visualize both a Point Cloud and Octomap? #91

Levi-Armstrong opened this issue May 30, 2020 · 7 comments

Comments

@Levi-Armstrong
Copy link
Contributor

Levi-Armstrong commented May 30, 2020

I am interested to learn how to visualize a Point Cloud and Octomap in Ignition Rendering. I am currently using a depth sensor in ignition to generating a point cloud and I currently publish it for visualization in Rviz. I have an application built using Ignition GUI and if possible I would like to visualize the information in the ignition scene.

@Levi-Armstrong
Copy link
Contributor Author

It looks like I may be able to leverage the scene marker which supports points, but need to test. Still looking into how best to visualize an Octomap.

@iche033
Copy link
Contributor

iche033 commented Jun 1, 2020

for now you may be able to visualize point clouds by publishing to the marker topic like in the marker example in ign-gazebo.

We just started a GOSC project to create a lidar visual (issue #84) in ign-rendering and may extend to point cloud visualization if there is time in the end, cc @mihirk284

@Levi-Armstrong
Copy link
Contributor Author

I will hold of on the point cloud visual and track issue #84 to avoid duplicating work.

Though I could look at the Octomap. Would your preferred approach be similar to issue #84 for the octomap? I could begin working on an OctomapVisual.

@iche033
Copy link
Contributor

iche033 commented Jun 5, 2020

Though I could look at the Octomap. Would your preferred approach be similar to issue #84 for the octomap? I could begin working on an OctomapVisual.

yeah that'd would be great, thanks! I have not looked at rviz's implementation to see how it's done but it looks the visualization just consists of colored cubes. Hopefully it'll be straightforward.

@Levi-Armstrong
Copy link
Contributor Author

yeah that'd would be great, thanks! I have not looked at rviz's implementation to see how it's done but it looks the visualization just consists of colored cubes. Hopefully it'll be straightforward.

That is what I am thinking. I hope I can use what is in rviz and integrating into the ogre1 and ogre2.

@Levi-Armstrong
Copy link
Contributor Author

I just now getting back to revisiting this. @iche033 Has any progress been made on visualizing point clouds or octomaps?

@iche033
Copy link
Contributor

iche033 commented Jul 12, 2023

We now have a LidarVisual class for visualizing lidar point clouds. The ogre2 implementation is here: https://github.com/gazebosim/gz-rendering/blob/gz-rendering7/ogre2/src/Ogre2LidarVisual.cc.

There is a gui plugin in gz-sim that essentially subscribes to lidar data to populates the LidarVisual:
https://github.com/gazebosim/gz-sim/tree/gz-sim7/src/gui/plugins/visualize_lidar

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

2 participants