RobotnikAutomation / rbvogui_sim

Packages for the simulation of the RB-VOGUI, RB-VOGUI-XL and RB-VOGUI-6W robots (including UR arms)
https://robotnik.eu/es/productos/robots-moviles/rb-vogui/
21 stars 15 forks source link

gazebo gui crash on lauching simulation #4

Closed Dkaka closed 2 years ago

Dkaka commented 2 years ago

Hi Robert,

I'm trying out the simulation for the robot but couldn't got the gazebo gui. Looks like it's crashing on lauching.

(I followed the procedures for installing the dependencies. And confirmed that barebone gazebo works fine. And I tried both stable and the developer version) However, it looks like the backend wokrs fine? I could use the teleop panel in Rviz to drive the robot and see the 2D laser points.

Here are the terminal outputs for bringing up RB-Vogui:

roslaunch rbvogui_sim_bringup rbvogui_complete.launch robot_model:=rbvogui

Screenshot from 2021-11-26 13-26-03 Screenshot from 2021-11-26 13-25-22

Screenshot from 2021-11-26 13-24-52

robert-ros commented 2 years ago

Hi Ziwen!

I just tested the current repository (developer version) on a virtual machine with a fresh Ubuntu and ROS installation and it worked without problems.

From the pictures you've attached it seems that is a problem related to Gazebo, specifically the GPU. I would bet that it is a problem with the graphical drivers in you laptop.

This repository uses the GPU for the 2D and 3D lasers. Its performance is better than without GPU. Anyway, you can disable the GPU by setting the use_gpu parameter to false. Just add this parameter to the rbvogui model that you want.

For example, launch a simple rbvogui without GPU:

roslaunch rbvogui_sim_bringup rbvogui_complete.launch robot_model:=rbvogui robot_xacro:=rbvogui_std.urdf.xacro use_gpu:=false

Dkaka commented 2 years ago

Hi Robert,

I guess you are right that this is a problem related to GPU. I tried the repository on a laptop with Intel integrated Graphics card and it works fine.

The previous issue was on a machine with an Nvidia Quadro card. I tried it again on an Nvidia Gefore card and the issue persisits. Perhaps you could try running it on a machine with an Nvidia GPU to reproduce the problem?

At the moment, I could restore gazebo_gui after it crashed by launching gzeclinet in a separate terminal with: gzclient -V (--verbose also works) However, the GUI is missing current states of simulation in the bottom, such as FPS. image

robert-ros commented 2 years ago

Sorry I closed the issue accidentally.

What happens if you delete the sensors of the robot? (benewake, lidar, imu and gps) You can do it by deleting the sensor parts in the urdf of the robot

Furthermore, what happens if you launch a different world? For example:

roslaunch rbvogui_sim_bringup rbvogui_complete.launch world:=worlds/rbvogui.world

Finally, open a terminal and type nvidia-settings. Make sure that it works in Performance Mode:

image

robert-ros commented 2 years ago

Hi Ziwen!

This issue is fixed. For some reason Gazebo crashes when you have the following conditions

- Gabezo version 9.0.0.
- GPU enabled
- A gazebo world with orthographic projection by default.

I have changed the default world to perspective projection, so the problem should not happen again.