50 bool showAll = (tree.
size() < 5 * 1e6);
51 bool uses_origin = ( (origin_.
rot().
x() != 0.) && (origin_.
rot().
y() != 0.)
52 && (origin_.
rot().
z() != 0.) && (origin_.
rot().
u() != 1.) );
57 unsigned int cnt_occupied(0), cnt_occupied_thres(0), cnt_free(0), cnt_free_thres(0);
58 for(ColorOcTree::tree_iterator it = tree.
begin_tree(this->m_max_tree_depth),
59 end=tree.
end_tree(); it!= end; ++it) {
77 std::vector<octomath::Vector3> cube_template;
80 unsigned int idx_occupied(0), idx_occupied_thres(0), idx_free(0), idx_free_thres(0);
81 unsigned int color_idx_occupied(0), color_idx_occupied_thres(0);
85 for(ColorOcTree::tree_iterator it = tree.
begin_tree(this->m_max_tree_depth),
86 end=tree.
end_tree(); it!= end; ++it) {
97 color_idx_occupied_thres =
setCubeColorRGBA(it->getColor().r, it->getColor().g, it->getColor().b,
98 (
unsigned char) (it->getOccupancy() * 255.),
103 color_idx_occupied =
setCubeColorRGBA(it->getColor().r, it->getColor().g, it->getColor().b,
104 (
unsigned char)(it->getOccupancy() * 255.),