You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I tried to install and use the package, but I faced a few errors during the building phase.
Since there's no README file, I ran the "reinstall" directly. After running it with wstool, I obtained the folders knowron, rosprolog and iai_common_msgs.
Then, after running catkin_make, I obtained errors because of missing headers. The ROSInterface.h is looking for the following folder with all other headers: knowrob_ros/include/knowrob
However, the folder does not exist. I had to copy the knowrob folder in knowrob/include/knowrob to fix the error.
However, know I am having the following errors because of some methods not found. Which made me realised that you probably updated the headers but they are not present in the package.
/home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp: In constructor ‘knowrob::ROSInterface::ROSInterface(const ptree&)’: /home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp:43:24: error: ‘create’ is not a member of ‘knowrob::KnowledgeBase’ 43 | kb_(KnowledgeBase::create(config)) { | ^~~~~~ /home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp: In member function ‘void knowrob::ROSInterface::executeTellCB(const TellGoalConstPtr&)’: /home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp:314:50: error: cannot convert ‘knowrob::KnowledgeBasePtr’ {aka ‘std::shared_ptr<knowrob::KnowledgeBase>’} to ‘knowrob::KnowledgeBase&’ 314 | bool success = InterfaceUtils::assertStatements(kb_, {mPhi}); | ^~~ | | | knowrob::KnowledgeBasePtr {aka std::shared_ptr<knowrob::KnowledgeBase>} In file included from /home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp:27: /home/ys/trail_ws/src/knowrob_ros/include/knowrob/integration/InterfaceUtils.h:27:47: note: initializing argument 1 of ‘static bool knowrob::InterfaceUtils::assertStatements(knowrob::KnowledgeBase&, const std::vector<std::shared_ptr<knowrob::Formula> >&)’ 27 | static bool assertStatements(KnowledgeBase &kb_, const std::vector<FormulaPtr> &args); | ~~~~~~~~~~~~~~~^~~ /home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp: In function ‘int main(int, char**)’: /home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp:329:2: error: ‘InitKnowRob’ was not declared in this scope 329 | InitKnowRob(argc, argv); | ^~~~~~~~~~~ /home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp:334:46: error: ‘loadSettings’ is not a member of ‘knowrob::InterfaceUtils’ 334 | ROSInterface ros_interface(InterfaceUtils::loadSettings()); | ^~~~~~~~~~~~ make[2]: *** [knowrob_ros/CMakeFiles/knowrob-ros.dir/build.make:63: knowrob_ros/CMakeFiles/knowrob-ros.dir/src/ROSInterface.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:10329: knowrob_ros/CMakeFiles/knowrob-ros.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 Invoking "make -j12 -l12" failed
The text was updated successfully, but these errors were encountered:
Hello, I tried to install and use the package, but I faced a few errors during the building phase.
Since there's no README file, I ran the "reinstall" directly. After running it with wstool, I obtained the folders knowron, rosprolog and iai_common_msgs.
Then, after running catkin_make, I obtained errors because of missing headers. The ROSInterface.h is looking for the following folder with all other headers: knowrob_ros/include/knowrob
However, the folder does not exist. I had to copy the knowrob folder in knowrob/include/knowrob to fix the error.
However, know I am having the following errors because of some methods not found. Which made me realised that you probably updated the headers but they are not present in the package.
/home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp: In constructor ‘knowrob::ROSInterface::ROSInterface(const ptree&)’: /home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp:43:24: error: ‘create’ is not a member of ‘knowrob::KnowledgeBase’ 43 | kb_(KnowledgeBase::create(config)) { | ^~~~~~ /home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp: In member function ‘void knowrob::ROSInterface::executeTellCB(const TellGoalConstPtr&)’: /home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp:314:50: error: cannot convert ‘knowrob::KnowledgeBasePtr’ {aka ‘std::shared_ptr<knowrob::KnowledgeBase>’} to ‘knowrob::KnowledgeBase&’ 314 | bool success = InterfaceUtils::assertStatements(kb_, {mPhi}); | ^~~ | | | knowrob::KnowledgeBasePtr {aka std::shared_ptr<knowrob::KnowledgeBase>} In file included from /home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp:27: /home/ys/trail_ws/src/knowrob_ros/include/knowrob/integration/InterfaceUtils.h:27:47: note: initializing argument 1 of ‘static bool knowrob::InterfaceUtils::assertStatements(knowrob::KnowledgeBase&, const std::vector<std::shared_ptr<knowrob::Formula> >&)’ 27 | static bool assertStatements(KnowledgeBase &kb_, const std::vector<FormulaPtr> &args); | ~~~~~~~~~~~~~~~^~~ /home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp: In function ‘int main(int, char**)’: /home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp:329:2: error: ‘InitKnowRob’ was not declared in this scope 329 | InitKnowRob(argc, argv); | ^~~~~~~~~~~ /home/ys/trail_ws/src/knowrob_ros/src/ROSInterface.cpp:334:46: error: ‘loadSettings’ is not a member of ‘knowrob::InterfaceUtils’ 334 | ROSInterface ros_interface(InterfaceUtils::loadSettings()); | ^~~~~~~~~~~~ make[2]: *** [knowrob_ros/CMakeFiles/knowrob-ros.dir/build.make:63: knowrob_ros/CMakeFiles/knowrob-ros.dir/src/ROSInterface.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:10329: knowrob_ros/CMakeFiles/knowrob-ros.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 Invoking "make -j12 -l12" failed
The text was updated successfully, but these errors were encountered: