-
Notifications
You must be signed in to change notification settings - Fork 685
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
Tutorial 01 - unclear instructions #251
Comments
Ok, so, first: ignore "factory.registerFromPlugin("./libdummy_nodes_dyn.so");", it will not be helpful for now. Second, the reason the tree is loaded sometimes from an xml file and sometimes from a string, is that the xml file contains the same data as the string, except, it's in a file. This is a matter of convenience, for tutorials - it's simpler to keep it in a string, but once you start using Groot or doing production - xml is the way to go. Thrid, do not change dummy_nodes.h, it works just fine Could you upload your project to github and share the link, so I may look at it and find any issues? |
First of all, thank you for your reply. I am struggling to compose minimal working example. Thank you, Tomas |
I will look at it tomorrow, if you can wait. Too busy today |
Thank you very much. No rush. I feel humbled, because I am pretty sure, I am misunderstanding the steps, but maybe this issue will help some other beginner too. Have a nice day, Tomas |
@TomasHricina you had a few minor problems
If you have any further questions, feel free to ask |
Thank you, for your time and the pull request @ramilmsh It did not work for me, but it must be because I am doing something wrong.
And if I try cmake --build .
Since the error mentions "Boost::coroutine" - I tried same steps with branch called "boost_coroutine", with no luck. That is probably just coincidence. |
@TomasHricina after this, I am not sure how I could help you further, but I have setup a fresh ubuntu:xenial docker container, meaning it was empty in the extreme. I have then done this:
10 cd build/
These are all the commands I typed after starting a fresh, stripped-down installation of ubuntu. The code compiled (though, I did not bother fixing the gtest issue), the code with my modifications worked. So, possibly, your ubuntu installation is broken (which happens accidentally all the time), so you could try either docker or running it on LiveUSB. At any rate, it should work |
Thank you very much @ramilmsh, you have really done maximum that you could. I will try the docker, you have provided, but in the end, I cannot run in docker, so I have to solve this. I will also check in VirtualBox with fresh Ubuntu and report back. For completness, here is the CMAKE error, when doing the final "cmake .." ` |
I mean, you could try: |
Already installed. I will try all steps on fresh VM today |
Hello, once again. I have tried the steps @ramilmsh provided on freshly installed and updated Ubuntu 20.04 AMD64 - in Virtual box. Should I open, new issue or keep it here @facontidavide ? Here are the steps, with final Cmake error:
Thank you for help, have a nice day |
Let me have a look at it |
just add this line to your cmake ant it will work:
|
I just pushed a change that will prevent your problem in the future |
Hi davide, I'm having this error:
however i have those files located in:
here's what my CMakeLists.txt looks like, can you help me with this?
|
Okay I when i did |
Hello, I failed to reproduce the first tutorial, mainly because I think it is missing some steps, which might be obvious to more experienced developer.
Attempted tutorial:
https://www.behaviortree.dev/tutorial_01_first_tree/
Questions:
This class declaration, should be in "dummy_nodes.h" correct ?
Main:
The header does not include all the classes that are in the next source code, but I understand it is my job to fill their declaration. I removed the undeclared ones instead.
Now, from the Github page, I found this CMAKE file (it is not in the Tutorial 01).
What should be the correct CMAKE for this tutorial ?
How do I include XML file in CMAKE build ?
Lastly, I searched the Github folder with examples and another thing confuses me, which is, that the tutorial source codes are very different.
In Github main, for example, the tree is represented as string literal, but in the landing page, the tree is represented like extrernal XML file.
Also this line: "factory.registerFromPlugin("./libdummy_nodes_dyn.so");"
It is not in the landing page tutorial, but it is in github.. what is "libdummy_nodes_dyn.so" ? Where can I get this file ? What is its purpose ?
Please can you help me and future beginners. Please, can you provide sequential steps, with fully functional example ? I admit, it is probably due to my own lack of experience, but I am very lost, I have spent hours trying to make tutorial 01 work, with no success. Thank you, Tomas
The text was updated successfully, but these errors were encountered: