ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question


asked 2015-05-18 09:42:01 -0500

osmancns gravatar image

updated 2015-05-18 09:42:31 -0500

ı am reading hector slam wiki page.

but ı have a problem where is that .launch file or which under directory ? Use without odom frame

it says like this on page :

**If you do not require the use of a odom frame (for example because your platform does not provide any usable odometry) you can directly publish a transformation from map to base_link:

<param name="pub_map_odom_transform" value="true"/>
<param name="map_frame" value="map" />
<param name="base_frame" value="base_frame" />
<param name="odom_frame" value="base_frame" />**
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2015-05-20 08:57:49 -0500

felixwatzlawik gravatar image

Just go to the directory where that launchfile is placed.

For example it is in /home/workspace/myros/launchfiles, go with cd to that directory (cd /home/workspace/myros/launchfiles) and then start the launchfile with

roslaunch myexamplefile.launch

Here is an example file which works with a sick s300 laserscanner and hector mapping without odometry:

    <node name="laser" pkg="cob_sick_s300" type="cob_sick_s300" respawn="false" output="screen" />

    <node pkg="tf" type="static_transform_publisher" name="odom_to_base_lnk" args="0 0 0 0 0 0 /odom /base_link 100"/>
    <node pkg="tf" type="static_transform_publisher" name="base_lnk_to_laser_lnk" args="0 0 0 0 0 0 /base_link /camera_link 100"/>

    <param name="pub_map_odom_transform" value="true"/>
    <param name="map_frame" value="map" />
    <param name="base_frame" value="base_link" />
    <param name="odom_frame" value="base_link" />

    <node pkg="hector_mapping" type="hector_mapping" name="hector_mapping" output="screen">

        <param name="use_tf_scan_transformation" value="true"/>
        <param name="use_tf_pose_start_estimate" value="false"/>

        <param name="map_resolution" value="0.050"/>
        <param name="map_size" value="2048"/>
        <param name="map_start_x" value="0.5"/>
        <param name="map_start_y" value="0.5" />
        <param name="map_multi_res_levels" value="3" />

        <param name="update_factor_free" value="0.4"/>
        <param name="update_factor_occupied" value="0.9" />    
        <param name="map_update_distance_thresh" value="0.04"/>
        <param name="map_update_angle_thresh" value="0.006" />

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

        <param name="scan_subscriber_queue_size" value="5"/>
        <param name="scan_topic" value="laser/scan"/>

        <param name="tf_map_scanmatch_transform_frame_name" value="scanmatcher_frame" />

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-05-18 09:42:01 -0500

Seen: 1,152 times

Last updated: May 20 '15