gz small improvements (#24761)

* gz: print version number in init, remove gst plugin spam, rename function

* fix 0 timestamp issue by waiting for clock callback before subscribing to other topics. Refactor to cleanup topic subscriptions

* format

* change gzerr to gzwarn
This commit is contained in:
Jacob Dahl
2025-05-04 14:41:19 -08:00
committed by GitHub
parent 918848095a
commit 2fece23c64
4 changed files with 222 additions and 104 deletions
@@ -175,10 +175,6 @@ void GstCameraSystem::findCameraTopic()
}
}
}
if (!_initialized) {
gzdbg << "No camera topics found yet, will check again next update" << std::endl;
}
}
//////////////////////////////////////////////////
@@ -282,7 +278,7 @@ void GstCameraSystem::gstThreadFunc()
NULL);
} else {
gzerr << "NVIDIA H.264 encoder not available, falling back to software encoder" << std::endl;
gzwarn << "NVIDIA H.264 encoder not available, falling back to software encoder" << std::endl;
encoder = gst_element_factory_make("x264enc", nullptr);
g_object_set(G_OBJECT(encoder),
"bitrate", 4000,