Advertisement
Guest User

Untitled

a guest
Oct 11th, 2020
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.83 KB | None | 0 0
  1. <launch>
  2.  
  3.   <arg name="model" default="$(find testbot_description)/urdf/robot.urdf"/>
  4.   <arg name="gui" default="true" />
  5.   <arg name="rvizconfig" default="$(find urdf_tutorial)/rviz/urdf.rviz" />
  6.  
  7.   <param name="robot_description" command="$(find xacro)/xacro --inorder $(arg model)" />
  8.   <param name="use_gui" value="$(arg gui)"/>
  9.  
  10.   <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" />
  11.   <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />
  12.   <!--node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" /-->
  13.  
  14.  
  15.   <!-- Map server -->
  16.   <!--node name="map_server" pkg="map_server" type="map_server" args="/home/dev/catkin_ws2/src/testbot_description/maps/maphouse.yaml"/-->
  17.  
  18.  
  19.   <include file="$(find realsense2_camera)/launch/rs_camera.launch"/>
  20.  
  21.   <node pkg="depthimage_to_laserscan" type="depthimage_to_laserscan" name="depthimage_to_laserscan">
  22.     <param name="scan_height" value="3"/>
  23.     <param name="output_frame_id" value="base_link"/>
  24.     <remap from="image" to="/camera/depth/image_rect_raw" />
  25.   </node>
  26.  
  27.   <!-- Maping Node -->
  28.   <node pkg="gmapping" type="slam_gmapping" name="gmapping_node" output="screen" >
  29.     <remap from="odom" to="your/odom/topic" />
  30.   </node>
  31.  
  32.  
  33.  
  34.   <!-- Place map frame at odometry frame -->
  35.   <node pkg="tf" type="static_transform_publisher" name="map_odom_broadcaster" args="0 0 0 0 0 0 map odom 100"/>
  36.  
  37.   <!-- Localization -->
  38.   <node pkg="amcl" type="amcl" name="amcl" output="screen">
  39.     <remap from="scan" to="scan"/>
  40.     <param name="odom_frame_id" value="odom"/>
  41.     <param name="odom_model_type" value="diff-corrected"/>
  42.     <param name="base_frame_id" value="base_link"/>
  43.     <param name="update_min_d" value="0.5"/>
  44.     <param name="update_min_a" value="1.0"/>
  45.   </node>
  46.   <!--include file="$(find amcl)/examples/amcl_omni.launch"/-->
  47.  
  48.   <!-- Move base -->
  49.   <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
  50.     <rosparam file="$(find testbot_description)/config/costmap_common_params.yaml" command="load" ns="global_costmap" />
  51.     <rosparam file="$(find testbot_description)/config/costmap_common_params.yaml" command="load" ns="local_costmap" />
  52.     <rosparam file="$(find testbot_description)/config/local_costmap_params.yaml" command="load" />
  53.     <rosparam file="$(find testbot_description)/config/global_costmap_params.yaml" command="load" />
  54.     <rosparam file="$(find testbot_description)/config/base_local_planner_params.yaml" command="load" />
  55.    
  56.     <remap from="cmd_vel" to="cmd_vel"/>
  57.     <remap from="odom" to="odom"/>
  58.     <remap from="scan" to="scan"/>
  59.     <param name="move_base/DWAPlannerROS/yaw_goal_tolerance" value="1.0"/>
  60.     <param name="move_base/DWAPlannerROS/xy_goal_tolerance" value="1.0"/>
  61.   </node>
  62.  
  63. </launch>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement