Robotics StackExchange | Archived questions

Octomap appears as grey dots

Hi,

I have a fresh version of Ubuntu 18, ROS Melodic and octomap_server installed. I'm using the octomap plugin for RViz to visualize the OccupancyGrid on the topic: /octomap_binary with Voxel Rendering: Occupied voxels . But the map appears as grey dots as opposed to cubes like in Ubuntu16.

I tried using MarkerArray with the topic: /occupied_cells_vis_array but the map appeared as grey dots again. It gave a

Warning: map/16, Uninitialised quaternion, assuming identity.

I'm using the exact same code in Ubuntu 16, so I'm not sure why the map doesn't appear as cubes.

I also tried reinstalling the plugin and octomap_server but that didn't help.

Please let me know how to correct this.

Thank you

Asked by ap on 2020-07-14 07:17:06 UTC

Comments

Are you overriding the height_map parameter? This specifies if the /occupied_cells_vis_array is colored based on height. It's odd you're getting different results because I did the same version update and didn't encounter this problem. I uninstalled most kinetic components so the Ubuntu auto-upgrade could work. Maybe you still have some kinetic components conflicting?

Asked by chives_onion on 2020-07-14 10:37:16 UTC

Thanks for the reply. Where can I find the height_map parameter?

Asked by ap on 2020-07-14 14:07:42 UTC

It's one of the parameters listed on the server wiki page here

Asked by chives_onion on 2020-07-14 14:26:43 UTC

Turns out, I had the incorrect driver for my graphics card. This can be solved by running ubuntu-drivers devices and installing the recommended driver (as advised by sv). Should I delete this question since it's not really ROS related?

Asked by ap on 2020-07-31 05:23:58 UTC

Answers