-
Notifications
You must be signed in to change notification settings - Fork 54
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
Gazebo Source Installation #104
Comments
Hello @lucarei,
Oh yes, I remember this issue (sorry, I forgot to mention it in the previous issue). Downgrading
Unfortunately, I am not sure what could be causing this issue, as there are many parts at play. Could you try to elaborate a bit more about what happens? Does the simulation freeze or crash immediately? Maybe there is some useful information.
Hmm, I remember the 1-4 warnings, which are annoying - but I think should be harmless. I remember seeing the internal physics error despite everything working, so there is probably no connection with the issue. I don't recall the last warning, so I cannot comment on that. When I was having the issue above, there were not really any useful debug messages either. So it can be difficult to find why it is not functional...
Your approach is exactly what I would try as well. Maybe there are some other dependencies that introduced breaking changes for this repository? (this repository is quite an edge-case scenario for many packages)
Unfortunately, I do not have this list. Maybe you could try the FYI: As this repository is directly dependent on As the last alternative, I would probably start with the prebuilt Docker image and use it as the development environment while committing changes directly to the Docker image itself ( |
I am trying to give you a more accurate snapshot of my configuration/warnings obtained. I start analyzing all the possible Gazebo installation methods, testing them with gz_ros2_control *1 example suggested by you.
RESULT: Among my tests, option 4 could be the best. However, consider that i obtained all these 5 errors/warnings that i show you in the first message of this issue. For this reason i opened it. In the next message i will describe what happens running your project with configuration 4. NOTE 1 (for other people): gz_ros2_control is a package already inside drl_grasping project. |
This is the second part: analysis of robot-model/reach-task/grasp-task/grasp-planetary-task with 4th configuration of gazebo.
FINAL NOTE: i thought that the presence of those error (as "internal error" or "failed to find world") were related to a wrong installation of Gazebo Fortress. For this reason i opened this issue. If it wasn't like I say, we can close this issue and it could be useful for others to install Gazebo for this project, following these footsteps. Please suggest me the right way to solve. |
UPDATE Your project seems to work on 4th Gazebo Configuration (up to now, just testing "ex_random_agent.bash"). It is necessary to correctly download the models of the objects, otherwise the simulation cannot start finely. You might think that is related to Gazebo or other things since camera or TF were not correctly published but focusing on correct object models download fixes a bunch of problems. You can use:
However, there are still the repetitive errors that i have shown to you as "Failed to Find World" (and the others listed in the first message of this issue). In fact, the world is not correctly loaded. Here the list of commit hash for 4th configuration of Gazebo (i am not sure that it is completely right due to the previous errors):
I'm closing this issue because the simulation started (and in general we obtained a way to install a working version of Gazebo 6.9), even if the errors are still there. |
Thank you @lucarei for this analysis and the list of commit hashes!
If that's the case, it would appear that the automatic download of models from Fuel (Google Scanned Objects collection) is not working properly anymore. I don't know what is causing that, but I am happy you were able to find a workaround.
What part of the world is not loaded correctly? |
No worries, it is a pleasure for me to work (and help) on your project.
It was my mistake. I have seen the blank ground without any texture and i thought that something went wrong. I solved it as i described in following point 2, downloading texture files. Up to now, random example seems to work fine, i will work on training now. NOTE: there are still the errors that i shown to you but everything works up to now so i decided to hide them modifying the log level. TIPS for OTHER DEVELOPERS:
Placing in a correct way the Google dataset is crucial, otherwise other stuffs cannot work (EX: RVIZ doesn't load TF for each link of the robot arm).
You can download texture from an Andrej's repo: they are used in file random_ground.py.
|
Hi Andrej. I am still trying to install your project on my local machine (Ubuntu 20.04, ROS Galactic). I am sorry for basic questions but i am a newbie who is working a lot to obtain your results.
I have made progresses, i found different environment variables to be set that can help people to install smoothly this repo (i will share them when i finish a right install, to contribute to this project).
I had the following trouble: "Tried to convert SDF [world] into [plugin]". I solved it using gz-sim with commit hash 2938ede, as you suggested here (gazebosim/gz-sim#1555), following the tutorial written here (https://gazebosim.org/docs/fortress/install_ubuntu_src) for building gazebo fortress from source.
However, running the example "ros2 run drl_grasping ex_random_agent.bash", the simulation in Gazebo doesn't start correctly (other messages seems to be equal to what i obtain from the execution of your docker image, running the same command).
I had the following errors, i cannot find anything online:
I thought that the problem could be related to the other packages of Gazebo Fortress (https://raw.githubusercontent.com/ignition-tooling/gazebodistro/master/collection-fortress.yaml): maybe they are newer if compared to gz-sim (with hash 2938ede) and this version mismatches causes problems of compatibility inside Gazebo.
Then, i tried to recompile gz-sim together with older versions of the other packages (gz-cmake, gz-physics, gz-sensors etc) using commit hashes referred to periods prior to 14/04/2022 (data when date gz-sim with commit hash 2938ede was released). I used “gitk” in each gazebo package folder in order to restore a version of that package which could correspond to the same period of our needed commit of gzsim.
I don't know if this approach could be successful but up to now it doesn't work. Maybe you can give me the list of right commit hash for each package inside gazebo and i can overcome this issue. It is just a guess, nothing else.
In general, beside all the unuseful stuffs that i have mentioned, could you suggest me a solution?
Thank you for supporting me in this work.
The text was updated successfully, but these errors were encountered: