Hello, Am I being a bother? I promise I won't leave just as soon as I have built the program. I will at least contribute by updating some documentation to make it worth your time. I know that your time is precious as you have a huge goal to accomplish. So in an attempt to be less of a pain in the neck I have tried to trace back the cause of this error I am getting. Here is what I found:
1. I reinstalled atomspace after pulling the latest changes from master. This didn't solve the problem. 2. The error is saying that getChild is not a member of octomap::OcTreeNode 3. I checked that OcTreeNode class in octomap's OcTreeNode.h does indeed not have a getChild member 4. The OcTreeNode has the base class OcTreeDataNode whose header files again don't have a getChild method defined. 5. The OcTreeDataNode has an abstract base class with no defined methods and a fried class OcTreeBaseImpl which again doesn't have a getChild method. So it seems to me that the error is correctly pointing out that this getChild method is not implemented anywhere. Am I using a wrong version of octomap (its 1.8.0)? The getChild method of OcTreeNode is being called like OcTreeNode::getChild(i). If I am not wrong then this has to be a static method defined in the OcTreeNode class (or one of its base classes) for the call to work. But its not defined in octomap's source code. What am I doing wrong? Yours sincerely Gaurav Gautam On Wednesday, June 29, 2016 at 9:37:41 PM UTC+5:30, Gaurav Gautam wrote: > > Hello Amen, > > Since last time, I have redone everything. I downloaded cogutils, > atomspace, moses and opencog again and > did a git pull to make sure that everything was up-to-date. > Now, I am getting what looks like the same error from a different > location. Everytime I am getting stuck at this > error which says getChild is not a member of octomap::OcTreeNode: > --- > In file included from > /home/gaurav/Codes/AI/OpenCog/SOFTWARE/opencog/opencog/spatial/3DSpaceMap/SpaceMapUtil.h:8:0, > from > /home/gaurav/Codes/AI/OpenCog/SOFTWARE/opencog/opencog/spatial/3DSpaceMap/SpaceMapUtil.cc:8: > /home/gaurav/Codes/AI/OpenCog/SOFTWARE/opencog/opencog/spatial/3DSpaceMap/OctomapOcTree.h: > > In member function ‘opencog::spatial::OctomapOcTreeNode* > opencog::spatial::OctomapOcTreeNode::getChild(unsigned int)’: > /home/gaurav/Codes/AI/OpenCog/SOFTWARE/opencog/opencog/spatial/3DSpaceMap/OctomapOcTree.h:73:57: > > error: ‘getChild’ is not a member of ‘octomap::OcTreeNode’ > return static_cast<OctomapOcTreeNode*> > (OcTreeNode::getChild(i)); > ^ > /home/gaurav/Codes/AI/OpenCog/SOFTWARE/opencog/opencog/spatial/3DSpaceMap/OctomapOcTree.h: > > In member function ‘const opencog::spatial::OctomapOcTreeNode* > opencog::spatial::OctomapOcTreeNode::getChild(unsigned int) const’: > /home/gaurav/Codes/AI/OpenCog/SOFTWARE/opencog/opencog/spatial/3DSpaceMap/OctomapOcTree.h:77:63: > > error: ‘getChild’ is not a member of ‘octomap::OcTreeNode’ > return static_cast<const OctomapOcTreeNode*> > (OcTreeNode::getChild(i)); > ^ > make[2]: *** > [opencog/spatial/CMakeFiles/SpaceMap.dir/3DSpaceMap/SpaceMapUtil.cc.o] > Error 1 > make[1]: *** [opencog/spatial/CMakeFiles/SpaceMap.dir/all] Error 2 > make: *** [all] Error 2 > > --- > > If I tell you the versions of all the libraries in my installation, will > that help? > > Yours sincerely > Gaurav Gautam > > > On Monday, June 27, 2016 at 11:40:06 AM UTC+5:30, AmeBel wrote: >> >> update your atomspace installation >> > -- You received this message because you are subscribed to the Google Groups "opencog" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/opencog. To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/196827cc-8dce-4b4e-b3c7-61a8eb8b9032%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
