Skip to content

Commit

Permalink
chore(dummy_perception_publisher): change raytrace param
Browse files Browse the repository at this point in the history
Signed-off-by: tanaka3 <ttatcoder@outlook.jp>
  • Loading branch information
taikitanaka3 committed Feb 18, 2022
1 parent 0e70c77 commit a977252
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 a977252

Please sign in to comment.