- libobstacles
- ROS
- Gazebo
- ubuntu18.04
- ์๊ฐ ๋ณต์ก๋
- JetsonNano
- ์๊ฐ๋ณต์ก๋
- ๋ธ๋ฃจํธํฌ์ค
- ์๊ณ ๋ฆฌ์ฆ
- ros2
- dqn
- ์ฐ๋ถํฌ ๋ฆฌ๋ ์ค
- TURTLEBOT3
- linux
- ๋ผ์ฆ๋ฒ ๋ฆฌํ์ด
- raspberrypi
- ๋ฐฑ์ค
- VirtualBox
- raspberry pi
- c++
- BOJ
- ์๋ฃ๊ตฌ์กฐ
- Ubuntu 18.04
- ์๋๋ก์ด๋์คํ๋์ค
- ๋ผ์ฆ๋ฒ ๋ฆฌํ์ด4
- Dashing
- ROS2 Dashing
- Android Studio
- ์ ๋ฎฌ๋ ์ดํฐ
- ubuntu
- Today
- Total
์์ ํ
[ROS2/Dashing][VMware] DQN Machine Learning ๋ณธ๋ฌธ
๊ธฐ์กด์ ์ฌ์ฉํ๋ Jetson Nano๊ฐ Ubuntu18.04๋ง์ ์ง์ํ์ด์ Dashing ๋ฒ์ ์ ๋ฐ ๊ฐ์ ๋ก ์ฌ์ฉํ์์ง๋ง
๊ณ ์ฅ ์ดํ์๋ ๊ฐ์ ๋จธ์ ์ ๋ Dashing ๋ฒ์ ์ ์ด์ฉํด์๋ค.
์ด์ ๋ ์ด ๋จธ์ ๋ฌ๋์ ๊ผญ ํ์ต ํด ๋ณด๊ณ ์ถ์๋ค..
์ ฏ์จ๋๋
ธ ๊ณ ์ฅ ์ดํ์ ๋ฒ์ถ์ผ๋ฐ์ค๋ฅผ ์ฌ์ฉํด์๋๋ฐ,
๋จธ์ ๋ฌ๋์ ํ์ํ ํ
์ํ๋ก์ฐ๊ฐ ๋์๊ฐ์ง ์์๋ค..
core dumped ์๋ฌ๊ฐ ๋จ๊ณ ํ์ด์ฌ์ด ์ข
๋ฃ๊ฐ ๋๋๋ฐ, VMware๋ก ๋ฐ๊พธ๋ cpu๋ก ๋ฌธ์ ์์ด ํ
์ํ๋ก์ฐ ์ฌ์ฉํ ์ ์์๋ค.
GPU๋ก ๋๋ฆฌ๋๊ฑด ์์ง ์คํํด๋ณด์ง์์์ ์ด๊ฑด ๋ชจ๋ฅด๊ฒ ๋ค.
์ธ์ ๋ ๊ทธ๋ ๋ฏ ๊ณต์ ์ฌ์ดํธ
tensorflow ์ค์น (CPU)
pip ๊ฐ ์ค์น๋์ง ์์๋ค๋ฉด pip๋ ์ค์น.
pip, pip3๋ ๋ชจ๋ upgrade ํ ์ค์น ์งํํด์ผ ์๋ฌ๊ฐ ๋จ์ง ์๋๋ค.
$ pip3 install -U rosinstall msgpack empy defusedxml netifaces
$ pip3 install -U tensorflow
๊ทผ๋ฐ, ์ฌ๊ธฐ์ ์ด ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ๋ค๋ฉด ์๋ง tensorflow 2.x ๋ฒ์ ์ด ์ค์น๋ ๊ฒ์ด๋ค.
์ด ๊ฒฝ์ฐ์ ๋จธ์ ๋ฌ๋ ํจํค์ง ์คํ์ keras ๋ฒ์ ํ๊ณ tensorflow ๋ฒ์ ํ๊ณ ๋ง์ง ์์์
import keras๋ก ์ ์ธ๋ ๋ถ๋ถ์ import tensorflow as keras๋ก ์์ ํด์ค์ผํ๋ ๋ฒ๊ฑฐ๋ก์์ด ์๋ค.
$ pip3 install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.8.0-cp27-none-linux_x86_64.whl
๊ทธ๋ฐ๋ฐ ๊ณต์ ๋ฌธ์์ GPU ์ค์น ๋ช ๋ น์ด ๋ถ๋ถ์ ๋ณด๋ฉด tensorflow๊ฐ 1.8.0์ผ๋ก ์ค์ ๋์ด ์๋ ๊ฒ์ ๋ณผ ์ ์๋ค.
$ pip3 install -U tensorflow==1.8.0
CPU๋ 1.8.0์ผ๋ก ์ค์ ํด์ ๋ค์ด๋ฐ์์ฃผ๋ฉด ๋๋ค.
$ pip3 install keras==2.1.5
$ cd ~/robotis_ws/src/
$ git clone -b ros2 https://github.com/ROBOTIS-GIT/turtlebot3_machine_learning.git
$ cd ~/robotis_ws && colcon build --symlink-install
์ดํ git clone์ผ๋ก ๋ค์ด ๋ฐ๊ณ ๋น๋ ํด์ฃผ๋ฉด ๋๋๋ฐ, ๋๋ ๊ณ์ ๋น๋๊ฐ ๋ณต๋ถ๋ณต์ด์๋ค.
ํจํค์ง ์ค์น๊ฐ ๋๋ค๊ฐ ์๋๋ค๊ฐ..
๋ง์ฝ ํ์ด์ฌ ์๋ฌ๊ฐ ๋ ๊ฒฝ์ฐ,
$ sudo apt-get install python3-dev
$ sudo apt-get install python-dev
์๋ง ์ด๊ฑฐ ์ค์นํ๊ณ ํจํค์ง ์ฌ๋น๋ ํ๋ฉด ๋ ๊ฑฐ๋ค.
์ฑ๊ณต ~
'๐ง Ubuntu > ROS2' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[ROS2/Dashing][VMware] DQN Machine Learning - 3 (1) | 2023.12.02 |
---|---|
[ROS2/Dashing][VMware] DQN Machine Learning - 2 (0) | 2023.11.28 |
[ROS2/Dashing] USB CAM์ผ๋ก camera calibrationํ๊ธฐ (v4l2) (2) | 2023.10.16 |
[ROS][ROS2] Raspiberry Pi Camera detected=0, ์ธ์์ด ์๋๋ ์๋ฌ (0) | 2023.08.17 |
[ROS2/Dashing][JetsonNano] Ubuntu 18.04์์ ROS2 Dashing ์ค์น (0) | 2023.08.14 |