Extrude SVG files - modulabs/gazebo-tutorial GitHub Wiki
์ด ์ง์นจ์๋ 2D๋ก ๋์ด์๋ SVG ํ์ผ์ 3D mesh๋ก ๋ง๋๋ ์ ์ฐจ๋ฅผ ์ค๋ช ํฉ๋๋ค. SVG ํ์ผ์ Inkscape ๋๋ Illustrator ํ๋ก๊ทธ๋จ์ผ๋ก ๋ง๋ค์ ์์ต๋๋ค.
์์ํ๊ธฐ ์ ์ , ๊ฐ์ ๋ณด์ Model Editor ์ฌ์ฉ๋ฒ์ ์ตํํ์๊ฐ ์์ต๋๋ค.
์ด ์ง์นจ์๋ Inkscape ๋ก SVG ํ์ผ์ ๋ง๋ค๊ณ , ๋ก๋ด์ ์กฐ๋ฆฝํ๊ธฐ์ํด ๊ฐ์ ๋ณด๋ก import ํ๋ ๋ฐฉ๋ฒ์ ๋ํด ๋ณด์ฌ์ค๋๋ค.
SVG editor๋ ๋ง์ด ์์ผ๋, ์ฌ๊ธฐ์๋ open source Inkscape program์ ์ฌ์ฉํฉ๋๋ค. see installation instructions
์๋๊ทธ๋ฆผ์ SVG ๋ฐํดํ์ผ ์ ๋๋ค.
์ํฌ์ค์ผ์ดํ๋ฅผ ์์ํฉ๋๋ค.
์ด๊ฒ์ ๋น ๋ฌธ์๋ฅผ ๋ง๋ค๊ฒ๋๋ค.
๋จผ์ , ์ฐ๋ฆฌ์ ๋ฐํดํฌ๊ธฐ์ ๋ง๋๋ก ๋ฌธ์ํฌ๊ธฐ๋ฅผ ๋ณ๊ฒฝํ์ธ์.
File -> Document properties menu ๋ก ๋ค์ด๊ฐ์
์ Page ํญ์ ํด๋ฆญํ์ธ์. ๊ทธ๋ฆฌ๊ณ ๋ํ๋ฉํธ ์ฌ์ด์ฆ๋ฅผ 100.0 x 100.0 mm ๋ก ๋ณ๊ฒฝํด ์ค๋๋ค.
๋์ผํ ๋ค์ด์ผ๋ก๊ทธ์์ Grids ํญ์ ์ ํํ๊ณ New๋ฒํผ์ ํด๋ฆญํด์ custom grid๋ฅผ ์์ฑํ์ธ์. Enabled, Visible, Snap to visible grid lines only์ ์ฒดํฌํ์๊ณ , Spacing X์ Spacing Y๋ฅผ 10์ผ๋ก ๋ณ๊ฒฝํ์ธ์.
์๋๊ทธ๋ฆผ๊ณผ ๊ฐ์ด ๋ง๋ค์ด์ก์ด์ผ ํฉ๋๋ค.
๋ํ์ ๋ง๋ค๊ธฐ ์ํด ์ฌ๋ฌ๊ฐ์ง ๋ค๋ฅธ ํด(pen, text, stars and shapes, etc.)์ ์ฌ์ฉํ ์๊ฐ ์์ต๋๋ค. ์ด ์์ ์์๋ ๋ฐํด๋ ์์ผ๋ก ๋ง๋ค์์ต๋๋ค(์ํํธ ๋๋ฅด๋ฉด ์ค์ฌ๋ถํฐ ์์ ์์ํ ์ ์์, ์ปจํธ๋กค ํค๋ฅผ ๋๋ฅด๋ฉด ์์ ํฌ๊ธฐ๋ฅผ ๊ณ ์ ํ ์ ์์) ์๋ค์ ์๋ก ํฉ์ณ์ง์๊ฐ ์์ต๋๋ค. ์์ ๊ฒฝ๋ก๊ฐ ๋ซํ๋๋ก ํด์ผํฉ๋๋ค ๊ทธ๋ฆฌ๊ณ ์ ๋นํ ๋๊ป๋ฅผ ์ฃผ์ธ์
Note: a stick figure or two circles that touch each other would not result in valid Gazebo models. The SVG paths must create an closed contour with holes, where the holes cannot touch the contour or other holes. Holes inside holes are treated as solid parts (and they can have holes, too).
๊ฐ์ ๋ณด๋ ๋จ์ง ๋ํ์ PATHS ๋ง์ IMPORT ํฉ๋๋ค. ๋ฐ๋ผ์ ์ํฌ์ค์ผ์ดํ์์ ๋ํ์ PATH๋ก ๋ณ๊ฒฝํด์ฃผ์ด์ผ ํฉ๋๋ค.
๋ฐฉ๋ฒ์ Select All from the Edit menu. Then select the Path -> Object to Path menu item ์ ์คํํ๋ฉด
PATH๋ก ๋ณ๊ฒฝ์ด ๋ฉ๋๋ค.
๋ํ ๊ฐ์ ๋ณด๋ ๊ทธ๋ฃนํ์ ์ง์์น ์์ต๋๋ค. ๋ํ์ ๊ทธ๋ฃนํ ํ๋ฉด ์๋ฉ๋๋ค.
๊ฐ์ ๋ณด์์ ์ฌ์ฉํ ์์๋๋ก ์ ์ฅ์ SVGํ์ผ๋ก ์ ์ฅ์ ํ์ธ์~
Model Editor ๋ชจ๋๋ก ์ ํํฉ๋๋ค. ์ธ์ํธ ํญ ์ ํ =>ADD ๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
๋ธ๋ผ์ฐ์ ๋ฒํผ์ ์ด์ฉํด์, SVG ํ์ผ์ ์ฐพ์์ Import ํฉ๋๋ค.
์ต์คํฌ๋ฅด๋ ํ๋ฉด(์ ์ฒด๋ก ๋ง๋ค์ด์ฃผ๋ ํ๋ฉด) ๋์ต๋๋ค.

์๋ก์ด link๊ฐ ์์ฑ์ด ๋์์ต๋๋ค.
hellowheel์ด๋ผ๋ ์ด๋ฆ์ผ๋ก ๋ชจ๋ธ์ ์ ์ฅํ๋ค.








