Skip to content

Commit

Permalink
Revert "[hero1-common][temp] tournament mode"
Browse files Browse the repository at this point in the history
This reverts commit afbbee0.
  • Loading branch information
MatthijsBurgh committed Jul 15, 2024
1 parent afbbee0 commit 3f9114e
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions hero1-common/setup
Original file line number Diff line number Diff line change
Expand Up @@ -8,61 +8,9 @@ done < /etc/opt/tmc/robot/version

alias hero-sync-ubuntu-ntp="sudo ntpdate ntp.ubuntu.com"

<<<<<<< Updated upstream
if [[ "${TUE_ROS_USE_IP}" == "true" ]]
then
unset ROS_HOSTNAME
export ROS_IP=192.168.44.51
export ROS_MASTER_URI=http://192.168.44.51:11311
fi
=======
function _vbox_sleep
{
sleep 1;
local i
i=0
while [[ $i -lt 30 ]]
do
if ! lsmod | grep -q vbox
then
echo "All vbox modules stopped"
return 0
fi
sleep 0.5
i=$((i+1))
done
echo "Not all vbox modules stopped"
}

function _stop_vbox_services
{
sudo systemctl stop hero1-speech5-windows-speech.service 2>/dev/null
sudo systemctl stop hero1-speech4-vboxweb-service.service 2>/dev/null
sudo systemctl stop hero1-speech3-vboxdrv.service 2>/dev/null
sudo systemctl stop hero1-speech2-vboxballoonctrl-service.service 2>/dev/null
sudo systemctl stop hero1-speech1-vboxautostart-service.service 2>/dev/null
sudo systemctl stop hero1-demo-speech5-windows-speech.service 2>/dev/null
sudo systemctl stop hero1-demo-speech4-vboxweb-service.service 2>/dev/null
sudo systemctl stop hero1-demo-speech3-vboxdrv.service 2>/dev/null
sudo systemctl stop hero1-demo-speech2-vboxballoonctrl-service.service 2>/dev/null
sudo systemctl stop hero1-demo-speech1-vboxautostart-service.service 2>/dev/null
}

function hero-reboot
{
_stop_vbox_services
_vbox_sleep
sudo reboot
}

function hero-shutdown
{
_stop_vbox_services
_vbox_sleep
sudo shutdown -h -t 0
}

unset ROS_HOSTNAME
export ROS_IP=192.168.44.51
export ROS_MASTER_URI=http://192.168.44.51:11311
>>>>>>> Stashed changes

0 comments on commit 3f9114e

Please sign in to comment.