srmainwaring / asv_wave_sim

This package contains plugins that support the simulation of waves and surface vessels in Gazebo.
GNU General Public License v3.0
110 stars 29 forks source link

[Err] [SystemLoader.cc:119] Failed to load system plugin: (Reason: Could not find shared library) #162

Closed EricDaJiang closed 2 months ago

EricDaJiang commented 2 months ago

Hello! When I run gz sim -v4 -s -r -g waves.sdf, the Gazebo window does not appear, and the following error occurs:

leojt@Legion-Y7000P:~/usv_simulator/asv_wave_ws/src/asv_wave_sim/gz-waves-models/worlds$ source ~/.bashrc not found: "/home/leojt/usv_integrat/install/flash3d_gnss_imu_fusion/share/flash3d_gnss_imu_fusion/local_setup.bash" not found: "/home/leojt/usv_integrat/install/flash3d_gnss_imu_fusion/share/flash3d_gnss_imu_fusion/local_setup.bash" leojt@Legion-Y7000P:~/usv_simulator/asv_wave_ws/src/asv_wave_sim/gz-waves-models/worlds$ gz sim -v4 -s -r -g waves.sdf [Msg] Gazebo Sim Server v7.7.0 [Msg] Loading SDF world file[/home/leojt/usv_simulator/asv_wave_ws/src/asv_wave_sim/gz-waves-models/worlds/waves.sdf]. [Msg] Serving entity system service on [/entity/system/add] [Dbg] [Physics.cc:880] Loaded [gz::physics::dartsim::Plugin] from library [/usr/lib/x86_64-linux-gnu/gz-physics-6/engine-plugins/libgz-physics-dartsim-plugin.so] [Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::Physics] for entity [1] [Dbg] [Sensors.cc:525] Configuring Sensors system [Dbg] [Sensors.cc:444] SensorsPrivate::Run [Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::Sensors] for entity [1] [Dbg] [Sensors.cc:421] SensorsPrivate::RenderThread started [Dbg] [Sensors.cc:261] Waiting for init [Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::SceneBroadcaster] for entity [1] [Msg] Create service on [/world/waves/create] [Msg] Remove service on [/world/waves/remove] [Msg] Pose service on [/world/waves/set_pose] [Msg] Pose service on [/world/waves/set_pose_vector] [Msg] Light configuration service on [/world/waves/light_config] [Msg] Physics service on [/world/waves/set_physics] [Msg] SphericalCoordinates service on [/world/waves/set_spherical_coordinates] [Msg] Enable collision service on [/world/waves/enable_collision] [Msg] Disable collision service on [/world/waves/disable_collision] [Msg] Material service on [/world/waves/visual_config] [Msg] Material service on [/world/waves/wheel_slip] [Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::UserCommands] for entity [1] [Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::Imu] for entity [1] [Err] [SystemLoader.cc:119] Failed to load system plugin: (Reason: Could not find shared library)

srmainwaring commented 2 months ago

@EricDaJiang, most likely a problem with the system plugin path. If you did not use the --merge-install flag when building the libraries will not be under the <workspace>/install/lib directory, which you can check by inspection.