-
-
Notifications
You must be signed in to change notification settings - Fork 73
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 doesn't populate with URDF model on Mac (Apple M2) #459
Comments
UPDATE 2024/04/07: the workaround to avoid this problem is to force the installation of
Can you report the commands that you launch for these three experiments? |
After installing ROS Noetic in the Conda environment by Then I launched the simulation with an empty world by running: I even tried running: |
I am trying to reproduce your problem (even if just on linux), but running your commands results in an error related to
Is that expected? Should be set to some value? |
That can be fixed with Or you can add |
I should also add that I am running these commands from bash. If you are using the terminal in Mac that is if you are running it from .zsh then you will have to add them in I tried running them in zsh too but I get the same problem of the URDF model not spawning in gazebo. I even tried creating a new Conda environment and cloning the turtlebot3 packages from the GitHub repository into my catkin workspace (I had tested this out on a linux machine and it worked) and built them from that but again its the same issue. |
I have the same problem in Linux. Do you have any idea on how to launch gazebo with the |
I did try running the commands with: I tried these too: but again the same result. |
I just found out this same problem mentioned in #343. @mmattamala had a work around and I tried to replicate it but I couldn't. @traversaro would be cool if you could look into that observation. |
Why did you set |
Here is what I get when setting verbose flag:
|
Thanks, this is really helpful. Can you share who did you set the I think that the problem is that plugins such as libgazebo_ros_api_plugin.dylib are transitively depending on libprotobuf via gazebo public headers and CMake config, but as they do not declare an explicit dependency on libprotobuf, they do not get libprotobuf's run_export correctly set, and then they break as soon as a new libprotobuf is released. We do not get this on conda-forge packages as the CI fails if DSO library dependencies are not correctly declared (and you get errors such as However, having these checks would only make the CI fail, it would not fix the issue. Possible solutions for the issue (that has been tracked for a long time at conda-forge/gazebo-feedstock#107) are:
|
The verbose flag has been added to both Here is my
|
My bad, protobuf versioning scheme is a bit confusing (https://protobuf.dev/support/version-support/). The correct version is |
OK. So I can confirm that installing v4.24.4 of libprotobuf makes the spawn working again. With these 2 steps, everything seems to work fine, thanks! |
I found those commands online looking at answers posted by people who were trying to run gazebo in verbose, I am not an expert. I am still learning. Apologies if I have given wrong information. |
This fixed the issue of the URDF model spawn. Thank you! |
Does doing this for the laser fix the issue of it not publishing LaserScan too? I just tried to run a Subscriber that I wrote to access the LaserScan, but there was no scan topic. |
No problem, no need for apologies. I was asking this as if the resources that you used contain incorrect information, other users may find them, so I wanted to understand if we can fix them. Can you share the link to them? Thanks! |
Yes, I also had to add the link for the LDS to work. |
I'm now on another computer, and I'm unable to install this specific version of libprotobuf:
Any idea? |
It seems like your are using Python 3.9 - you should be using 3.11 with the latest builds of RoboStack. |
You have a pin to python 3.9, so probably you are using an older version of robostack packages, that was also built with an older version of protobuf. You can either create a fresh environment, or check via the error which version of protobuf those version of the plugin require. |
Update: Just created a new environment and installed I tried to do that but I'm still not getting the topic running. Could you please tell me the command that you used? |
I have just entirely reinstalled a new env to switch to libprotobuf v4.24.4, and I used these two commands:
So far, both camera and lidar are working correctly. |
Do you think this would be resolved by a simple rebuild @traversaro thanks to conda-forge/gazebo-feedstock#218? |
That is my guess. |
Solution to issue cannot be found in the documentation.
Issue
When launching turtlebot3 simulation on gazebo, the URDF model doesn't get spawned. When running the simulation with an empty world there is just an empty gazebo window, whereas when running with a house world, it gets populated with the house model but again there is no robot.
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: