์ดํƒœํ™
ํ™'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)

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

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

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

์ธ๊ธฐ ๊ธ€

ํƒœ๊ทธ

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

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

์ตœ๊ทผ ๊ธ€

ํ‹ฐ์Šคํ† ๋ฆฌ

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

ํ™'story

[ROS2] Service ์‹ค์Šต(Call-And-Response)
AI/ROS2

[ROS2] Service ์‹ค์Šต(Call-And-Response)

2024. 4. 18. 00:59

๐Ÿค– Service

 

์•„๋ž˜ ๋งํฌ์˜ demo_nodes_cpp ํŒจํ‚ค์ง€์˜ ๋‚ด์šฉ๋“ค์„ ์ฐธ๊ณ ํ•˜๊ธธ ๋ฐ”๋ž๋‹ˆ๋‹ค.

 

https://github.com/ros2/demos

 

GitHub - ros2/demos

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

github.com

 

์•„๋ž˜์™€ ๊ฐ™์€ ์ฝ”๋“œ๋ฅผ ํ†ตํ•ด add_two_ints_server ๋…ธ๋“œ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

 

 

 

service ๊ด€๋ จ commands๋ฅผ ํ†ตํ•ด ํ˜„์žฌ ์‹คํ–‰์ค‘์ธ ROS2 ๋…ธ๋“œ์˜ ๋ฆฌ์ŠคํŠธ๋ฅผ ์ถœ๋ ฅํ•˜๊ณ  ์‚ฌ์šฉ๊ฐ€๋Šฅํ•œ ๋ชจ๋“  ์„œ๋น„์Šค์˜ ๋ฆฌ์ŠคํŠธ๋ฅผ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค.

 

์ดํ›„ ์ง€์ •๋œ ์„œ๋น„์Šค์˜ ํƒ€์ž…์„ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค.

 

/add_two_ints ์„œ๋น„์Šค์˜ ํƒ€์ž…์€ example_interfaces/srv/AddTwoInts ์ด๋ฉฐ ํ•ด๋‹น ์„œ๋น„์Šค๋Š” ๋‘ ๊ฐœ์˜ int64 ํƒ€์ž…์˜ ์ž…๋ ฅ ('a', 'b')๋ฅผ ๋ฐ›์•„๋“ค์ด๊ณ  int64 ํƒ€์ž…์˜ ์ถœ๋ ฅ 'sum'์„ ๋ฐ˜ํ™˜ํ•œ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

์ฆ‰, ๋‘ ์ •์ˆ˜๋ฅผ ์ž…๋ ฅ์œผ๋กœ ๋ฐ›์•„ ๊ทธ ํ•ฉ์„ ๋ฐ˜ํ™˜ํ•˜๋Š” ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค.

 

 

 

 

 

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

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

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