sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable
lsb_release -cs
main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget https://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo apt update
sudo apt install gazebo11 libgazebo11-dev -y
sudo apt install ros-foxy-gazebo-ros-pkgs ros-foxy-ros-core ros-foxy-geometry2
echo "export GAZEBO_IP=127.0.0.1" >> ~/.bashrc
echo "export LIBGL_ALWAYS_INDIRECT=0" >> ~/.bashrc
echo "alias eb='gedit ~/.bashrc'" >> ~/.bashrc
echo "alias sb='source ~/.bashrc'" >> ~/.bashrc
echo "alias rosdinstall='rosdep install -i --from-path src --rosdistro foxy -y -r'" >> ~/.bashrc
sudo apt-get install pyqt5-dev-tools
python3 -m pip install --upgrade pip
python3 -m pip install -U catkin_pkg cryptography empy ifcfg lark-parser lxml netifaces numpy opencv-python pyparsing pyyaml setuptools rosdistro
python3 -m pip install -U pydot PyQt5
gedit ~/.bashrc: 66~73번째 줄 주석처리 (xterm~esac)
source ~./bashrc
[test]
cd ~/ros2_ws/src
git clone https://github.com/ros/ros_tutorials.git -b foxy-devel
cd ..
rosdep install -i --from-path src --rosdistro foxy -y -r
colcon build
(terminal 1) >> ros2 run turtlesim turtlesim_node
(terminal 2) >> ros2 run turtlesim draw_square