https://s3-us-west-2.amazonaws.com/secure.notion-static.com/167f0e1e-bd2f-4f27-9c0b-c8104027198b/Untitled.png

๐Ÿ‘‰๐Ÿป OpenCV๋Š” ์ปดํ“จํ„ฐ ๋น„์ „ ๋ฐ ๋จธ์‹  ๋Ÿฌ๋‹ ๋“ฑ์˜ ๊ธฐ๋Šฅ์„ ์ˆ˜ํ–‰ํ•˜๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ

๐Ÿ‘‰๐Ÿป ros-melodic-perception ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•˜๋ฉด ๊ฐ™์ด ์ž๋™์œผ๋กœ ์„ค์น˜๋จ (3.2.0)

๐Ÿ‘‰๐Ÿป ์ด์™€ ๋”๋ถˆ์–ด ROS ๋ฉ”์‹œ์ง€์™€ ์—ฐ๋™ํ•˜๊ธฐ ์œ„ํ•œ ํŒจํ‚ค์ง€ ์ œ๊ณต

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/ce65565f-afab-4ed8-ab8a-458e0c9127d5/Untitled.png

๐Ÿ‘‰๐Ÿป ์ด์™ธ์—๋„ ๋‹ค์–‘ํ•œ ๋„๊ตฌ๋“ค ์ œ๊ณต

๊ฐ„๋‹จํ•œ ๋ฐ๋ชจ


์›น์บ ์˜ ์˜์ƒ์„ ์–ป๊ธฐ ์œ„ํ•ด ํŒจํ‚ค์ง€ ์„ค์น˜

$ sudo apt install ros-melodic-usb-cam

์‹คํ–‰

$ rosrun usb_cam usb_cam_node _pixel_format:=yuyv
$ rosrun image_view image_view image:=usb_cam/image_raw

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/2a3ac5b6-5982-442c-9f4d-53732283b1f7/Untitled.png

$ rostopic info /usb_cam/image_raw
Type: sensor_msgs/Image

Publishers: 
 * /usb_cam (<http://byeongkyu-XPS-15-9570:43425/>)

Subscribers: 
 * /image_view (<http://byeongkyu-XPS-15-9570:41483/>)