fix: update device changed callback unregistration to use INVALID_CALLBACK_ID constant

This commit is contained in:
ob-yalian
2025-12-15 16:43:27 +08:00
parent c9b25331f3
commit 84d50d1499
2 changed files with 2 additions and 4 deletions
-2
View File
@@ -199,8 +199,6 @@ void savePointsToPly(const std::shared_ptr<ob::Frame> &frame, const std::string
tf2::Quaternion rotationMatrixToQuaternion(const float rotation[9]) {
Eigen::Matrix3f m;
// We need to be careful about the order, as RS2 rotation matrix is
// column-major, while Eigen::Matrix3f expects row-major.
m << rotation[0], rotation[1], rotation[2], rotation[3], rotation[4], rotation[5], rotation[6],
rotation[7], rotation[8];
Eigen::Quaternionf q(m);