Merge branch 'release/v2.4.0' of http://gitlab.mynt.com/mynteye/mynt-eye-s-sdk into release/v2.4.0

This commit is contained in:
Osenberg 2019-08-09 15:52:13 +08:00
commit ba1874435a

View File

@ -1491,9 +1491,9 @@ class ROSWrapperNodelet : public nodelet::Nodelet {
l2i_msg.header.stamp = tf_stamp;
l2i_msg.header.frame_id = frame_ids_[Stream::LEFT];
l2i_msg.child_frame_id = imu_frame_id_;
l2i_msg.transform.translation.x = l2i_ex.translation[0];
l2i_msg.transform.translation.y = l2i_ex.translation[1];
l2i_msg.transform.translation.z = l2i_ex.translation[2];
l2i_msg.transform.translation.x = 0;
l2i_msg.transform.translation.y = 0;
l2i_msg.transform.translation.z = 0;
if (l2i_ex.rotation[0][0] == 0 && l2i_ex.rotation[2][2] == 0) {
l2i_msg.transform.rotation.x = 0;
l2i_msg.transform.rotation.y = 0;