Skip to content

Commit

Permalink
revert(dummy_perception): change leaf size and disable ray trace (#468)
Browse files Browse the repository at this point in the history
* Revert "chore(dummy_perception_publisher): change raytrace param (#414)"

This reverts commit d29e0e1.

Signed-off-by: taikitanaka <[email protected]>

* chore(dummy_perception): revert change leaf size and disable raytrace

Signed-off-by: taikitanaka <[email protected]>
  • Loading branch information
taikitanaka3 authored Mar 3, 2022
1 parent 14afa55 commit 6f778c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<remap from="input/reset" to="input/reset" />
<param name="visible_range" value="$(var visible_range)" />
<param name="detection_successful_rate" value="0.999" />
<param name="enable_ray_tracing" value="true" />
<param name="enable_ray_tracing" value="false" />
<param name="use_object_recognition" value="$(var use_object_recognition)" />
</node>
<include file="$(find-pkg-share shape_estimation)/launch/shape_estimation.launch.xml">
Expand Down
4 changes: 1 addition & 3 deletions simulator/dummy_perception_publisher/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ void DummyPerceptionPublisherNode::timerCallback()
new pcl::PointCloud<pcl::PointXYZ>);
pcl::VoxelGridOcclusionEstimation<pcl::PointXYZ> ray_tracing_filter;
ray_tracing_filter.setInputCloud(merged_pointcloud_ptr);
// 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.setLeafSize(0.25, 0.25, 0.25);
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 6f778c9

Please sign in to comment.