Octomap appears as grey dots

asked 2020-07-14 07:17:06 -0500

ap gravatar image

updated 2020-07-14 08:07:16 -0500

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

edit retag flag offensive close merge delete

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?

chives_onion gravatar image chives_onion  ( 2020-07-14 10:37:16 -0500 )edit

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

ap gravatar image ap  ( 2020-07-14 14:07:42 -0500 )edit

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

chives_onion gravatar image chives_onion  ( 2020-07-14 14:26:43 -0500 )edit

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?

ap gravatar image ap  ( 2020-07-31 05:23:58 -0500 )edit