Forked from dbaldwin/gist:b31835f87f16450a956cf3c89e15a289
Created
January 10, 2024 20:51
-
-
Save Victorvikson1996/33345a608acb87b35e0398b37257d985 to your computer and use it in GitHub Desktop.
Revisions
-
dbaldwin revised this gist
Jan 13, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -49,6 +49,6 @@ sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE sudo iptables -A FORWARD -i wlan1 -o eth0 -j ACCEPT sudo iptables -A FORWARD -i eth0 -o wlan1 -j ACCEPT # Do the following on your own laptop (Linux host only) # sudo route add default gw 192.168.12.1 -
dbaldwin revised this gist
Jan 13, 2023 . 1 changed file with 19 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,22 @@ # From Windows terminal docker run -p 6080:80 --shm-size=512m --name ros_go1 -d tiryoh/ros-desktop-vnc:melodic # Access the instance through the url http://localhost:6080 # From home directory in Docker mkdir -p catkin_ws/src # Go into catkin workspace cd catkin_ws/src # Clone legged SDK for Go1 git clone -b v3.8.0 https://github.com/unitreerobotics/unitree_legged_sdk # Build for low level cd unitree_legged_sdk && mkdir build && cd build && cmake .. && make # Power up Unitree Go1 and connect to wireless network # Put Go1 into low level mode with remote # L2 + A -
dbaldwin revised this gist
Jan 13, 2023 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,11 @@ # Connect to Unitree Go1 network # Put Go1 into low level mode with remote # L2 + A # L2 + A # L2 + B # L1 + L2 + Start # SSH to Pi with password 123 ssh [email protected] @@ -28,9 +34,3 @@ sudo iptables -A FORWARD -i eth0 -o wlan1 -j ACCEPT # Do the following on your own laptop: sudo route add default gw 192.168.12.1 -
dbaldwin revised this gist
Jan 13, 2023 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,4 +26,11 @@ sudo iptables -A FORWARD -i wlan1 -o eth0 -j ACCEPT sudo iptables -A FORWARD -i eth0 -o wlan1 -j ACCEPT # Do the following on your own laptop: sudo route add default gw 192.168.12.1 # Put Go1 into low level mode # L2 + A # L2 + A # L2 + B # L1 + L2 + Start -
dbaldwin revised this gist
Jan 13, 2023 . 1 changed file with 14 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,25 @@ # Connect to Unitree Go1 network # SSH to Pi with password 123 ssh [email protected] # Execute the following code on the robot's Raspberry Pi: sudo vi /etc/sysctl.conf # Remove the comment in front of net.ipv4.ip_forward=1 # Reload sysctl sudo sysctl -p # Setup iptables for wireless config # Flush iptables sudo iptables -F # Flush NAT table sudo iptables -t nat -F # Setup NAT table routing sudo iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE sudo iptables -A FORWARD -i wlan1 -o eth0 -j ACCEPT -
dbaldwin created this gist
Nov 30, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # Execute the following code on the robot's Raspberry Pi: sudo vi /etc/sysctl.conf # Remove the comment in front of net.ipv4.ip_forward=1 sudo sysctl -p sudo iptables -F sudo iptables -t nat -F sudo iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE sudo iptables -A FORWARD -i wlan1 -o eth0 -j ACCEPT sudo iptables -A FORWARD -i eth0 -o wlan1 -j ACCEPT # Do the following on your own laptop: sudo route add default gw 192.168.12.1