RobustFieldAutonomyLab / LeGO-LOAM

LeGO-LOAM: Lightweight and Ground-Optimized Lidar Odometry and Mapping on Variable Terrain
BSD 3-Clause "New" or "Revised" License
2.33k stars 1.11k forks source link

Transformation when advertising and subscribing poses #209

Closed qq1962572025 closed 3 years ago

qq1962572025 commented 3 years ago
    laserOdometry.header.stamp = cloudHeader.stamp;
    laserOdometry.pose.pose.orientation.x = -geoQuat.y;
    laserOdometry.pose.pose.orientation.y = -geoQuat.z;
    laserOdometry.pose.pose.orientation.z = geoQuat.x;
    laserOdometry.pose.pose.orientation.w = geoQuat.w;
    laserOdometry.pose.pose.position.x = transformSum[3];
    laserOdometry.pose.pose.position.y = transformSum[4];
    laserOdometry.pose.pose.position.z = transformSum[5];

Like the code above,the poses are transformed before advertising and after subscribing.I wonder the transformation is offset. What is the purpose of doing so?

shikeqin123 commented 3 years ago

maybe just for V-loam. lego-loam is inherited from loam, its author may want to add a camera coordinate system. 

------------------ 原始邮件 ------------------ 发件人: "RobustFieldAutonomyLab/LeGO-LOAM" <notifications@github.com>; 发送时间: 2020年11月5日(星期四) 下午4:41 收件人: "RobustFieldAutonomyLab/LeGO-LOAM"<LeGO-LOAM@noreply.github.com>; 抄送: "Subscribed"<subscribed@noreply.github.com>; 主题: [RobustFieldAutonomyLab/LeGO-LOAM] Transformation when advertising and subscribing poses (#209)

 laserOdometry.header.stamp = cloudHeader.stamp;     laserOdometry.pose.pose.orientation.x = -geoQuat.y;     laserOdometry.pose.pose.orientation.y = -geoQuat.z;     laserOdometry.pose.pose.orientation.z = geoQuat.x;     laserOdometry.pose.pose.orientation.w = geoQuat.w;     laserOdometry.pose.pose.position.x = transformSum[3];     laserOdometry.pose.pose.position.y = transformSum[4];     laserOdometry.pose.pose.position.z = transformSum[5];  

Like the code above,the poses are transformed before advertising and after subscribing.I wonder the transformation is offset. What is the purpose of doing so?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.