Skip to content

Instantly share code, notes, and snippets.

@srathi-monarch
Created July 5, 2024 07:14
Show Gist options
  • Save srathi-monarch/511282abe7b849b51ad6d2f1b0b4b034 to your computer and use it in GitHub Desktop.
Save srathi-monarch/511282abe7b849b51ad6d2f1b0b4b034 to your computer and use it in GitHub Desktop.
Add delay to ros nodes from roslaunch using launch-prefix.
#! /usr/bin/sh
if [ $# -lt 2 ]; then
echo "Usage: $0 <delay> <command> [args...]"
exit 1
fi
sleep "$1"
shift
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment