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

Errors during building phase #3

Open
psykaunot opened this issue Oct 16, 2024 · 0 comments
Open

Errors during building phase #3

psykaunot opened this issue Oct 16, 2024 · 0 comments

Comments

@psykaunot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant