Created
February 10, 2022 09:42
-
-
Save NamWoo/204a60fb81f1b02995518d25377a0f1b to your computer and use it in GitHub Desktop.
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 characters
| #!/bin/bash | |
| echo "------------------------------" | |
| echo "------install start-----------" | |
| echo "------------------------------" | |
| mkdir -p ~/ros2_ws/src | |
| cd ~/ros2_ws/src | |
| git clone https://github.com/omorobot/omo_r1mini-foxy.git | |
| git clone https://github.com/PinkWink/YDLidar-SDK.git | |
| git clone https://github.com/PinkWink/ydlidar_ros2_driver.git | |
| echo "nnn111" | |
| sudo apt install -y python3-rosdep2 | |
| rosdep update | |
| sudo apt install -y ros-foxy-gazebo-ros \ | |
| ros-foxy-cartographer-ros \ | |
| ros-foxy-nav2-map-server \ | |
| ros-foxy-gazebo-ros-pkgs | |
| echo "nnn222" | |
| cd ~/ros2_ws/src/YDLidar-SDK | |
| cd build | |
| cmake .. | |
| make && sudo make install | |
| cd ~/ros2_ws/src/omo_r1mini-foxy/omo_r1mini_bringup | |
| # USB udev rule 추가 | |
| sudo bash create_udev_rules.sh | |
| echo "nnn333" | |
| echo "sudo chmod 666 /dev/ttyTHS1" >> ~/.bashrc | |
| source ~/.bashrc | |
| ## mode 변경 확인 | |
| ll /dev/ttyTHS1 | |
| echo "nnn444" | |
| cd ~/ros2_ws | |
| colcon build --symlink-install | |
| source ./install/setup.bash | |
| echo "source ~/ros2_ws/install/setup.bash" >> ~/.bashrc | |
| source ~/.bashrc | |
| echo "------------------------------" | |
| echo "------install done------------" | |
| echo "------------------------------" | |
| echo "just do the ros2 test" | |
| echo "ros2 launch omo_r1mini_bringup omo_r1mini_bringup.launch.py" | |
| echo "------------------------------" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment