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

About using hector_slam can not display the map problem #99

Open
ju-mingyue opened this issue Oct 26, 2021 · 1 comment
Open

About using hector_slam can not display the map problem #99

ju-mingyue opened this issue Oct 26, 2021 · 1 comment

Comments

@ju-mingyue
Copy link

ju-mingyue commented Oct 26, 2021

Hello, I encountered the problem that the map cannot be displayed when building the map when using sick nano3 lidar and nano3 ros package. Below is the file I configured:
1635158269(1)
Start hector_slam as follows:
image

mapping_default.launch is as follows:
`

<arg name="tf_map_scanmatch_transform_frame_name" default="scanmatcher_frame"/>
<arg name="base_frame" default="base_link"/>
<arg name="odom_frame" default="base_link"/> 
<arg name="pub_map_odom_transform" default="true"/>
<arg name="scan_subscriber_queue_size" default="5"/>
<arg name="scan_topic" default="/safetyscanners/scan"/>
<arg name="map_size" default="2048"/>

<node pkg="hector_mapping" type="hector_mapping" name="hector_mapping" output="screen"
<!-- Frame names -->
<param name="map_frame" value="map" />
<param name="base_frame" value="$(arg base_frame)" />
<param name="odom_frame" value="$(arg odom_frame)" />
<!-- Tf use -->
<param name="use_tf_scan_transformation" value="true"/>
<param name="use_tf_pose_start_estimate" value="false"/>
<!--<param name="pub_map_odom_transform" value="$(arg pub_mapping_defaultap_odom_transform)"/>  -->
<param name="pub_map_odom_transform" value="true"/>

<!-- Map size / start point -->
<param name="map_resolution" value="0.050"/>
<param name="map_size" value="$(arg map_size)"/>
<param name="map_start_x" value="0.5"/>
<param name="map_start_y" value="0.5" />
<param name="map_multi_res_levels" value="2" />

<!-- Map update parameters -->
<param name="update_factor_free" value="0.4"/>
<param name="update_factor_occupied" value="0.9" />    
<param name="map_update_distance_thresh" value="0.02"/>
<!--<param name="map_update_angle_thresh" value="0.9" />-->
<param name="map_update_angle_thresh" value="0.06" /> 
<param name="laser_z_min_value" value = "-1.0" />
<param name="laser_z_max_value" value = "1.0" />

<!-- Advertising config --> 
<param name="advertise_map_service" value="true"/>

<param name="scan_subscriber_queue_size" value="$(arg scan_subscriber_queue_size)"/>
<param name="scan_topic" value="$(arg scan_topic)"/>

<!-- Debug parameters -->
<!--
  <param name="output_timing" value="false"/>
  <param name="pub_drawings" value="true"/>
  <param name="pub_debug_output" value="true"/>
-->
<param name="tf_map_scanmatch_transform_frame_name" value="$(arg tf_map_scanmatch_transform_frame_name)" />
`

image

But when I run it, the result is as shown in the figure below:
1635160134(1)
1635160161(1)
1635160267(1)

@ju-mingyue
Copy link
Author

ju-mingyue commented Oct 26, 2021

@strecksen Hello, do you have a solution to the above problem? Looking forward to your help.

@ju-mingyue ju-mingyue changed the title About using sick nano3 lidar can not display the map problem About using hector_slam can not display the map problem Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant