Closed dlaboy closed 4 months ago
@dlaboy it’s most likely you have not set up the GZ environment variables correctly, but you will need to provide more information in order to diagnose your problem.
Should include platform, OS version, Gazebo version, output logs from gz sim -v4.
I'm running it on .zsh, macOS Sonoma version 14.3.1. Gazebo Garden, these are the output logs from gz sim -v4
Thanks @dlaboy. Few more questions:
GZ_*
variables in the terminal used to run gz sim
$ env | grep GZ
I apologize, I think I solve this particular problem, colcon build aborted the particular gz-waves1 directory so it wasn't creating install/lib executable files. I'm having another problem know hahah. which I will post next.
Ones I run gz sim-v4 -s -r catamaran_waves.sdf, this error appears
dlaboy@Diegos-MacBook-Pro ~ % gz sim -v4 -s -r catamaran_waves.sdf [Msg] Gazebo Sim Server v8.1.0 [Msg] Loading SDF world file[/Users/dlaboy/Desktop/college/roboboat_stuff/repos/gz_ws/src/SITL_Models/Gazebo/worlds/catamaran_waves.sdf]. [Msg] Serving entity system service on [/entity/system/add] [Dbg] [Physics.cc:860] Loaded [gz::physics::dartsim::Plugin] from library [/opt/homebrew/Cellar/gz-physics7/7.0.0_4/lib/gz-physics-7/engine-plugins/libgz-physics-dartsim-plugin.dylib] [Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::Physics] 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] [Sensors.cc:527] Configuring Sensors system [Dbg] [Sensors.cc:446] SensorsPrivate::Run [Dbg] [Sensors.cc:422] SensorsPrivate::RenderThread started [Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::Sensors] for entity [1] [Dbg] [Sensors.cc:262] Waiting for init [Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::SceneBroadcaster] for entity [1] [Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::Imu] for entity [1] [Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::NavSat] for entity [1] [Err] [SystemLoader.cc:92] Failed to load system plugin [asv_sim2-anemometer-system] : Could not find shared library. WARNING: All log messages before absl::InitializeLog() is called are written to STDERR E0000 00:00:1709209400.230898 15253 descriptor_database.cc:633] File already exists in database: gz/msgs/time.proto F0000 00:00:1709209400.231043 15253 descriptor.cc:2122] Check failed: GeneratedDatabase()->Add(encoded_file_descriptor, size) Check failure stack trace: @ 0x10090ea7c absl::lts_20230802::log_internal::LogMessage::SendToLog() @ 0x10090e580 absl::lts_20230802::log_internal::LogMessage::Flush() @ 0x10090ed8c absl::lts_20230802::log_internal::LogMessageFatal::~LogMessageFatal() @ 0x10090eda4 absl::lts_20230802::log_internal::LogMessageFatal::~LogMessageFatal() @ 0x10495516c google::protobuf::DescriptorPool::InternalAddGeneratedFile() @ 0x1049d0880 google::protobuf::(anonymous namespace)::AddDescriptors() @ 0x1049d0868 google::protobuf::(anonymous namespace)::AddDescriptors() @ 0x1049d0868 google::protobuf::(anonymous namespace)::AddDescriptors() @ 0x1049d0868 google::protobuf::(anonymous namespace)::AddDescriptors() @ 0x1049d08b4 google::protobuf::internal::AddDescriptorsRunner::AddDescriptorsRunner() @ 0x1893f5a24 _ZZNK5dyld46Loader25findAndRunAllInitializersERNS_12RuntimeStateEENK3$_0clEv_blockinvoke @ 0x18943b0f4 ZNK5dyld313MachOAnalyzer18forEachInitializerER11DiagnosticsRKNS0_15VMAddrConverterEU13block_pointerFvjEPKv_block_invoke.202 @ 0x18942e668 ___ZNK5dyld39MachOFile14forEachSectionEU13block_pointerFvRKNS0_11SectionInfoEbRbE_block_invoke @ 0x1893d52fc dyld3::MachOFile::forEachLoadCommand() @ 0x18942d6a0 dyld3::MachOFile::forEachSection() @ 0x189430188 dyld3::MachOFile::forEachInitializerPointerSection() @ 0x18943ade8 dyld3::MachOAnalyzer::forEachInitializer() @ 0x1893f1b38 dyld4::Loader::findAndRunAllInitializers() @ 0x1893f7f70 dyld4::JustInTimeLoader::runInitializers() @ 0x1893f1f24 dyld4::Loader::runInitializersBottomUp() @ 0x1893f1f00 dyld4::Loader::runInitializersBottomUp() @ 0x1893f1f00 dyld4::Loader::runInitializersBottomUp() @ 0x1893f1f00 dyld4::Loader::runInitializersBottomUp() @ 0x1893f5ab0 dyld4::Loader::runInitializersBottomUpPlusUpwardLinks()::$_1::operator()() @ 0x1893f20f0 dyld4::Loader::runInitializersBottomUpPlusUpwardLinks() @ 0x1894107ac dyld4::APIs::dlopen_from() @ 0x10062e380 gz::plugin::Loader::Implementation::LoadLib() @ 0x10062e144 gz::plugin::Loader::LoadLib() @ 0x10109bb74 gz::sim::SystemLoaderPrivate::InstantiateSystemPlugin() @ 0x10109b758 gz::sim::v8::SystemLoader::LoadPlugin() @ 0x10109ea68 gz::sim::v8::SystemManager::LoadPlugin() @ 0x101080210 gz::sim::v8::SimulationRunner::LoadPlugins() @ 0x101064144 gz::common::EventT<>::Signal<>() @ 0x10104b0b8 gz::sim::v8::EventManager::Emit<>() @ 0x101049fa4 gz::sim::v8::SdfEntityCreator::CreateEntities() @ 0x101014d94 gz::sim::v8::LevelManager::LoadActiveEntities() @ 0x1010142bc gz::sim::v8::LevelManager::UpdateLevelsState() @ 0x10107ebf0 gz::sim::v8::SimulationRunner::SimulationRunner() @ 0x101076acc gz::sim::v8::ServerPrivate::CreateEntities() @ 0x10106f3f4 gz::sim::v8::Server::Server() @ 0x10046ce44 runServer @ 0x19a2ef050 ffi_call_SYSV @ 0x19a2f7adc ffi_call_int @ 0x1002d16e8 Init_fiddle_function @ 0x1fa6d4514 rb_thread_call_without_gvl2 @ 0x1002d1154 Init_fiddle_function @ 0x1fa70a4b0 rb_vm_fstring_table @ 0x1fa6f94fc rb_vm_get_insns_address_table @ 0x1fa707144 rb_vm_exec @ 0x1fa5e61d0 ruby_exec_node @ 0x1fa5e606c ruby_run_node @ 0x10027353c main @ 0x1893d90e0 start Stack trace (most recent call last):
zsh: abort gz sim -v4 -s -r catamaran_waves.sdf
These are the values for GZ_*
dlaboy@Diegos-MacBook-Pro ~ % env | grep GZ GZ_SIM_SYSTEM_PLUGIN_PATH=/Users/dlaboy/Desktop/college/roboboat_stuff/repos/gz_ws/src/ardupilot_gazebo/build:/Users/dlaboy/Desktop/college/roboboat_stuff/repos/gz_ws/install/lib: GZ_SIM_RESOURCE_PATH=:/Users/dlaboy/Desktop/college/roboboat_stuff/repos/gz_ws/src/SITL_Models/Gazebo/models:/Users/dlaboy/Desktop/college/roboboat_stuff/repos/gz_ws/src/SITL_Models/Gazebo/worlds:/Users/dlaboy/Desktop/college/roboboat_stuff/repos/gz_ws/src/asv_wave_sim/gz-waves-models/models:/Users/dlaboy/Desktop/college/roboboat_stuff/repos/gz_ws/src/asv_wave_sim/gz-waves-models/world_models:/Users/dlaboy/Desktop/college/roboboat_stuff/repos/gz_ws/src/asv_wave_sim/gz-waves-models/worlds GZ_VERSION=garden GZ_GUI_PLUGIN_PATH=$GZ_GUI_PLUGIN_PATH:~/Desktop/college/roboboat_stuff/repos/gz_ws/src/asv_wave_sim/gz-waves/src/gui/plugins/waves_control/build
Have you run the basic examples in this repo first? Your first issue was with running BlueBoat, and now you are running the Catamaran model (which depends on other plugins as well). So it's not clear where exactly your problem is and what model you are trying to run.
Please make sure the issues your raise here are specific to this software - specifically the waves and hydrodynamics plugins and the example documented in the README. Issues are for reporting software bugs, not general user support.
For problems running the examples in SITL_Models you should post to ArduPilot Discourse.
I'm running the BlueBoat model in the catamaran_waves.sdf world. Didn't knew there was a separate world for BlueBoat, so I just commented and added BlueBoat's
The problem with the catamaran world is that it also depends on asv_sim
. For example you are not finding the anemometer sensor:
[Err] [SystemLoader.cc:92] Failed to load system plugin [asv_sim2-anemometer-system] : Could not find shared library.
In order to determine whether your problem is with this plugin, or something else you need to run the simplest example that uses this repo. That's the basic waves.sdf
world decribed in the README. If that's not working then we can look into why here. If it is working then that's a user support issue to be dealt with elsewhere.
Okk I will try this
Same problem happens running waves.sdf world
dlaboy@Diegos-MacBook-Pro ~ % gz sim -v4 -s -r waves.sdf [Msg] Gazebo Sim Server v8.1.0 [Msg] Loading SDF world file[/Users/dlaboy/Desktop/college/roboboat_stuff/repos/gz_ws/src/asv_wave_sim/gz-waves-models/worlds/waves.sdf]. [Msg] Serving entity system service on [/entity/system/add] [Dbg] [Physics.cc:860] Loaded [gz::physics::dartsim::Plugin] from library [/opt/homebrew/Cellar/gz-physics7/7.0.0_4/lib/gz-physics-7/engine-plugins/libgz-physics-dartsim-plugin.dylib] [Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::Physics] for entity [1] [Dbg] [Sensors.cc:527] Configuring Sensors system [Dbg] [Sensors.cc:446] SensorsPrivate::Run [Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::Sensors] for entity [1] [Dbg] [Sensors.cc:422] SensorsPrivate::RenderThread started [Dbg] [Sensors.cc:262] 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] WARNING: All log messages before absl::InitializeLog() is called are written to STDERR E0000 00:00:1709211283.284471 34670 descriptor_database.cc:633] File already exists in database: gz/msgs/time.proto F0000 00:00:1709211283.284503 34670 descriptor.cc:2122] Check failed: GeneratedDatabase()->Add(encoded_file_descriptor, size) Check failure stack trace: @ 0x1046eea7c absl::lts_20230802::log_internal::LogMessage::SendToLog() @ 0x1046ee580 absl::lts_20230802::log_internal::LogMessage::Flush() @ 0x1046eed8c absl::lts_20230802::log_internal::LogMessageFatal::~LogMessageFatal() @ 0x1046eeda4 absl::lts_20230802::log_internal::LogMessageFatal::~LogMessageFatal() @ 0x10873516c google::protobuf::DescriptorPool::InternalAddGeneratedFile() @ 0x1087b0880 google::protobuf::(anonymous namespace)::AddDescriptors() @ 0x1087b0868 google::protobuf::(anonymous namespace)::AddDescriptors() @ 0x1087b0868 google::protobuf::(anonymous namespace)::AddDescriptors() @ 0x1087b0868 google::protobuf::(anonymous namespace)::AddDescriptors() @ 0x1087b08b4 google::protobuf::internal::AddDescriptorsRunner::AddDescriptorsRunner() @ 0x1893f5a24 _ZZNK5dyld46Loader25findAndRunAllInitializersERNS_12RuntimeStateEENK3$_0clEv_blockinvoke @ 0x18943b0f4 ZNK5dyld313MachOAnalyzer18forEachInitializerER11DiagnosticsRKNS0_15VMAddrConverterEU13block_pointerFvjEPKv_block_invoke.202 @ 0x18942e668 ___ZNK5dyld39MachOFile14forEachSectionEU13block_pointerFvRKNS0_11SectionInfoEbRbE_block_invoke @ 0x1893d52fc dyld3::MachOFile::forEachLoadCommand() @ 0x18942d6a0 dyld3::MachOFile::forEachSection() @ 0x189430188 dyld3::MachOFile::forEachInitializerPointerSection() @ 0x18943ade8 dyld3::MachOAnalyzer::forEachInitializer() @ 0x1893f1b38 dyld4::Loader::findAndRunAllInitializers() @ 0x1893f7f70 dyld4::JustInTimeLoader::runInitializers() @ 0x1893f1f24 dyld4::Loader::runInitializersBottomUp() @ 0x1893f1f00 dyld4::Loader::runInitializersBottomUp() @ 0x1893f1f00 dyld4::Loader::runInitializersBottomUp() @ 0x1893f1f00 dyld4::Loader::runInitializersBottomUp() @ 0x1893f5ab0 dyld4::Loader::runInitializersBottomUpPlusUpwardLinks()::$_1::operator()() @ 0x1893f20f0 dyld4::Loader::runInitializersBottomUpPlusUpwardLinks() @ 0x1894107ac dyld4::APIs::dlopen_from() @ 0x10440e380 gz::plugin::Loader::Implementation::LoadLib() @ 0x10440e144 gz::plugin::Loader::LoadLib() @ 0x104e7bb74 gz::sim::SystemLoaderPrivate::InstantiateSystemPlugin() @ 0x104e7b758 gz::sim::v8::SystemLoader::LoadPlugin() @ 0x104e7ea68 gz::sim::v8::SystemManager::LoadPlugin() @ 0x104e60210 gz::sim::v8::SimulationRunner::LoadPlugins() @ 0x104e44144 gz::common::EventT<>::Signal<>() @ 0x104e2b0b8 gz::sim::v8::EventManager::Emit<>() @ 0x104e29fa4 gz::sim::v8::SdfEntityCreator::CreateEntities() @ 0x104df4d94 gz::sim::v8::LevelManager::LoadActiveEntities() @ 0x104df42bc gz::sim::v8::LevelManager::UpdateLevelsState() @ 0x104e5ebf0 gz::sim::v8::SimulationRunner::SimulationRunner() @ 0x104e56acc gz::sim::v8::ServerPrivate::CreateEntities() @ 0x104e4f3f4 gz::sim::v8::Server::Server() @ 0x10424ce44 runServer @ 0x19a2ef050 ffi_call_SYSV @ 0x19a2f7adc ffi_call_int @ 0x1040b16e8 Init_fiddle_function @ 0x1fa6d4514 rb_thread_call_without_gvl2 @ 0x1040b1154 Init_fiddle_function @ 0x1fa70a4b0 rb_vm_fstring_table @ 0x1fa6f94fc rb_vm_get_insns_address_table @ 0x1fa707144 rb_vm_exec @ 0x1fa5e61d0 ruby_exec_node @ 0x1fa5e606c ruby_run_node @ 0x10405353c main @ 0x1893d90e0 start Stack trace (most recent call last):
zsh: abort gz sim -v4 -s -r waves.sdf dlaboy@Diegos-MacBook-Pro ~ %
This is how my install/lib directory should look like?
![Uploading Screenshot 2024-02-29 at 9.02.32 AM.png…]()
Ok. This error:
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::Imu] for entity [1]
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1709211283.284471 34670 descriptor_database.cc:633] File already exists in database: gz/msgs/time.proto
F0000 00:00:1709211283.284503 34670 descriptor.cc:2122] Check failed: GeneratedDatabase()->Add(encoded_file_descriptor, size)
*** Check failure stack trace: ***
@ 0x1046eea7c absl::lts_20230802::log_internal::LogMessage::SendToLog()
@ 0x1046ee580 absl::lts_20230802::log_internal::LogMessage::Flush()
@ 0x1046eed8c absl::lts_20230802::log_internal::LogMessageFatal::~LogMessageFatal()
@ 0x1046eeda4 absl::lts_20230802::log_internal::LogMessageFatal::~LogMessageFatal()
@ 0x10873516c google::protobuf::DescriptorPool::InternalAddGeneratedFile()
@ 0x1087b0880 google::protobuf::(anonymous namespace)::AddDescriptors()
@ 0x1087b0868 google::protobuf::(anonymous namespace)::AddDescriptors()
@ 0x1087b0868 google::protobuf::(anonymous namespace)::AddDescriptors()
@ 0x1087b0868 google::protobuf::(anonymous namespace)::AddDescriptors()
Suggests there is something bad happening with the messaging layer - not sure why that is. There is a reference to the IMU sensor as well. It could be a problem with the Gazebo installation, but hard to tell at this point.
gz-sim
run correctly (these are the examples found in gz-sim/examples
in the source repo).waves.sdf
so it is only the wave sim running - no wamv or other objects.It looks like there may be inconsistent usage of protobuf libraries, so the version linked when building the plugins is not consistent with the version that the binaries were built with. Again hard to tell at this point.
dlaboy@Diegos-MBP ~ % gz sim -v4 -s -r iris_runway.sdf
[Msg] Gazebo Sim Server v8.1.0
[Msg] Loading SDF world file[/Users/dlaboy/Desktop/college/roboboat_stuff/repos/gz_ws/src/ardupilot_gazebo/worlds/iris_runway.sdf].
[Msg] Serving entity system service on [/entity/system/add]
[Dbg] [Physics.cc:860] Loaded [gz::physics::dartsim::Plugin] from library [/opt/homebrew/Cellar/gz-physics7/7.0.0_4/lib/gz-physics-7/engine-plugins/libgz-physics-dartsim-plugin.dylib]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::Physics] for entity [1]
[Dbg] [Sensors.cc:527] Configuring Sensors system
[Dbg] [Sensors.cc:446] SensorsPrivate::Run
[Dbg] [Sensors.cc:422] SensorsPrivate::RenderThread started
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::Sensors] for entity [1]
[Dbg] [Sensors.cc:262] Waiting for init
[Msg] Create service on [/world/iris_runway/create]
[Msg] Remove service on [/world/iris_runway/remove]
[Msg] Pose service on [/world/iris_runway/set_pose]
[Msg] Pose service on [/world/iris_runway/set_pose_vector]
[Msg] Light configuration service on [/world/iris_runway/light_config]
[Msg] Physics service on [/world/iris_runway/set_physics]
[Msg] SphericalCoordinates service on [/world/iris_runway/set_spherical_coordinates]
[Msg] Enable collision service on [/world/iris_runway/enable_collision]
[Msg] Disable collision service on [/world/iris_runway/disable_collision]
[Msg] Material service on [/world/iris_runway/visual_config]
[Msg] Material service on [/world/iris_runway/wheel_slip]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::UserCommands] for entity [1]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::SceneBroadcaster] for entity [1]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::Imu] for entity [1]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::NavSat] for entity [1]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::JointStatePublisher] for entity [15]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::LiftDrag] for entity [15]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::LiftDrag] for entity [15]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::LiftDrag] for entity [15]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::LiftDrag] for entity [15]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::LiftDrag] for entity [15]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::LiftDrag] for entity [15]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::LiftDrag] for entity [15]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::LiftDrag] for entity [15]
[Msg] ApplyJointForce subscribing to Double messages on [/model/iris_with_ardupilot/joint/iris_with_standoffs::rotor_0_joint/cmd_force]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::ApplyJointForce] for entity [15]
[Msg] ApplyJointForce subscribing to Double messages on [/model/iris_with_ardupilot/joint/iris_with_standoffs::rotor_1_joint/cmd_force]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::ApplyJointForce] for entity [15]
[Msg] ApplyJointForce subscribing to Double messages on [/model/iris_with_ardupilot/joint/iris_with_standoffs::rotor_2_joint/cmd_force]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::ApplyJointForce] for entity [15]
[Msg] ApplyJointForce subscribing to Double messages on [/model/iris_with_ardupilot/joint/iris_with_standoffs::rotor_3_joint/cmd_force]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::ApplyJointForce] for entity [15]
[Dbg] [SystemManager.cc:74] Loaded system [ArduPilotPlugin] for entity [15]
[Msg] Loaded level [3]
[Msg] Serving world controls on [/world/iris_runway/control], [/world/iris_runway/control/state] and [/world/iris_runway/playback/control]
[Msg] Serving GUI information on [/world/iris_runway/gui/info]
[Msg] World [iris_runway] initialized with [1ms] physics profile.
[Msg] Serving world SDF generation service on [/world/iris_runway/generate_world_sdf]
[Msg] Serving world names on [/gazebo/worlds]
[Msg] Resource path add service on [/gazebo/resource_paths/add].
[Msg] Resource path get service on [/gazebo/resource_paths/get].
[Msg] Resource path resolve service on [/gazebo/resource_paths/resolve].
[Msg] Resource paths published on [/gazebo/resource_paths].
[Msg] Server control service on [/server_control].
[Msg] Found no publishers on /stats, adding root stats topic
[Msg] Found no publishers on /clock, adding root clock topic
[Dbg] [SimulationRunner.cc:545] Creating PostUpdate worker threads: 7
[Dbg] [SimulationRunner.cc:556] Creating postupdate worker thread (0)
[Dbg] [SimulationRunner.cc:556] Creating postupdate worker thread (1)
[Dbg] [SimulationRunner.cc:556] Creating postupdate worker thread (2)
[Dbg] [SimulationRunner.cc:556] Creating postupdate worker thread (3)
[Dbg] [SimulationRunner.cc:556] Creating postupdate worker thread (4)
[Dbg] [SimulationRunner.cc:556] Creating postupdate worker thread (5)
[Msg] Found IMU sensor with name [iris_with_standoffs::imu_link::imu_sensor]
[Dbg] [ArduPilotPlugin.cc:1156] Computed IMU topic to be: world/iris_runway/model/iris_with_ardupilot/model/iris_with_standoffs/link/imu_link/sensor/imu_sensor/imu
[Dbg] [ImuSensor.cc:150] IMU data for [iris_with_ardupilot::iris_with_standoffs::imu_link::imu_sensor] advertised on [world/iris_runway/model/iris_with_ardupilot/model/iris_with_standoffs/link/imu_link/sensor/imu_sensor/imu]
[Msg] Serving scene information on [/world/iris_runway/scene/info]
[Msg] Serving graph information on [/world/iris_runway/scene/graph]
[Msg] Serving full state on [/world/iris_runway/state]
[Msg] Serving full state (async) on [/world/iris_runway/state_async]
[Msg] Publishing scene information on [/world/iris_runway/scene/info]
[Msg] Publishing entity deletions on [/world/iris_runway/scene/deletion]
[Msg] Publishing state changes on [/world/iris_runway/state]
[Msg] Publishing pose messages on [/world/iris_runway/pose/info]
[Msg] Publishing dynamic pose messages on [/world/iris_runway/dynamic_pose/info]
[Dbg] [EntityComponentManager.cc:1655] Updated state thread iterators: 10 threads processing around 5 entities each.
[Wrn] [Model.hh:69] Skipping serialization / deserialization for models with //pose/@relative_to attribute.
[Wrn] [Component.hh:144] Trying to serialize component with data type [N3sdf3v145WorldE], which doesn't have operator<<
. Component will not be serialized.
Just random question. Does protofobuf need to be installed?
@dlaboy - I've update my MacBook to the latest version of Sonoma and Xcode, installed gz-harmonic
from binaries, and rebuilt the wave libraries. It is running as expected, so somewhere along the line your machine is mis-configured. Here are the details of my setup:
System:
brew:
brew update && brew upgrade
To really force a clean install you can (should) force uninstall all versions of Python, remove the /opt/homebrew/python3.xx/site-packages
, remove $HOME/Library/Python/3.xx
and remove colcon
and other Python binaries from /opt/homebrew/bin
. Then force a reinstall of everything:
brew list | xargs brew reinstall
This will make sure you have all the sonoma bottles.
Then only use a virtual environment for Python.
$ mkdir ~/.venv
$ /opt/homebrew/opt/python@3.11/libexec/bin/python3 -m venv ~/.venv/ros2-3.11
$ ~/.venv/ros2-3.11/bin/activate
This is my complete brew install listing:
Then install colcon
into the Python virtual environment:
python -m pip install -U colcon-common-extensions
Ensure you have the following in ~/.zprofile
###############################
# HOMEBREW
eval "$(/opt/homebrew/bin/brew shellenv)"
###############################
# QT5
export CMAKE_PREFIX_PATH=/opt/homebrew/opt/qt@5:$CMAKE_PREFIX_PATH
export PATH=/opt/homebrew/opt/qt@5/bin:$PATH
##############################################################################
# COLCON
export COLCON_EXTENSION_BLOCKLIST=colcon_core.event_handler.desktop_notification
##############################################################################
# GAZEBO
export GZ_VERSION=harmonic
This is my workspace structure
(ros2-3.11) rhys@MacBookPro2 gz_waves_ws % tree -L 2
.
├── build
│ ├── COLCON_IGNORE
│ └── gz-waves1
├── install
│ ├── COLCON_IGNORE
│ ├── _local_setup_util_ps1.py
│ ├── _local_setup_util_sh.py
│ ├── bin
│ ├── include
│ ├── lib
│ ├── local_setup.bash
│ ├── local_setup.ps1
│ ├── local_setup.sh
│ ├── local_setup.zsh
│ ├── setup.bash
│ ├── setup.ps1
│ ├── setup.sh
│ ├── setup.zsh
│ └── share
├── log
│ ├── COLCON_IGNORE
│ ├── build_2024-02-29_19-58-52
│ ├── build_2024-02-29_20-07-31
│ ├── latest -> latest_build
│ └── latest_build -> build_2024-02-29_20-07-31
├── setup.sh
└── src
└── asv_wave_sim
and I am using the master
branch of asv_wave_sim
.
The build command is:
(ros2-3.11) rhys@MacBookPro2 gz_waves_ws % colcon build --symlink-install --merge-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_CXX_STANDARD=17 -DCMAKE_MACOSX_RPATH=FALSE -DCMAKE_INSTALL_NAME_DIR=$(pwd)/install/lib
The setup.sh
script is:
#!/bin/sh
#--------------------------------------------------------------------------
# Usage
#
# $ source ./set_gz_env.sh
#
#--------------------------------------------------------------------------
# Set Ogre environment variables
export OGRE2_RESOURCE_PATH=/opt/homebrew/opt/ogre2.3/lib/OGRE-2.3/OGRE
#--------------------------------------------------------------------------
# Set Gazebo environment variables
export GZ_VERSION=harmonic
# gz-transport
# if set to 1 this displays all transport messages
export GZ_VERBOSE=0
export GZ_IP=127.0.0.1
export GZ_SIM_RESOURCE_PATH=$GZ_SIM_RESOURCE_PATH:\
$HOME/Code/robotics/gz_waves_ws/src/asv_wave_sim/gz-waves-models/models:\
$HOME/Code/robotics/gz_waves_ws/src/asv_wave_sim/gz-waves-models/world_models:\
$HOME/Code/robotics/gz_waves_ws/src/asv_wave_sim/gz-waves-models/worlds
export GZ_SIM_SYSTEM_PLUGIN_PATH=$GZ_SIM_SYSTEM_PLUGIN_PATH:\
$HOME/Code/robotics/gz_waves_ws/install/lib:
export GZ_GUI_PLUGIN_PATH=$GZ_GUI_PLUGIN_PATH:\
$HOME/Code/robotics/gz_waves_ws/src/asv_wave_sim/gz-waves/src/gui/plugins/waves_control/build
#--------------------------------------------------------------------------
# Use brew version of ruby to avoid SIP issues
export PATH=/opt/homebrew/opt/ruby/bin:${PATH}
#--------------------------------------------------------------------------
# Python path for bindings
export PYTHONPATH=${PYTHONPATH}:\
$HOME/Code/osrf/gz_harmonic_ws/install/lib/python
and finally source the setup.sh
and run the example:
$ . ./setup.sh
$ gz sim -v4 -s -r waves.sdf
$ . ./setup.sh
$ gz sim -v4 -g
The scene is darker than in my examples, as I apply a gamma correction patch when building from source.
I'm going to close this as there isn't an issue with the code or development required. If you follow the instructions above carefully the simulation will work.
Hello! I'm having problems loading the hydrodynamics plugin, any idea what the problem could be?