-
-
Notifications
You must be signed in to change notification settings - Fork 9
Setup (Orin)
manx52 edited this page Sep 6, 2024
·
2 revisions
- 128 GB SSD NVME
sudo apt-get -y purge chromium-browser thunderbird libreoffice* cuda-samples-10-2
# See disk size remaining
df -h
cd /usr/bin
sudo ./tegrastats
Look at Setup (ROS)
cd ~/catkin_ws
catkin build soccerbot
source ~/devel/setup.bash
roslaunch soccerbot soccerbot.multi.launch
docker login -u utrasoccer # Password dckr_pat_r8_EwMV7RmiYNG2VbnculJUqc1w
docker compose -f compose.yaml pull soccerbot_arm64
docker compose -f compose.yaml up soccerbot_arm64
Under Pycharm > Settings > Build, Execution, Deployment, add a SSH connecction
- Make sure the root path is /home/soccer or the user in the tx2
- Under Mappings, make sure
- local path is /home/user name/catkin_ws/src/soccerbot
- Deployment path /catkin_ws/src/soccerbot
- Leave web path blank
Now you can right click a file or directory > Deployment > Upload to device
Setup auto ssh on personal computer, this will make it so you don't need to enter the password every time
ssh-copy-id robot1@robot1_ip
- Turn off auto connect on other wifi and turn on hotspot autoconnect
sudo nmcli connection modify Techatronic connection.autoconnect no
sudo nmcli connection modify EuroExoticCar connection.autoconnect no
sudo nmcli connection modify Hotspot connection.autoconnect yes
- Create a bash file.
sudo nano ~/hotspot.sh
and add
#!/usr/bin/env bash
sudo nmcli connection up Hotspot
- Give permission
sudo chmod 755 ~/hotspot.sh
- Create a bash file.
sudo nano ~/wifi.sh
and add
#!/usr/bin/env bash
sudo nmcli connection up Techatronic
- Give permission
sudo chmod 755 ~/wifi.sh
- Create a bash file.
sudo nano ~/docker.sh
and add
#!/usr/bin/env bash
cd ~/catkin_ws/src/evtol_software
docker compose -f compose.yaml up evtol_arm64
- Give permission
sudo chmod 755 ~/docker.sh
- Orin Hotspot https://www.youtube.com/watch?v=GAOvGAdwiHk
- https://askubuntu.com/questions/22835/how-to-network-two-ubuntu-computers-using-ethernet-without-a-router
- Open eth0 connection settins
- Then click the ipv4 settings tab. set method to manual.
- click add to add IP address on both pc and Jetson
address | netmask | gateway | DNS |
10.0.0.1 | 255.255.255.0 | 192.168.1.1| 8.8.8.8,8.8.4.4 |
address | netmask | gateway | DNS |
10.0.0.2 | 255.255.255.0 | 192.168.1.1| 8.8.8.8,8.8.4.4 |
- Verify that Orin and Ground station can communicate on the network.
- Use
ping 10.0.0.2
on RPI andping 10.0.0.1
on Jetson
- Sometimes you need to
source ~/.bashrc
in a terminal to get it to work - To exit gazebo quicker run
# For noetic
sudo gedit /opt/ros/noetic/lib/python3/dist-packages/roslaunch/nodeprocess.py
change these 2 lines
_TIMEOUT_SIGINT = 1.0 #seconds
_TIMEOUT_SIGTERM = 1.0 #seconds
updater
#!/usr/bin/env bash
cd ~/catkin_ws/src/evtol_software
git stash
git pull
git submodule sync
git submodule update --init --recursive
git-lfs pull
git submodule foreach git-lfs pull
docker compose -f compose.yaml build evtol_arm64