ros_launch

Functions related to the handling of the ROS launch files.

ros_launch.ros_launch_from_pkg(pkg_name, launch_file, args=None, launch_new_term=True) bool[source]

Function to execute a roslaunch from package with args. :param pkg_name: Name of the package where the launch file is located. :type pkg_name: str

Parameters
  • launch_file (str) – Name of the launch file.

  • args (list of str) – Args to pass to the launch file.

  • launch_new_term (bool) – Launch the process in a new terminal (Xterm).

Returns

True if the launch file was executed.

Return type

bool

ros_launch.ros_launch_from_path(launch_file_path, args=None, launch_new_term=True) bool[source]

Function to execute a roslaunch from a path with args. :param launch_file_path: Path of the launch file. :type launch_file_path: str

Parameters
  • args (list str) – Args to pass to the launch file.

  • launch_new_term (bool) – Launch the process in a new terminal (Xterm).

Returns

True if the launch file was executed.

Return type

bool

ros_launch.ros_kill_launch_process() bool[source]

Function to kill all roslaunch processes.

Returns

True if the roslaunch processes were killed.

Return type

bool