Skip to content

Instantly share code, notes, and snippets.

@rfzeg
Created February 23, 2022 18:46
Show Gist options
  • Save rfzeg/73ee486f9a149ea1e54b58f9a9620728 to your computer and use it in GitHub Desktop.
Save rfzeg/73ee486f9a149ea1e54b58f9a9620728 to your computer and use it in GitHub Desktop.
Minimal ROS2 launch file for Gazebo server and client using ExecuteProcess (command line arguments)
"""Launch Gazebo server and client with command line arguments."""
from launch import LaunchDescription
from launch.actions import ExecuteProcess
def generate_launch_description():
return LaunchDescription([
ExecuteProcess(
cmd=['gazebo', '--verbose', '-s', 'libgazebo_ros_factory.so'],
output='screen')
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment