Open csufangyu opened 6 years ago
You didn't install octomap
library properly. Try
rosdep install semantic_slam
Thanks for your answer.I try to run : `rosdep install semantic_slam' robot@robot:~/slam_project/catkin_ws$ rosdep install semantic_slam
but it not help!
DE octomap::OccupancyOcTreeBase
I think it maybe related with the version of octomap. could you tell me the version of octomap you used! the more information ia as follows:
Scanning dependencies of target octomap_generator
[ 20%] Building CXX object semantic_slam/octomap_generator/CMakeFiles/octomap_generator.dir/src/octomap_generator/octomap_generator.cpp.o
[ 40%] Building CXX object semantic_slam/octomap_generator/CMakeFiles/octomap_generator.dir/src/semantic_octree/semantics_bayesian.cpp.o
[ 60%] Building CXX object semantic_slam/octomap_generator/CMakeFiles/octomap_generator.dir/src/octomap_generator/octomap_generator_ros.cpp.o
[ 80%] Building CXX object semantic_slam/octomap_generator/CMakeFiles/octomap_generator.dir/src/semantic_octree/semantics_max.cpp.o
In file included from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.h:11:0,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/octomap_generator/octomap_generator.h:6,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:1:
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree_node.h: In member function ‘void octomap::SemanticsOcTreeNode
Thanks very much for your work,I try to run code .But I meet a problems,cloud you help me?? Thanks! /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.hxx:22:20: error: ‘class octomap::SemanticsOcTree’ has no member named ‘getNodeChild’
node->copyData((this->getNodeChild(node, 0)));
^
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.hxx:29:7: error: ‘class octomap::SemanticsOcTree’ has no member named ‘deleteNodeChild’
this->deleteNodeChild(node, i);
^
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.hxx: In instantiation of ‘bool octomap::SemanticsOcTree::isNodeCollapsible(const octomap::SemanticsOcTreeNode ) const [with SEMANTICS = octomap::SemanticsMax]’:
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.hxx:42:8: error: ‘const class octomap::SemanticsOcTree’ has no member named ‘nodeChildExists’
if(!this->nodeChildExists(node, 0))
^
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.hxx:44:82: error: ‘const class octomap::SemanticsOcTree’ has no member named ‘getNodeChild’
const SemanticsOcTreeNode firstChild = this->getNodeChild(node, 0);
^
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.hxx:45:5: error: ‘const class octomap::SemanticsOcTree’ has no member named ‘nodeHasChildren’
if(this->nodeHasChildren(firstChild))
^
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.hxx:51:43: error: ‘const class octomap::SemanticsOcTree’ has no member named ‘getNodeChild’
|| !(this->getNodeChild(node, i)->getSemantics() == firstChild->getSemantics()))
^
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.hxx:50:43: error: ‘const class octomap::SemanticsOcTree’ has no member named ‘getNodeChild’
|| !(this->getNodeChild(node, i)->getValue() == firstChild->getValue())
^
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.hxx:49:43: error: ‘const class octomap::SemanticsOcTree’ has no member named ‘nodeHasChildren’
if (!this->nodeChildExists(node, i) || this->nodeHasChildren(this->getNodeChild(node, i))
^
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.hxx:49:43: error: ‘const class octomap::SemanticsOcTree’ has no member named ‘getNodeChild’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.hxx:49:11: error: ‘const class octomap::SemanticsOcTree’ has no member named ‘nodeChildExists’
if (!this->nodeChildExists(node, i) || this->nodeHasChildren(this->getNodeChild(node, i))
^
In file included from /opt/ros/indigo/include/octomap/OcTreeBaseImpl.h:503:0,
from /opt/ros/indigo/include/octomap/OccupancyOcTreeBase.h:44,
from /opt/ros/indigo/include/octomap/ColorOcTree.h:40,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.h:10,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/octomap_generator/octomap_generator.h:6,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:1:
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx: In instantiation of ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::pruneRecurs(NODE , unsigned int, unsigned int, unsigned int&) [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree]’:
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:409:51: required from ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::prune() [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:590:72: error: invalid conversion from ‘octomap::ColorOcTreeNode’ to ‘octomap::SemanticsOcTreeNode ’ [-fpermissive]
pruneRecurs(node->getChild(i), depth+1, max_depth, num_pruned);
^
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:582:8: error: initializing argument 1 of ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::pruneRecurs(NODE, unsigned int, unsigned int, unsigned int&) [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree]’ [-fpermissive]
void OcTreeBaseImpl<NODE,I>::pruneRecurs(NODE node, unsigned int depth,
^
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx: In instantiation of ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::expandRecurs(NODE, unsigned int, unsigned int) [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree]’:
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:418:38: required from ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::expand() [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:623:59: error: invalid conversion from ‘octomap::ColorOcTreeNode ’ to ‘octomap::SemanticsOcTreeNode’ [-fpermissive]
expandRecurs(node->getChild(i), depth+1, max_depth);
^
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:607:8: error: initializing argument 1 of ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::expandRecurs(NODE, unsigned int, unsigned int) [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree]’ [-fpermissive]
void OcTreeBaseImpl<NODE,I>::expandRecurs(NODE node, unsigned int depth,
^
In file included from /opt/ros/indigo/include/octomap/OccupancyOcTreeBase.h:530:0,
from /opt/ros/indigo/include/octomap/ColorOcTree.h:40,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.h:10,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/octomap_generator/octomap_generator.h:6,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:1:
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx: In instantiation of ‘std::ostream& octomap::OccupancyOcTreeBase::writeBinaryNode(std::ostream&, const NODE ) const [with NODE = octomap::SemanticsOcTreeNode; std::ostream = std::basic_ostream]’:
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:958:7: required from ‘std::ostream& octomap::OccupancyOcTreeBase::writeBinaryData(std::ostream&) const [with NODE = octomap::SemanticsOcTreeNode; std::ostream = std::basic_ostream]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:1053:45: error: invalid conversion from ‘const octomap::ColorOcTreeNode’ to ‘const octomap::SemanticsOcTreeNode ’ [-fpermissive]
const NODE child = node->getChild(i);
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:1065:47: error: invalid conversion from ‘const octomap::ColorOcTreeNode’ to ‘const octomap::SemanticsOcTreeNode’ [-fpermissive]
const NODE child = node->getChild(i+4);
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:1087:45: error: invalid conversion from ‘const octomap::ColorOcTreeNode’ to ‘const octomap::SemanticsOcTreeNode ’ [-fpermissive]
const NODE child = node->getChild(i);
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx: In instantiation of ‘std::istream& octomap::OccupancyOcTreeBase::readBinaryNode(std::istream&, NODE ) const [with NODE = octomap::SemanticsOcTreeNode; std::istream = std::basic_istream]’:
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:948:5: required from ‘std::istream& octomap::OccupancyOcTreeBase::readBinaryData(std::istream&) [with NODE = octomap::SemanticsOcTreeNode; std::istream = std::basic_istream]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:1022:39: error: invalid conversion from ‘octomap::ColorOcTreeNode’ to ‘octomap::SemanticsOcTreeNode ’ [-fpermissive]
NODE child = node->getChild(i);
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx: In instantiation of ‘void octomap::OccupancyOcTreeBase::toMaxLikelihoodRecurs(NODE , unsigned int, unsigned int) [with NODE = octomap::SemanticsOcTreeNode]’:
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:533:49: required from ‘void octomap::OccupancyOcTreeBase::toMaxLikelihood() [with NODE = octomap::SemanticsOcTreeNode]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:549:70: error: invalid conversion from ‘octomap::ColorOcTreeNode’ to ‘octomap::SemanticsOcTreeNode ’ [-fpermissive]
toMaxLikelihoodRecurs(node->getChild(i), depth+1, max_depth);
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:541:8: error: initializing argument 1 of ‘void octomap::OccupancyOcTreeBase::toMaxLikelihoodRecurs(NODE, unsigned int, unsigned int) [with NODE = octomap::SemanticsOcTreeNode]’ [-fpermissive]
void OccupancyOcTreeBase::toMaxLikelihoodRecurs(NODE node, unsigned int depth,
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx: In instantiation of ‘NODE octomap::OccupancyOcTreeBase::setNodeValueRecurs(NODE , bool, const octomap::OcTreeKey&, unsigned int, const float&, bool) [with NODE = octomap::SemanticsOcTreeNode]’:
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:277:89: required from ‘NODE octomap::OccupancyOcTreeBase::setNodeValue(const octomap::OcTreeKey&, float, bool) [with NODE = octomap::SemanticsOcTreeNode]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:463:109: error: invalid conversion from ‘octomap::ColorOcTreeNode ’ to ‘octomap::SemanticsOcTreeNode’ [-fpermissive]
return setNodeValueRecurs(node->getChild(pos), created_node, key, depth+1, log_odds_value, lazy_eval);
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:435:9: error: initializing argument 1 of ‘NODE octomap::OccupancyOcTreeBase::setNodeValueRecurs(NODE, bool, const octomap::OcTreeKey&, unsigned int, const float&, bool) [with NODE = octomap::SemanticsOcTreeNode]’ [-fpermissive]
NODE OccupancyOcTreeBase::setNodeValueRecurs(NODE node, bool node_just_created, const OcTreeKey& key,
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:465:117: error: invalid conversion from ‘octomap::ColorOcTreeNode’ to ‘octomap::SemanticsOcTreeNode’ [-fpermissive]
NODE retval = setNodeValueRecurs(node->getChild(pos), created_node, key, depth+1, log_odds_value, lazy_eval);
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:435:9: error: initializing argument 1 of ‘NODE octomap::OccupancyOcTreeBase::setNodeValueRecurs(NODE , bool, const octomap::OcTreeKey&, unsigned int, const float&, bool) [with NODE = octomap::SemanticsOcTreeNode]’ [-fpermissive]
NODE OccupancyOcTreeBase::setNodeValueRecurs(NODE node, bool node_just_created, const OcTreeKey& key,
^
In file included from /opt/ros/indigo/include/octomap/OcTreeBaseImpl.h:503:0,
from /opt/ros/indigo/include/octomap/OccupancyOcTreeBase.h:44,
from /opt/ros/indigo/include/octomap/ColorOcTree.h:40,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.h:10,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/octomap_generator/octomap_generator.h:6,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:1:
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx: In instantiation of ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::pruneRecurs(NODE, unsigned int, unsigned int, unsigned int&) [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree]’:
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:409:51: required from ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::prune() [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:590:72: error: invalid conversion from ‘octomap::ColorOcTreeNode ’ to ‘octomap::SemanticsOcTreeNode’ [-fpermissive]
pruneRecurs(node->getChild(i), depth+1, max_depth, num_pruned);
^
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:582:8: error: initializing argument 1 of ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::pruneRecurs(NODE, unsigned int, unsigned int, unsigned int&) [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree]’ [-fpermissive]
void OcTreeBaseImpl<NODE,I>::pruneRecurs(NODE node, unsigned int depth,
^
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx: In instantiation of ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::expandRecurs(NODE, unsigned int, unsigned int) [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree]’:
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:418:38: required from ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::expand() [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:623:59: error: invalid conversion from ‘octomap::ColorOcTreeNode’ to ‘octomap::SemanticsOcTreeNode ’ [-fpermissive]
expandRecurs(node->getChild(i), depth+1, max_depth);
^
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:607:8: error: initializing argument 1 of ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::expandRecurs(NODE, unsigned int, unsigned int) [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree]’ [-fpermissive]
void OcTreeBaseImpl<NODE,I>::expandRecurs(NODE node, unsigned int depth,
^
In file included from /opt/ros/indigo/include/octomap/OccupancyOcTreeBase.h:530:0,
from /opt/ros/indigo/include/octomap/ColorOcTree.h:40,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.h:10,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/octomap_generator/octomap_generator.h:6,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:1:
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx: In instantiation of ‘std::ostream& octomap::OccupancyOcTreeBase::writeBinaryNode(std::ostream&, const NODE) const [with NODE = octomap::SemanticsOcTreeNode; std::ostream = std::basic_ostream]’:
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:958:7: required from ‘std::ostream& octomap::OccupancyOcTreeBase::writeBinaryData(std::ostream&) const [with NODE = octomap::SemanticsOcTreeNode; std::ostream = std::basic_ostream]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:1053:45: error: invalid conversion from ‘const octomap::ColorOcTreeNode ’ to ‘const octomap::SemanticsOcTreeNode’ [-fpermissive]
const NODE child = node->getChild(i);
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:1065:47: error: invalid conversion from ‘const octomap::ColorOcTreeNode’ to ‘const octomap::SemanticsOcTreeNode ’ [-fpermissive]
const NODE child = node->getChild(i+4);
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:1087:45: error: invalid conversion from ‘const octomap::ColorOcTreeNode’ to ‘const octomap::SemanticsOcTreeNode’ [-fpermissive]
const NODE child = node->getChild(i);
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx: In instantiation of ‘std::istream& octomap::OccupancyOcTreeBase::readBinaryNode(std::istream&, NODE) const [with NODE = octomap::SemanticsOcTreeNode; std::istream = std::basic_istream]’:
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:948:5: required from ‘std::istream& octomap::OccupancyOcTreeBase::readBinaryData(std::istream&) [with NODE = octomap::SemanticsOcTreeNode; std::istream = std::basic_istream]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:1022:39: error: invalid conversion from ‘octomap::ColorOcTreeNode ’ to ‘octomap::SemanticsOcTreeNode’ [-fpermissive]
NODE child = node->getChild(i);
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx: In instantiation of ‘void octomap::OccupancyOcTreeBase::toMaxLikelihoodRecurs(NODE, unsigned int, unsigned int) [with NODE = octomap::SemanticsOcTreeNode]’:
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:533:49: required from ‘void octomap::OccupancyOcTreeBase::toMaxLikelihood() [with NODE = octomap::SemanticsOcTreeNode]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:549:70: error: invalid conversion from ‘octomap::ColorOcTreeNode ’ to ‘octomap::SemanticsOcTreeNode’ [-fpermissive]
toMaxLikelihoodRecurs(node->getChild(i), depth+1, max_depth);
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:541:8: error: initializing argument 1 of ‘void octomap::OccupancyOcTreeBase::toMaxLikelihoodRecurs(NODE , unsigned int, unsigned int) [with NODE = octomap::SemanticsOcTreeNode]’ [-fpermissive]
void OccupancyOcTreeBase::toMaxLikelihoodRecurs(NODE node, unsigned int depth,
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx: In instantiation of ‘NODE octomap::OccupancyOcTreeBase::setNodeValueRecurs(NODE, bool, const octomap::OcTreeKey&, unsigned int, const float&, bool) [with NODE = octomap::SemanticsOcTreeNode]’:
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:277:89: required from ‘NODE octomap::OccupancyOcTreeBase::setNodeValue(const octomap::OcTreeKey&, float, bool) [with NODE = octomap::SemanticsOcTreeNode]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:463:109: error: invalid conversion from ‘octomap::ColorOcTreeNode’ to ‘octomap::SemanticsOcTreeNode ’ [-fpermissive]
return setNodeValueRecurs(node->getChild(pos), created_node, key, depth+1, log_odds_value, lazy_eval);
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:435:9: error: initializing argument 1 of ‘NODE octomap::OccupancyOcTreeBase::setNodeValueRecurs(NODE , bool, const octomap::OcTreeKey&, unsigned int, const float&, bool) [with NODE = octomap::SemanticsOcTreeNode]’ [-fpermissive]
NODE OccupancyOcTreeBase::setNodeValueRecurs(NODE node, bool node_just_created, const OcTreeKey& key,
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:465:117: error: invalid conversion from ‘octomap::ColorOcTreeNode’ to ‘octomap::SemanticsOcTreeNode ’ [-fpermissive]
NODE retval = setNodeValueRecurs(node->getChild(pos), created_node, key, depth+1, log_odds_value, lazy_eval);
^
/opt/ros/indigo/include/octomap/OccupancyOcTreeBase.hxx:435:9: error: initializing argument 1 of ‘NODE octomap::OccupancyOcTreeBase::setNodeValueRecurs(NODE, bool, const octomap::OcTreeKey&, unsigned int, const float&, bool) [with NODE = octomap::SemanticsOcTreeNode]’ [-fpermissive]
NODE OccupancyOcTreeBase::setNodeValueRecurs(NODE node, bool node_just_created, const OcTreeKey& key,
^
In file included from /opt/ros/indigo/include/octomap/OcTreeBaseImpl.h:503:0,
from /opt/ros/indigo/include/octomap/OccupancyOcTreeBase.h:44,
from /opt/ros/indigo/include/octomap/ColorOcTree.h:40,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/semantics_octree/semantics_octree.h:10,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/include/octomap_generator/octomap_generator.h:6,
from /home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:1:
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx: In instantiation of ‘std::size_t octomap::OcTreeBaseImpl<NODE, INTERFACE>::getNumLeafNodesRecurs(const NODE) const [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::size_t = long unsigned int]’:
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:895:38: required from ‘std::size_t octomap::OcTreeBaseImpl<NODE, INTERFACE>::getNumLeafNodes() const [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::size_t = long unsigned int]’
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:853:51: required from ‘std::size_t octomap::OcTreeBaseImpl<NODE, INTERFACE>::memoryUsage() const [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::size_t = long unsigned int]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:909:72: error: invalid conversion from ‘const octomap::ColorOcTreeNode’ to ‘const octomap::SemanticsOcTreeNode ’ [-fpermissive]
sum_leafs_children += getNumLeafNodesRecurs(parent->getChild(i));
^
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:900:10: error: initializing argument 1 of ‘std::size_t octomap::OcTreeBaseImpl<NODE, INTERFACE>::getNumLeafNodesRecurs(const NODE) const [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::size_t = long unsigned int]’ [-fpermissive]
size_t OcTreeBaseImpl<NODE,I>::getNumLeafNodesRecurs(const NODE parent) const {
^
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx: In instantiation of ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::calcNumNodesRecurs(NODE, std::size_t&) const [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::size_t = long unsigned int]’:
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:833:38: required from ‘std::size_t octomap::OcTreeBaseImpl<NODE, INTERFACE>::calcNumNodes() const [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::size_t = long unsigned int]’
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:655:30: required from ‘std::istream& octomap::OcTreeBaseImpl<NODE, INTERFACE>::readData(std::istream&) [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::istream = std::basic_istream]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:845:58: error: invalid conversion from ‘octomap::ColorOcTreeNode ’ to ‘octomap::SemanticsOcTreeNode’ [-fpermissive]
calcNumNodesRecurs(node->getChild(i), num_nodes);
^
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:839:8: error: initializing argument 1 of ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::calcNumNodesRecurs(NODE, std::size_t&) const [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::size_t = long unsigned int]’ [-fpermissive]
void OcTreeBaseImpl<NODE,I>::calcNumNodesRecurs(NODE node, size_t& num_nodes) const {
^
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx: In instantiation of ‘std::size_t octomap::OcTreeBaseImpl<NODE, INTERFACE>::getNumLeafNodesRecurs(const NODE) const [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::size_t = long unsigned int]’:
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:895:38: required from ‘std::size_t octomap::OcTreeBaseImpl<NODE, INTERFACE>::getNumLeafNodes() const [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::size_t = long unsigned int]’
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:853:51: required from ‘std::size_t octomap::OcTreeBaseImpl<NODE, INTERFACE>::memoryUsage() const [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::size_t = long unsigned int]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:909:72: error: invalid conversion from ‘const octomap::ColorOcTreeNode’ to ‘const octomap::SemanticsOcTreeNode ’ [-fpermissive]
sum_leafs_children += getNumLeafNodesRecurs(parent->getChild(i));
^
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:900:10: error: initializing argument 1 of ‘std::size_t octomap::OcTreeBaseImpl<NODE, INTERFACE>::getNumLeafNodesRecurs(const NODE) const [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::size_t = long unsigned int]’ [-fpermissive]
size_t OcTreeBaseImpl<NODE,I>::getNumLeafNodesRecurs(const NODE parent) const {
^
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx: In instantiation of ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::calcNumNodesRecurs(NODE, std::size_t&) const [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::size_t = long unsigned int]’:
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:833:38: required from ‘std::size_t octomap::OcTreeBaseImpl<NODE, INTERFACE>::calcNumNodes() const [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::size_t = long unsigned int]’
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:655:30: required from ‘std::istream& octomap::OcTreeBaseImpl<NODE, INTERFACE>::readData(std::istream&) [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::istream = std::basic_istream]’
/home/robot/slam_project/catkin_ws/src/semantic_slam/octomap_generator/src/octomap_generator/octomap_generator.cpp:182:79: required from here
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:845:58: error: invalid conversion from ‘octomap::ColorOcTreeNode ’ to ‘octomap::SemanticsOcTreeNode’ [-fpermissive]
calcNumNodesRecurs(node->getChild(i), num_nodes);
^
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.hxx:839:8: error: initializing argument 1 of ‘void octomap::OcTreeBaseImpl<NODE, INTERFACE>::calcNumNodesRecurs(NODE, std::size_t&) const [with NODE = octomap::SemanticsOcTreeNode; INTERFACE = octomap::AbstractOccupancyOcTree; std::size_t = long unsigned int]’ [-fpermissive]
void OcTreeBaseImpl<NODE,I>::calcNumNodesRecurs(NODE* node, size_t& num_nodes) const {
^
make[2]: [semantic_slam/octomap_generator/CMakeFiles/octomap_generator.dir/src/octomap_generator/octomap_generator.cpp.o] 错误 1
make[2]: 正在等待未完成的任务....
make[2]: [semantic_slam/octomap_generator/CMakeFiles/octomap_generator.dir/src/octomap_generator/octomap_generator_ros.cpp.o] 错误 1
make[1]: [semantic_slam/octomap_generator/CMakeFiles/octomap_generator.dir/all] 错误 2
make: *** [all] 错误 2
Invoking "make -j12 -l12" failed