Move launch and rviz files related to navigation to twil_2dnav.
authorWalter Fetter Lages <w.fetter@ieee.org>
Wed, 6 Jan 2021 07:15:27 +0000 (04:15 -0300)
committerWalter Fetter Lages <w.fetter@ieee.org>
Wed, 6 Jan 2021 07:15:27 +0000 (04:15 -0300)
twil_2dnav/launch/gazebo.launch [moved from twil_bringup/launch/gazebo_rviz.launch with 72% similarity]
twil_2dnav/launch/move_base.launch
twil_2dnav/map/centenario1.pgm [moved from twil_2dnav/map/planta_cores.pgm with 100% similarity]
twil_2dnav/map/centenario1.yaml [moved from twil_2dnav/map/map.yaml with 79% similarity]
twil_2dnav/rviz/twil_2dnav.rviz [moved from twil_bringup/rviz/gazebo_rviz.rviz with 100% similarity]

similarity index 72%
rename from twil_bringup/launch/gazebo_rviz.launch
rename to twil_2dnav/launch/gazebo.launch
index b41ebdb..42030ff 100644 (file)
@@ -1,9 +1,9 @@
 <launch>
-       <arg name="paused" default="false"/>
+       <arg name="paused" default="true"/>
        <arg name="headless" default="false"/>
        <arg name="use_sim_time" default="true"/>
        <arg name="wam" default="false"/>
-       <arg name="world" default ="/home/gabriel/Navega/src/twil/twil_description/world/centenario.world"/>
+       <arg name="world" default ="$(find twil_description)/world/centenario.world"/>
        <arg name="controller" default="twist_mrac_linearizing_controller"/>
         <arg name="config" default="$(find twil_bringup)/config/$(arg controller).yaml"/>
 
        </include>
 
        <include file="$(find twil_bringup)/launch/$(arg controller).launch" />
-       
 
        <node pkg="tf2_ros" type="static_transform_publisher" name="odom_frame_publisher" args="0 0 0 0 0 0 1 map odom" />
 
-       <node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher" />
+       <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />
 
-       <node name="rviz" pkg="rviz" type="rviz" args="-d $(find twil_bringup)/rviz/gazebo_rviz.rviz" required="true"/>
+       <node name="rviz" pkg="rviz" type="rviz" args="-d $(find twil_2dnav)/rviz/twil_2dnav.rviz" required="true"/>
 
-       <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" />
+       <include file="$(find twil_2dnav)/launch/move_base.launch" />
 
 </launch>
index 8696beb..661a00d 100644 (file)
@@ -1,19 +1,13 @@
 <launch>
+       <node name="map_server" pkg="map_server" type="map_server" args="$(find twil_2dnav)/map/centenario1.yaml"/>
 
-   <master auto="start"/>
- <!-- Run the map server --> 
-    <node name="map_server" pkg="map_server" type="map_server" args="$(find twil_2dnav)/map/map.yaml"/>
-
- <!--- Run AMCL --> 
-    <!--include file="$(find amcl)/examples/amcl_omni.launch" /-->
-
-   <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
-           <rosparam file="$(find twil_2dnav)/config/costmap_common_params.yaml" command="load" ns="global_costmap" /> 
-           <rosparam file="$(find twil_2dnav)/config/costmap_common_params.yaml" command="load" ns="local_costmap" />
-           <rosparam file="$(find twil_2dnav)/config/local_costmap_params.yaml" command="load" />
-           <rosparam file="$(find twil_2dnav)/config/global_costmap_params.yaml" command="load" /> 
-           <rosparam file="$(find twil_2dnav)/config/base_local_planner_params.yaml" command="load" />
-          
-   </node>
+       <!--include file="$(find amcl)/examples/amcl_omni.launch" /-->
 
+       <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
+               <rosparam file="$(find twil_2dnav)/config/costmap_common_params.yaml" command="load" ns="global_costmap" />
+               <rosparam file="$(find twil_2dnav)/config/costmap_common_params.yaml" command="load" ns="local_costmap" />
+               <rosparam file="$(find twil_2dnav)/config/local_costmap_params.yaml" command="load" />
+               <rosparam file="$(find twil_2dnav)/config/global_costmap_params.yaml" command="load" />
+               <rosparam file="$(find twil_2dnav)/config/base_local_planner_params.yaml" command="load" />
+       </node>
 </launch> 
similarity index 79%
rename from twil_2dnav/map/map.yaml
rename to twil_2dnav/map/centenario1.yaml
index b9d2a71..f0af6b1 100644 (file)
@@ -1,4 +1,4 @@
-image: planta_cores.pgm
+image: centenario1.pgm
 resolution: 0.01
 origin: [-16.0, -2.0, 0.0]
 occupied_thresh: 0.7