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

Fixes ufomap_rviz_plugins building error (#15 and #17) #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions ufomap_ros/ufomap_rviz_plugins/src/ufomap_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,14 @@ void UFOMapDisplay::onInitialize()
queue_size_property_->setMin(1);

info_property_ = new rviz::Property("Information", QVariant(), "", this);
resolution_property_ = new rviz::StringProperty(
"Resolution", "", "Resolution of the occupancy map", info_property_, nullptr, this);
num_leaf_nodes_property_ =
new rviz::StringProperty("# Leaf Nodes", "", "Number of leaf nodes in the octree",
info_property_, nullptr, this);
num_inner_nodes_property_ =
new rviz::StringProperty("# Inner Nodes", "", "Number of inner nodes in the octree",
info_property_, nullptr, this);
size_property_ = new rviz::StringProperty("Size", "", "Size of the octree",
info_property_, nullptr, this);

resolution_property_ = new rviz::StringProperty( "Resolution", "", "Resolution of the occupancy map", info_property_);
num_leaf_nodes_property_ = new rviz::StringProperty("# Leaf Nodes", "", "Number of leaf nodes in the octree", info_property_);
num_inner_nodes_property_ = new rviz::StringProperty("# Inner Nodes", "", "Number of inner nodes in the octree", info_property_);
size_property_ = new rviz::StringProperty("Size", "", "Size of the octree", info_property_);




render_category_property_ = new rviz::Property("Voxel Rendering", QVariant(), "", this);
for (VoxelType const& type : {OCCUPIED, FREE, UNKNOWN}) {
Expand Down Expand Up @@ -752,4 +750,4 @@ std::string UFOMapDisplay::getStrVoxelType(VoxelType const& type) const
// loadable by pluginlib::ClassLoader must have these two lines
// compiled in its .cpp file, outside of any namespace scope.
#include <pluginlib/class_list_macros.h>
PLUGINLIB_EXPORT_CLASS(ufomap_ros::rviz_plugins::UFOMapDisplay, rviz::Display)
PLUGINLIB_EXPORT_CLASS(ufomap_ros::rviz_plugins::UFOMapDisplay, rviz::Display)