Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ROS Launch file for ROS_Ag lawn tractor project using GPS in the physical world
<!-- file: robot_in_stage.launch -->
<launch>
<!-- ************** Global Parameters *************** -->
<param name="/use_sim_time" value="false"/>
<!-- ************** Stage Simulator *************** -->
<!-- ************** Robot Description *************** -->
<!-- robot_description is used by nodes that publish to joint_states. -->
<param name="robot_description"
command="$(find xacro)/xacro --inorder $(find lawn_tractor_sim)/urdf/lawn_tractor.urdf.xacro"/>
<!-- Read joint positions from joint_states, then publish the vehicle's
state to tf. -->
<node name="vehicle_state_publisher" pkg="robot_state_publisher"
type="robot_state_publisher">
<param name="publish_frequency" value="30.0"/>
</node>
<!-- ****** Move Base Flex ***** -->
<node pkg="mbf_costmap_nav" type="mbf_costmap_nav" respawn="false" name="move_base_flex" output="screen">
<param name="tf_timeout" value="1.5"/>
<param name="planner_max_retries" value="3"/>
<rosparam file="$(find lawn_tractor_navigation)/config/planners.yaml" command="load" />
<rosparam file="$(find lawn_tractor_navigation)/config/controllers.yaml" command="load" />
<rosparam file="$(find lawn_tractor_navigation)/config/recovery_behaviors.yaml" command="load" />
<rosparam file="$(find lawn_tractor_navigation)/config/costmap_common_params.yaml" command="load" ns="global_costmap"/>
<rosparam file="$(find lawn_tractor_navigation)/config/costmap_common_params.yaml" command="load" ns="local_costmap" />
<rosparam file="$(find lawn_tractor_navigation)/config/global_costmap_params.yaml" command="load" />
<rosparam file="$(find lawn_tractor_navigation)/config/local_costmap_params.yaml" command="load" />
<rosparam file="$(find lawn_tractor_navigation)/config/teb_local_planner_params_carlike.yaml"
command="load" />
</node>
<node pkg="lawn_tractor_navigation" name="mbf_state_machine" type="mbf_state_machine.py" respawn="false" output="screen"/>
<!-- ****** Maps ***** -->
<node name="map_server" pkg="map_server" type="map_server"
args="$(find lawn_tractor_sim)/maps/farm.yaml" output="screen">
<param name="frame_id" value="map"/>
</node>
<!-- ****** Fake localization for map and gps ***** -->
<node pkg="tf" type="static_transform_publisher" name="map_to_odom" args="0.0 0.0 0.0 0 0 0.0 map odom 100"/>
<node pkg="tf" type="static_transform_publisher" name="map_to_utm" args="0.0 0.0 0.0 0 0 0.0 map utm 100"/>
<!-- ****** RVIZ ***** -->
<node name="tractor_viz" pkg="rviz" type="rviz" output="screen"
args="-d $(find lawn_tractor_sim)/rviz/tractor_viz.rviz">
</node>
<!-- ****** Markers ***** -->
</launch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment