-
Notifications
You must be signed in to change notification settings - Fork 26
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
CMake Error after updating to newest Ignition-citadel version #209
Comments
Hi @wolfgangschwab, #208 fixed this problem, can you try to update to the latest version? I think your local branch is behind upstream's devel. |
Hi @diegoferigo , thanks for the feedback. I updated my devel-version, but still it does not work. When I start the cartpole case, one cpu is running at 100% but nothing happens. Is the fix also in the master version available? |
I didn't get whether you're using the |
@diegoferigo, can you give me a hint how to solve my problem with the devel-branch ? |
What do you mean with nothing happens? The GUI does not open? I realized that the rendering of the example has been disabled, can you try to uncomment the render line of the example? Note that there's currently a problem of ogre2 on ubuntu bionic #211. |
What I mean is no GUI is opening but also no output is printed in the terminal. |
For the GUI you have to enable rendering, what's weird is if you don't have any output even with rendering disabled. I expect that the following line prints the episode reward: What does it happen if you run the code in an interactive session, e.g. using |
To ensure that there is no problem with the build folder. I dropped the build folder and the gym-ign-install folder and rebuild everything. Now I get the following error:
Any hint for this problem? |
Sorry but if you don't tell me how you installed gym-ignition it's quite difficult to me to guess the origin of the problem. We have different installation procedures and the resulting structure in the filesystem is quite different. |
Sorry, I thought this problem is independent from the installation. I 'm using a docker image for both versions of gym-ignition (master branch and devel branch). The commands that extended an existing image for the use with gym-ignition are: In this docker image I use the following commands: |
I had a quick look to your setup and I think there are few parts that are not clear to me (possibly unrelated to the problem of posted):
Back to your problem, I think that the If the python package is installed in a virtualenv and the CMake project in a custom prefix (as you do), the only thing you have to do is enabling the virtualenv and importing I would suggest to check these things. You can have a look as a reference to my personal setup stored in this Dockerfile. |
Hi @diegoferigo, Main problem:
For my understanding the first one (regarding ignition-tools) is the important one. In the end the command |
I'm not a I think that you still didn't catch the real error, can you compare your full output with the one I just linked from CI? |
Thank you for the hint. I now used the Dockerfile.cicd-devel to generate an image. With this image I'm now able to build the devel branch and run the cartpole example:
So, looks good.
Is this expected or do I have an issue with my setup? |
How did you build the image? Did you use the docker-compose.yml file? I realized that the following should be ON if you want to get by default the CI configuration: Otherwise GUIs will not work. The reason is that GUI are not compiled by colcon if the compilation is static (I think it is an upstream bug). |
No, I directly used the Dockerfile.cicd-devel. Which command should I use? |
|
OK, thanks. Using this docker solved some issues but the displaying of the GUI still had some problems. But I was able to solve them on my own. |
I'm glad you managed to fix it. Was the GUI problem related to #211 or something else? If it could be helpful to other users feel free to add more details. |
My problems doesn't seem to be related to #211. I got errors that the Display : 1 could not be displayed (or so). In the end I solved the problems by using another Nvidia docker image, which also includes opengl, as the basis by amending the
Additionally I had to create an ignition folder (as already mentioned in another issue):
|
Yes, if you have an Nvidia-based setup that's the right way. The I opened #213 that solves the dot folder problem. |
As I still have problems to get the devel branch working, I'm still stuck with the master branch version. There I get an error after updating to the newest version of ignition-citadel. When running the cmake command:
cmake -DCMAKE_INSTALL_PREFIX=/home/developer/other/gym-ignition_ws/gym-ign-install/ ..
I get an error:
`CMake Error at plugins/Physics/CMakeLists.txt:25 (target_compile_definitions):
Error evaluating generator expression:
No target "ignition-physics2::ignition-physics2-dartsim-plugin"`
Do you have a hint how to solve this?
The text was updated successfully, but these errors were encountered: