mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-07 02:07:45 +08:00
MapCloudDisplay: fixed default channel for scans. imu_to_tf: fixed wrong stabilized orientation with non null roll/pitch
This commit is contained in:
@@ -85,9 +85,8 @@ private:
|
||||
}
|
||||
|
||||
tf::StampedTransform tmp;
|
||||
tfListener_.lookupTransform(baseFrameId_, msg->header.frame_id, msg->header.stamp, tmp);
|
||||
tmp *= st;
|
||||
st.setRotation(tmp.getRotation());
|
||||
tfListener_.lookupTransform(msg->header.frame_id, baseFrameId_, msg->header.stamp, tmp);
|
||||
st *= tmp;
|
||||
st.child_frame_id_ = baseFrameId_;
|
||||
}
|
||||
catch(tf::TransformException & ex)
|
||||
|
||||
Reference in New Issue
Block a user