-
-
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
Unable to use laser and camera in Gazebo #228
Comments
FWIW, I just tried on the native (arm64) version, same problem: no camera or laser topics available. |
Do you have the log file from Greg spawn_urdf node? |
Here is what I have in
And in
|
One precision maybe: the spawn_urdf crash (in the first post) is not the cause of the laser/camera missing topics, most of the time it launches just fine. I have tested some small things. If I change the definition of the gazebo laser plugin in the gazebo description to
where obvioulsy Then, I evaluated the output of xacro used in the
And nothing special here, the plugin definitions are still here in the parameter. Well, in the end, I still do not have any idea why the laser and camera ROS plugins are not taken into account by gazebo. Maybe a gazebo bug? |
Maybe you can try to give the absolute path to the |
Unfortunatly, no effect ...
|
just making sure: this file exists on your computer, right? |
Yep 😅 :
You can find here those working ( |
but then you are using the wrong path:
Try |
I think gazebo might have automatic handling for the extension. might be better to remove |
Yes, gazebo takes in input the plugin name with |
Actually, I think that if you do not specify anything it will not work. |
I forgot to mention I have already tested both extensions |
I can confirm that nothing happens (i.e. the plugin is not loaded as the topic disappears from ROS), but also no error anywhere. |
Setting the verbose flag leads to:
Quick fix: Proper fix: I have no idea .. |
@Tobias-Fischer 😖 I didn't think about adding the verbose flag to gazebo server, sorry. Indeed, the path to these libraries is in And yes, adding the two links to the two "missing" libraries makes everything work again 👍 |
Random guess: can we try to add |
I think I tried that and it didn't fix it .. will try again Monday. |
I actually have the same issue when spawning my robot in Gazebo. I'm on an Intel MacOS under Catalina. The conda environment is listed here. I'm only using
The log is very similar to the one above. |
Have you tried this workaround? #228 (comment) |
Where did you put the verbose flag to see the detailed error? (to see which dylibs to link) |
I think it's in the launch file. |
I've put this in the launch file:
and shows certainly more messages from gazebo, but no additional errors. I've tried adding links as suggested for |
By looking again at this issue, I suspect I may know what is going on: Gazebo installs Probably we could understand a bit more what is happening by running:
but I do not have currently a macOS system to try this on. |
@sonelu if this is still a problem for you, we can probably understand more also in your case by the output of:
|
By the way, this is the reason the issue is solved on ROS2: ros-simulation/gazebo_ros_pkgs#974 (related issue: ros-simulation/gazebo_ros_pkgs#970). Probably we could do something similar also on ROS1, i.e. adding the plugin directory to |
Here is the output of this command:
Hope it helps! |
Can't we do that easily in our activate.sh script in vinca? |
Should be fixed in the latest Gazebo build - this will be available soon |
Closing here |
According to #459 (comment) the problem is still there. |
Hello (again),
I have a strange issue with gazebo (on a M1 mac, with a Rosetta environment) and its related laser (
libgazebo_ros_laser
) and camera (libgazebo_ros_camera
) plugins. While they are correctly integrated inside URDF/gazebo files, both do not seem to be loaded by gazebo at launch. There is no issue for the imu (libgazebo_ros_imu
) and the controller (libgazebo_ros_diff_drive
) plugins.For instance, using
roslaunch turtlebot3_gazebo turtlebot3_autorace_2020.launch
I get (forget about the usual spawning crash):The very same command, launched from an Ubuntu VM (but with ROS Noetic installed from APT) results in:
As you can see, Laser and Camera plugins are here correctly launched.
FWIW, I have compared the URDF/Gazebo files in both configurations, and they are completely identical. I have also tested with a usually working personal URDF/Gazebo description and the problem is the same.
But while the camera and laser topics are not available for ROS, camera and laser simulations are correctly performed by Gazebo, as I can see the laser scans and the camera images inside Gazebo.
So far I have not been able to debug anything, and I have not spotted any error message anywhere. Any idea where I could find some indications about this issue? Thanks!
The text was updated successfully, but these errors were encountered: