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

Cannot successfully build package #139

Closed fbenti closed 1 year ago

fbenti commented 1 year ago

Ubuntu 22 Ros2 Humble

The colcon build command that you specified returns the following error:

stderr.log

srmainwaring commented 1 year ago

Hello @fbenti, it's not clear from the log what the error is. There are warnings I don't see a line containing error- is the log complete?

fbenti commented 1 year ago

Looks like it was necessary to restart the pc, now I can build it correctly. However, when I run the gazebo world, gz sim -r waves.sdf, it seems like there's no ArduPilotPlugin.

[Err] [SystemLoader.cc:118] Failed to load system plugin: (Reason: Could not find shared library)
- Requested plugin name: [ArduPilotPlugin]
- Requested library name: [libArduPilotPlugin.so]
- Library search paths:
  - /home/aut/.gz/sim/plugins/
  - /usr/lib/x86_64-linux-gnu/gz-sim-7/plugins/
  - /home/aut/.ignition/gazebo/plugins/
  - /
  - /home/aut/gz_ws/install/lib/
[Err] [SDFFeatures.cc:812] The geometry element of collision [collision] couldn't be created
[Err] [SDFFeatures.cc:812] The geometry element of collision [collision] couldn't be created
Msg [NameManager::issueNewName] (Skeleton::BodyNode | barrage::buoy0) The name [base_link] is a duplicate, so it has been renamed to [base_link(1)]
Msg [NameManager::issueNewName] (Skeleton::N4dart8dynamics9ShapeNodeE | barrage::buoy0) The name [base_link:collision] is a duplicate, so it has been renamed to [base_link:collision(1)]
Msg [NameManager::issueNewName] (Skeleton::BodyNode | barrage::buoy0) The name [base_link] is a duplicate, so it has been renamed to [base_link(2)]
Msg [NameManager::issueNewName] (Skeleton::N4dart8dynamics9ShapeNodeE | barrage::buoy0) The name [base_link:collision] is a duplicate, so it has been renamed to [base_link:collision(2)]
Msg [NameManager::issueNewName] (Skeleton::BodyNode | barrage::buoy0) The name [base_link] is a duplicate, so it has been renamed to [base_link(3)]
Msg [NameManager::issueNewName] (Skeleton::N4dart8dynamics9ShapeNodeE | barrage::buoy0) The name [base_link:collision] is a duplicate, so it has been renamed to [base_link:collision(3)]
Msg [NameManager::issueNewName] (Skeleton::BodyNode | barrage::buoy0) The name [base_link] is a duplicate, so it has been renamed to [base_link(4)]
Msg [NameManager::issueNewName] (Skeleton::N4dart8dynamics9ShapeNodeE | barrage::buoy0) The name [base_link:collision] is a duplicate, so it has been renamed to [base_link:collision(4)]
Msg [NameManager::issueNewName] (Skeleton::BodyNode | barrage::buoy0) The name [base_link] is a duplicate, so it has been renamed to [base_link(5)]
Msg [NameManager::issueNewName] (Skeleton::N4dart8dynamics9ShapeNodeE | barrage::buoy0) The name [base_link:collision] is a duplicate, so it has been renamed to [base_link:collision(5)]
Msg [NameManager::issueNewName] (Skeleton::BodyNode | barrage::buoy0) The name [base_link] is a duplicate, so it has been renamed to [base_link(6)]
Msg [NameManager::issueNewName] (Skeleton::N4dart8dynamics9ShapeNodeE | barrage::buoy0) The name [base_link:collision] is a duplicate, so it has been renamed to [base_link:collision(6)]
Warning [Utils.cc:130] [/sdf/plugin[@name="gz::sim::systems::WavesVisual"]:<data-string>:L1]: XML Element[plugin], child of element[sdf], not defined in SDF. Copying[plugin] as children of [sdf].
Warning [Utils.cc:130] [/sdf/plugin[@name="gz::sim::systems::WavesVisual"]:<data-string>:L1]: XML Element[plugin], child of element[sdf], not defined in SDF. Copying[plugin] as children of [sdf].
fbenti commented 1 year ago

Also, unrelated, is there any parameter to change the dimension of the area?

srmainwaring commented 1 year ago

The ArduPilot plugin needs to be built separately - you can comment the plugin SDF in the WAM-V out unless you're planning to use AP for control. The instructions for the ArduPilot plugin are here: https://ardupilot.org/dev/docs/sitl-with-gazebo.html

The dimensions are controlled in the wave model SDF. The README has details: https://github.com/srmainwaring/asv_wave_sim#waves-model-and-visual-plugins

srmainwaring commented 1 year ago

Looks like it was necessary to restart the pc, now I can build it correctly.

The build issue appears to be resolved - closing.