Skip to content

Commit 353062c

Browse files
Fix bug in IMU Message publishing
Angular velocity covariance is not published for IMUs, as it erroneously used the orientation_covariance for publishing. Fixed this bug by updating to use angular_velocity_covariance.
1 parent b9a23bc commit 353062c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/ROSIntegration/Private/Conversion/Messages/sensor_msgs/SensorMsgsImuConverter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class ROSINTEGRATION_API USensorMsgsImuConverter : public UBaseMessageConverter
5959
UGeometryMsgsQuaternionConverter::_bson_append_child_quaternion(b, "orientation", &msg->orientation);
6060
_bson_append_double_tarray(b, "orientation_covariance", msg->orientation_covariance);
6161
UGeometryMsgsVector3Converter::_bson_append_child_vector3(b, "angular_velocity", &msg->angular_velocity);
62-
_bson_append_double_tarray(b, "angular_velocity_covariance", msg->orientation_covariance);
62+
_bson_append_double_tarray(b, "angular_velocity_covariance", msg->angular_velocity_covariance);
6363
UGeometryMsgsVector3Converter::_bson_append_child_vector3(b, "linear_acceleration", &msg->linear_acceleration);
6464
_bson_append_double_tarray(b, "linear_acceleration_covariance", msg->linear_acceleration_covariance);
6565
}

0 commit comments

Comments
 (0)