Skip to content

Commit

Permalink
chore(dummy_perception_publisher): change raytrace param (#414)
Browse files Browse the repository at this point in the history
Signed-off-by: tanaka3 <[email protected]>
  • Loading branch information
taikitanaka3 authored Feb 21, 2022
1 parent d29390a commit 288db04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion simulator/dummy_perception_publisher/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ void DummyPerceptionPublisherNode::timerCallback()
new pcl::PointCloud<pcl::PointXYZ>);
pcl::VoxelGridOcclusionEstimation<pcl::PointXYZ> ray_tracing_filter;
ray_tracing_filter.setInputCloud(merged_pointcloud_ptr);
ray_tracing_filter.setLeafSize(0.25, 0.25, 0.25);
// above this value raytrace won't be as expected
const double leaf_size = 0.02;
ray_tracing_filter.setLeafSize(leaf_size, leaf_size, leaf_size);
ray_tracing_filter.initializeVoxelGrid();
for (size_t i = 0; i < v_pointcloud.size(); ++i) {
pcl::PointCloud<pcl::PointXYZ>::Ptr ray_traced_pointcloud_ptr(
Expand Down

0 comments on commit 288db04

Please sign in to comment.