You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This occurred when trying to launch harmonic_demo, which leaves that parameter default-initialized.
Steps to reproduce
Launch harmonic_demo (main branch) and start simulation.
Output
/usr/include/c++/14.1.1/bits/random.h:2138: std::normal_distribution<_RealType>::param_type::param_type(_RealType, _RealType) [with _RealType = double]: Assertion '_M_stddev > _RealType(0)' failed.
Stack trace (most recent call last) in thread 860836:
#10 Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in
#9 Object "/usr/lib/libc.so.6", at 0x750b5ca3949b, in
#8 Object "/usr/lib/libc.so.6", at 0x750b5c9b439c, in
#7 Object "/usr/lib/libstdc++.so.6", at 0x750b58ae1cf3, in
#6 Object "/usr/lib/libgz-sim8.so.8", at 0x750b57c3d59a, in
#5 Object "/usr/lib/gz-sim-8/plugins/libgz-sim-odometry-publisher-system.so", at 0x750b0e742a42, in gz::sim::v8::systems::OdometryPublisherPrivate::UpdateOdometry(gz::sim::v8::UpdateInfo const&, gz::sim::v8::EntityComponentManager const&)
#4 Object "/usr/lib/libgz-math7.so.7", at 0x750b58cd929f, in gz::math::v7::Rand::DblNormal(double, double)
#3 Object "/usr/lib/libstdc++.so.6", at 0x750b58ad3baf, in std::__glibcxx_assert_fail(char const*, int, char const*, char const*)
#2 Object "/usr/lib/libc.so.6", at 0x750b5c9444c2, in abort
#1 Object "/usr/lib/libc.so.6", at 0x750b5c95d11f, in gsignal
#0 Object "/usr/lib/libc.so.6", at 0x750b5c9b63f4, in
Aborted (Signal sent by tkill() 860305 1000)
The text was updated successfully, but these errors were encountered:
Environment
Description
Similar to the issue reported in gz-sensors and solved in this PR, the following calls to DblNormal craps out if gaussianNoise is set to zero.
gz-sim/src/systems/odometry_publisher/OdometryPublisher.cc
Lines 392 to 453 in 5f03199
This occurred when trying to launch harmonic_demo, which leaves that parameter default-initialized.
Steps to reproduce
Launch harmonic_demo (main branch) and start simulation.
Output
The text was updated successfully, but these errors were encountered: