์ดํƒœํ™
ํ™'story
์ดํƒœํ™
์ „์ฒด ๋ฐฉ๋ฌธ์ž
์˜ค๋Š˜
์–ด์ œ
  • ๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ (171)
    • TW (39)
    • AI (47)
      • ์ž์—ฐ์–ด ์ฒ˜๋ฆฌ (10)
      • Kaggle (2)
      • Machine Learning (26)
      • Computer Vision (0)
      • Deep Learning (0)
      • ROS2 (7)
    • Computer Science (29)
      • Data Structure (0)
      • Algorithm (18)
      • Computer Architecture (5)
      • SOLID (0)
      • System Programing (6)
    • LOLPAGO (10)
      • ํ”„๋ก ํŠธ์—”๋“œ (10)
      • ๋ฐฑ์—”๋“œ (0)
    • BAEKJOON (2)
    • React (5)
    • ์–ธ์–ด (8)
      • C++ (8)
    • GIT (0)
    • MOGAKCO (19)
    • ๋ฏธ๊ตญ ์—ฌํ–‰๊ธฐ (3)
    • etc. (7)
      • Blog (2)
      • ์ฝœ๋ผํ†ค (2)

๋ธ”๋กœ๊ทธ ๋ฉ”๋‰ด

  • ํ™ˆ
  • ํƒœ๊ทธ
  • ๋ฐฉ๋ช…๋ก

๊ณต์ง€์‚ฌํ•ญ

์ธ๊ธฐ ๊ธ€

ํƒœ๊ทธ

  • algorithm
  • tw
  • computerscience
  • ๋ฐฑ์ค€
  • ROS2
  • ๋จธ์‹ ๋Ÿฌ๋‹
  • LOLPAGO
  • ML
  • NLP
  • ๊ฒฝ์‚ฌํ•˜๊ฐ•๋ฒ•
  • pytorch
  • ๋”ฅ๋Ÿฌ๋‹
  • baekjoon
  • ์•Œ๊ณ ๋ฆฌ์ฆ˜
  • kaggle
  • Ai
  • ๊ธฐ๊ณ„ํ•™์Šต
  • react
  • C++
  • computer architecture

์ตœ๊ทผ ๋Œ“๊ธ€

์ตœ๊ทผ ๊ธ€

ํ‹ฐ์Šคํ† ๋ฆฌ

hELLO ยท Designed By ์ •์ƒ์šฐ.
์ดํƒœํ™

ํ™'story

[ROS2] Topic ์‹ค์Šต(Pub-Sub)
AI/ROS2

[ROS2] Topic ์‹ค์Šต(Pub-Sub)

2024. 4. 17. 23:01

 

๐Ÿค– Nodes ์‹คํ–‰ 

์•„๋ž˜ ๋งํฌ์˜ demo_nodes_cpp์™€ demo_nodes_python์„ ๊ฐ€์ง€๊ณ  ์™€์„œ ๋‘ ๊ฐœ์˜ node๋ฅผ ์‹คํ–‰ํ•  ๊ฒƒ์ด๋‹ค.

 

 

https://github.com/ros2/demos

 

GitHub - ros2/demos

Contribute to ros2/demos development by creating an account on GitHub.

github.com

 

cpp๋กœ ๋˜์–ด์žˆ๋Š” ํŒจํ‚ค์ง€์—์„œ talker๋ฅผ ์‹คํ–‰ํ•จ๊ณผ ๋™์‹œ์—

 

py๋กœ ๋˜์–ด์žˆ๋Š” ํŒจํ‚ค์ง€์—์„œ listener๋ฅผ ์‹คํ–‰ํ•œ๋‹ค.

 

 

/talker Node๋Š” /chatter Topic์„ publishํ•˜๊ณ  /listener Node๋Š” /chatter Topic์„ subscribeํ•œ๋‹ค.

 

์ด๋ฅผ ํ™•์ธํ•˜๊ธฐ ์œ„ํ•ด rqt_graph๋ฅผ ์‹คํ–‰ํ•œ๋‹ค.

 

 

์•„๋ž˜์˜ ์‚ฌ์ง„๊ณผ ๊ฐ™์ด /talker Node๋Š” /chatter Topic์„ publishํ•˜๊ณ  /listener Node๋Š” /chatter Topic์„ subscribe ํ•˜๋Š” ๊ฒƒ์„ ์•Œ ์ˆ˜ ์žˆ๋‹ค.

 

์‹คํ–‰ํ•œ ๊ฒฐ๊ณผ๋Š” ์•„๋ž˜์™€ ๊ฐ™๋‹ค.

 

 

Topic์œผ๋กœ ์ฃผ๊ณ ๋ฐ›๋Š” Message๋Š” integer, float, bool, string๊ณผ ๊ฐ™์€ data type ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ์ด๋“ค์„ ๋ฌถ์€ ๋ฐ์ดํ„ฐ ๊ตฌ์กฐ(Nested Structure)๋ฅผ ์ง€์›ํ•œ๋‹ค.

 

 

 

 

 

'AI > ROS2' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[ROS2] Service ์‹ค์Šต(Call-And-Response)  (0) 2024.04.18
[ROS2] Service  (1) 2024.04.18
[ROS2] Turtlesim  (1) 2024.04.18
[ROS2] Topic  (0) 2024.04.17
[ROS2] ROS2 ์„ค์น˜  (0) 2024.04.17
    'AI/ROS2' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€
    • [ROS2] Service
    • [ROS2] Turtlesim
    • [ROS2] Topic
    • [ROS2] ROS2 ์„ค์น˜
    ์ดํƒœํ™
    ์ดํƒœํ™
    ๊ณต๋ถ€ํ•˜์ž ํƒœํ™์•„

    ํ‹ฐ์Šคํ† ๋ฆฌํˆด๋ฐ”