Skip to content

Commit

Permalink
Merge branch 'master' of github.com:uf-mil/mil into docking_2024
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-aj committed Nov 9, 2024
2 parents 5ccc8d4 + 3132798 commit c70a2d2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/setup.bash
Original file line number Diff line number Diff line change
@@ -198,6 +198,19 @@ prettycp() {
rsync --recursive --times --modify-window=2 --progress --verbose --itemize-changes --stats --human-readable "$1" "$2"
}

# Disambiguation function for ROS_MASTER_URI/GAZEBO_MASTER_URI
# sets the values to calculated expr 11340+$1 and 11350+$1 respectively
disambig() {
if [ "$#" -ne 1 ]; then
printf "Usage: disambig <plus_factor>\n\tSets the ROS_MASTER_URI and GAZEBO_MASTER_URI to 11340+<plus_factor> and 11350+<plus_factor> respectively to allow for parallel simulations"
return
fi
export ROS_MASTER_URI="http://localhost:$((11340 + $1))"
export GAZEBO_MASTER_URI="http://localhost:$((11350 + $1))"
echo "ROS_MASTER_URI=$ROS_MASTER_URI"
echo "GAZEBO_MASTER_URI=$GAZEBO_MASTER_URI"
}

mount_ssd() {
sudo mkdir -p /mnt/ssd
sudo mount -t exfat /dev/sda1 /mnt/ssd

0 comments on commit c70a2d2

Please sign in to comment.