Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

点云viewer 只有坐标系 没有稠密图 #4

Open
wanbin19921212 opened this issue May 31, 2019 · 11 comments
Open

点云viewer 只有坐标系 没有稠密图 #4

wanbin19921212 opened this issue May 31, 2019 · 11 comments

Comments

@wanbin19921212
Copy link

No description provided.

@LiHeng2015
Copy link

配置文件相比原来的新增了三个参数,不加的话就没有点云地图

@xiaobainixi
Copy link
Owner

楼上正确,点云滤波用的三个参数

@Escapexin
Copy link

配置文件相比原来的新增了三个参数,不加的话就没有点云地图

请问是哪个配置文件啊?

@RaymondChanSZU666
Copy link

请问怎么修改配置文件呀,谢谢了

@DK-HU
Copy link

DK-HU commented Jun 1, 2021

请问在哪个配置文件添加?

@mengyao-wang
Copy link

请问您指的是 TUMX.yaml 中最后加的如下三个参数么? 如果是的话,参数是有的,但还是不能先是稠密点云。请问可能会是什么原因呢?
PointCloudMapping.Resolution: 0.01
meank: 50 thresh: 2.0

@mengyao-wang
Copy link

mengyao-wang commented May 12, 2022 via email

@NeedForNoodles
Copy link

NeedForNoodles commented Jun 27, 2022

请问您指的是 TUMX.yaml 中最后加的如下三个参数么? 如果是的话,参数是有的,但还是不能先是稠密点云。请问可能会是什么原因呢? PointCloudMapping.Resolution: 0.01 meank: 50 thresh: 2.0

修改这三个参数没用的。
它不显示,是因为始终点云处于更新,所以显示线程被阻塞了。
/src/pointcloudmapping.cc中39行附近。改成这样:
PointCloudMapping::PointCloudMapping(double resolution_,double meank_,double thresh_)
{
this->resolution = resolution_;
this->meank = meank;
this->thresh = thresh_;
statistical_filter.setMeanK(meank);
statistical_filter.setStddevMulThresh(thresh);
voxel.setLeafSize( resolution, resolution, resolution);
globalMap.reset(new PointCloud);
loopbusy=false;
viewerThread = make_shared( bind(&PointCloudMapping::viewer, this ) );
}
2022-06-27_15-49
上图是我的测试结果,祝好运。

@Janebek
Copy link

Janebek commented Sep 11, 2022

请问您指的是 TUMX.yaml 中最后加的如下三个参数么? 如果是的话,参数是有的,但还是不能先是稠密点云。请问可能会是什么原因呢? PointCloudMapping.Resolution: 0.01 meank: 50 thresh: 2.0

修改这三个参数没用的。 它不显示,是因为始终点云处于更新,所以显示线程被阻塞了。 /src/pointcloudmapping.cc中39行附近。改成这样: PointCloudMapping::PointCloudMapping(double resolution_,double meank_,double thresh_) { this->resolution = resolution_; this->meank = meank; this->thresh = thresh_; statistical_filter.setMeanK(meank); statistical_filter.setStddevMulThresh(thresh); voxel.setLeafSize( resolution, resolution, resolution); globalMap.reset(new PointCloud); loopbusy=false; viewerThread = make_shared( bind(&PointCloudMapping::viewer, this ) ); } 2022-06-27_15-49 上图是我的测试结果,祝好运。

解决了!非常感谢!

@wz8530
Copy link

wz8530 commented May 29, 2023

请问您指的是 TUMX.yaml 中最后加的如下三个参数么? 如果是的话,参数是有的,但还是不能先是稠密点云。请问可能会是什么原因呢? PointCloudMapping.Resolution: 0.01 meank: 50 thresh: 2.0

修改这三个参数没用的。 它不显示,是因为始终点云处于更新,所以显示线程被阻塞了。 /src/pointcloudmapping.cc中39行附近。改成这样: PointCloudMapping::PointCloudMapping(double resolution_,double meank_,double thresh_) { this->resolution = resolution_; this->meank = meank; this->thresh = thresh_; statistical_filter.setMeanK(meank); statistical_filter.setStddevMulThresh(thresh); voxel.setLeafSize( resolution, resolution, resolution); globalMap.reset(new PointCloud); loopbusy=false; viewerThread = make_shared( bind(&PointCloudMapping::viewer, this ) ); } 2022-06-27_15-49 上图是我的测试结果,祝好运。

globalMap = boost::make_shared< PointCloud >( );
loopbusy=false;
viewerThread = std::make_shared<thread>( bind(&PointCloudMapping::viewer, this) );

ubuntu18.04 ros-melodic环境,添加loopbusy=false即可实时显示点云。

@Pattern6
Copy link

为什么我得到的点云是错的,就是点云的位置不对,是因为我配置文件的问题吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests