Skip to content

Commit 288db04

Browse files
authored
chore(dummy_perception_publisher): change raytrace param (#414)
Signed-off-by: tanaka3 <ttatcoder@outlook.jp>
1 parent d29390a commit 288db04

File tree

1 file changed

+3
-1
lines changed
  • simulator/dummy_perception_publisher/src

1 file changed

+3
-1
lines changed

simulator/dummy_perception_publisher/src/node.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ void DummyPerceptionPublisherNode::timerCallback()
180180
new pcl::PointCloud<pcl::PointXYZ>);
181181
pcl::VoxelGridOcclusionEstimation<pcl::PointXYZ> ray_tracing_filter;
182182
ray_tracing_filter.setInputCloud(merged_pointcloud_ptr);
183-
ray_tracing_filter.setLeafSize(0.25, 0.25, 0.25);
183+
// above this value raytrace won't be as expected
184+
const double leaf_size = 0.02;
185+
ray_tracing_filter.setLeafSize(leaf_size, leaf_size, leaf_size);
184186
ray_tracing_filter.initializeVoxelGrid();
185187
for (size_t i = 0; i < v_pointcloud.size(); ++i) {
186188
pcl::PointCloud<pcl::PointXYZ>::Ptr ray_traced_pointcloud_ptr(

0 commit comments

Comments
 (0)