Skip to content

nacorti/timed_roslaunch

 
 

Repository files navigation

timed_roslaunch Build Status

This script can delay the launch of a roslaunch file.

Install

apt

sudo apt install ros-kinetic-timed-roslaunch
source /opt/ros/kinetic/setup.bash

source

cd ~/<catkin_ws>/src
git clone https://github.com/MoriKen254/timed_roslaunch.git
cd ~/<catkin_ws>
catkin_make
source ~/<catkin_ws>/devel/setup.bash

Usage

This script can delay the launch of a roslaunch file. Make sure that the file is executable (chmod +x timed_roslaunch.sh)

Run it from command line

rosrun timed_roslaunch timed_roslaunch.sh [number of seconds to delay] [rospkg] [roslaunch file] [arguments (optional)]

Or

roslaunch timed_roslaunch timed_roslaunch.launch time:=[number of second to delay] pkg:=[rospkg] file:=[roslaunch file] value:=[arguments (optional)]

Example:

rosrun timed_roslaunch timed_roslaunch.sh 2 turtlebot_navigation amcl_demo.launch initial_pose_x:=17.0 initial_pose_y:=17.0"

Run it from another roslaunch file

<launch>
  <include file="$(find timed_roslaunch)/launch/timed_roslaunch.launch">
    <arg name="time" value="2" />
    <arg name="pkg" value="turtlebot_navigation" />
    <arg name="file" value="amcl_demo.launch" />
    <arg name="value" value="initial_pose_x:=17.0 initial_pose_y:=17.0" />
    <arg name="node_name" value="timed_roslaunch" /> <!-- This is an optional argument -->
  </include>
</launch>

Or

<launch>
  <node pkg="timed_roslaunch" type="timed_roslaunch.sh"
    args="2 turtlebot_navigation amcl_demo.launch initial_pose_x:=17.0 initial_pose_y:=17.0"
    name="timed_roslaunch" output="screen" />
</launch>

LICENSE

This software is released under the BSD 3-Clause License, see LICENSE.txt.

About

This package can delay the launch of a roslaunch file.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 70.0%
  • CMake 20.3%
  • Python 9.7%