How to crate a map with gmapping and hokuyo laser
I have already install my hokuyolaser ( urg_node ) and it's working perfectly when I see the data on rviz. But when I launch " roslaunch turtlebot_navigation gmapping_demo.launch" , after i had launch roscore - minimal.launch - urg_node , it's my kinect data on the screen.
I want to save a map with my lidar and not with my kinect.
How should I do to save a map with my Hokuyo and not with my kinect? This is my file gmapping_demo.launch :
<launch> <include file="$(find turtlebot_bringup)/launch/3dsensor.launch">
<arg name="rgb_processing" value="false"/>
<arg name="depth_registration" value="false"/>
<arg name="depth_processing" value="false"/>
<arg name="scan_topic" value="/scan"/> </include>
<include file="$(find turtlebot_navigation)/launch/includes/gmapping.launch.xml"/>
<include file="$(find turtlebot_navigation)/launch/includes/move_base.launch.xml"/>
</launch<>
I want to change for my hokuyo but how ?
Thanks a lot
I have create my file : laser_gmapping_demo.launch and now, my laser working and I can make a map. Thanks for all answer.
<launch>
<node pkg="urg_node" type="urg_node" name="laser_scan">
<param name="port" value="/dev/ttyACM0"/>
<param name="frame_id" value="base_link"/>
<param name="calibrate_time" type="bool" value="true"/>
<param name="intensity" type="bool" value="false"/>
<param name="min_ang" value="-2.356194437"/>
<param name="max_ang" value="2.35619443"/>
<param name="cluster" value="1"/>
<remap from="scan" to="base_scan" />
</node>
<node pkg="tf" type="static_transform_publisher" name="base_link_to_base_laser_link" args="0.058 0 0.125 0.0 0.0 3.1416 /base_link /base_laser_link 100" />
<node pkg="tf" type="static_transform_publisher" name="base_footprint_to_base_link" args="0 0 0 0 0 0 /base_footprint /base_link 100" />
<!-- Run self-filter -->
<node name="gmapping" pkg="gmapping" type="slam_gmapping" args="scan:=base_scan" output="screen">
<param name="linearUpdate" value="0.1" />
<param name="angularUpdate" value="0.05" />
<param name="xmin" value="-20" />
<param name="ymin" value="-20" />
<param name="xmax" value="20" />
<param name="ymax" value="20" />
<param name="maxUrange" value="6" />
</node>
<!--- Run gmapping -->
<include file="$(find turtlebot_navigation)/config/gmapping.launch.xml" >
<arg name="scan_topic" value="scan_filtered" />
</include>
<!--- Run Move Base and Robot Pose EKF -->
<include file="$(find turtlebot_navigation)/laser/move_base_laser.launch" />
</launch>