Skip to content

Commit

Permalink
Merge branch 'kaiyu/spot_capabilities'
Browse files Browse the repository at this point in the history
  • Loading branch information
zkytony committed Oct 23, 2022
2 parents a9f2f3f + 753e495 commit 0345aa9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup_spot.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SPOT_ROS_PATH="spot/ros_ws" # path to spot ros workspace

# Set the ID of the Spot you are working on. Either
# 12 (stands for 12070012) or 2 (stands for 12210002)
SPOT_ID="12"
SPOT_ID="2"
if [ $SPOT_ID != "12" ] && [ $SPOT_ID != "2" ]; then
echo "Invalid SPOT ID. Either 12 (stands for 12070012) or 2 (stands for 12210002)."
return 1
Expand All @@ -24,7 +24,11 @@ fi
# Configure the IP addresses for different network connections
SPOT_ETH_IP="10.0.0.3"
SPOT_WIFI_IP="192.168.80.3"
SPOT_RLAB_IP="138.16.161.${SPOT_ID}"
if [ $SPOT_ID == "2" ]; then
SPOT_RLAB_IP="138.16.161.22"
else
SPOT_RLAB_IP="138.16.161.12" # SPOT ID must be 12
fi

#------------- FUNCTIONS ----------------
# Always assume at the start of a function,
Expand Down

0 comments on commit 0345aa9

Please sign in to comment.