mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
Projection map frame is still doing roll/pitch transformation (without z)
This commit is contained in:
@@ -2587,11 +2587,8 @@ void MainWindow::createAndAddProjectionMap(
|
|||||||
|
|
||||||
// add pose rotation without yaw
|
// add pose rotation without yaw
|
||||||
float roll, pitch, yaw;
|
float roll, pitch, yaw;
|
||||||
if(_preferencesDialog->projMapFrame())
|
pose.getEulerAngles(roll, pitch, yaw);
|
||||||
{
|
voxelCloud = util3d::transformPointCloud(voxelCloud, Transform(0,0, _preferencesDialog->projMapFrame()?pose.z():0, roll, pitch, 0));
|
||||||
pose.getEulerAngles(roll, pitch, yaw);
|
|
||||||
voxelCloud = util3d::transformPointCloud(voxelCloud, Transform(0,0, pose.z(), roll, pitch, 0));
|
|
||||||
}
|
|
||||||
|
|
||||||
if(_preferencesDialog->projMaxObstaclesHeight())
|
if(_preferencesDialog->projMaxObstaclesHeight())
|
||||||
{
|
{
|
||||||
@@ -2637,12 +2634,10 @@ void MainWindow::createAndAddProjectionMap(
|
|||||||
if(_octomap->addedNodes().empty() ||
|
if(_octomap->addedNodes().empty() ||
|
||||||
nodeId > _octomap->addedNodes().rbegin()->first)
|
nodeId > _octomap->addedNodes().rbegin()->first)
|
||||||
{
|
{
|
||||||
if(_preferencesDialog->projMapFrame())
|
Transform tinv = Transform(0,0,_preferencesDialog->projMapFrame()?pose.z():0, roll, pitch, 0).inverse();
|
||||||
{
|
groundCloud = util3d::transformPointCloud(groundCloud, tinv);
|
||||||
Transform tinv = Transform(0,0,pose.z(), roll, pitch, 0).inverse();
|
obstaclesCloud = util3d::transformPointCloud(obstaclesCloud, tinv);
|
||||||
groundCloud = util3d::transformPointCloud(groundCloud, tinv);
|
|
||||||
obstaclesCloud = util3d::transformPointCloud(obstaclesCloud, tinv);
|
|
||||||
}
|
|
||||||
if(_preferencesDialog->isOctomapGroundAnObstacle())
|
if(_preferencesDialog->isOctomapGroundAnObstacle())
|
||||||
{
|
{
|
||||||
*obstaclesCloud += *groundCloud;
|
*obstaclesCloud += *groundCloud;
|
||||||
|
|||||||
Reference in New Issue
Block a user