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

Can not filter ground in foxy #104

Open
ShuiYunXi opened this issue May 9, 2022 · 1 comment
Open

Can not filter ground in foxy #104

ShuiYunXi opened this issue May 9, 2022 · 1 comment

Comments

@ShuiYunXi
Copy link

ShuiYunXi commented May 9, 2022

Hello,Could you tell me why not filtet the ground when I use launch the octomap_server.
environment:Ubuntu20.04
ROS's Version:foxy
launch file:

<!--
  Example launch file for octomap_server mapping:
  Listens to incoming PointCloud2 data and incrementally builds an octomap.
  The data is sent out in different representations.

  Copy this file into your workspace and adjust as needed, see
  www.ros.org/wiki/octomap_server for details
-->
<launch>
	<node pkg="octomap_server" exec="octomap_server_node" name="octomap_server">
		<param name="resolution" value="0.1" />

		<!-- fixed map frame (set to 'map' if SLAM or localization running!) -->
		<!-- <param name="frame_id" value="laser" /> -->
		<!-- <param name="frame_id" value="laser" /> -->
		<param name="frame_id" value="map" />
		<param name="base_frame_id" value="base_footprint" />

		<!-- maximum range to integrate (speedup!) -->
		<param name="sensor_model.max_range" value="5.0" />
		<param name="filter_ground" value="true" />
		<param name = "ground_filter/plane_distance"  value = "1" />
		<param name = "ground_filter/angle"  value = "1" />

		<param name = "filter_speckles"  value = "true" />


		<param name = "outrem_radius" value = "1.0" />
    	<param name = "outrem_neighbors"  value = "10" />

		<!-- data source to integrate (PointCloud2) -->
		<remap from="cloud_in" to="/PointCloud2" />
		<!-- <remap from="projection_map" to="/map" /> -->


	</node>
	<!-- <node pkg="joint_state_publisher" exec="joint_state_publisher" name="joint_state_publisher" />
    <node pkg="robot_state_publisher" exec="robot_state_publisher" name="robot_state_publisher" />
    <node pkg="tf2_ros" exec="static_transform_publisher" name="static_transform_publisher" args="0 0 0 0 0 0 /base_footprint /laser" /> -->

</launch>

@kJh19
Copy link

kJh19 commented Jun 15, 2022

The actual parameter name for ros2 is "filter_ground_plane".
Went trough octomap_server.cpp and looked at the "declare_parameter" functions.
At least for the ros2 branch this one and some others do not match the names on the ros wiki (which I suppose is for ros1, so just no documentation for the changes yet)
There are some extra parameters there as well, so check it out!

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

No branches or pull requests

3 participants