Skip to content

Commit

Permalink
unset install_services_cmd in env-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Apr 25, 2019
1 parent e34ebac commit a4a632c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion env-hooks/99.hero_functions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ install_services_cmd=""
for launch_file in ${launch_files}; do
launch_file_name=$(echo ${launch_file##*/} | cut -d"." -f1)
name=${bringup_name//_/-}-${launch_file_name//_/-}
if [[ $launch_file == *"state_machines"* ]]; then
if [[ $launch_file == *"state_machines"* ]]
then
eval "${name}() { export ROBOT_BRINGUP_PATH=${package_path} && rosnode kill /state_machine; roslaunch ${launch_file} \$@; }"
else
eval "${name}() { export ROBOT_BRINGUP_PATH=${package_path} && roslaunch ${launch_file} \$@; }"
Expand All @@ -17,3 +18,4 @@ for launch_file in ${launch_files}; do
done

eval "${bringup_name}-install-services() { echo 'Installing systemd services for ${bringup_name} ...' $install_services_cmd; }"
unset install_services_cmd

0 comments on commit a4a632c

Please sign in to comment.