winmin 라이브러리

  • 홈
  • 태그
  • 방명록

ros 1

[ROS2] Publish + Subscribe 기초 예제 (C++)

안녕하세요.ROS2 에서 Publish, Subscribe 노드를 생성하고 통신을 테스트해보는 기초 예제입니다. 1. ROS2 패키지 생성ros2 pkg create --build-type ament_cmake cpp_pub_sub 1) rclcppROS2 의 C++ client 라이브러리 2) std_msgsROS의 메세지 타입을 표준화하여 정의ex) int32, float32 등  2. Publisher 코드 작성"cpp_pub.h"#include #include #include #include #include "rclcpp/rclcpp.hpp" #include "std_msgs/msg/int32.hpp"using namespace std::chrono_literals; class CppPub..

Software/Linux 2025.01.07
이전
1
다음
더보기
프로필사진

winmin 라이브러리

로봇 만드는 대학원생입니다. 연구하며 배우는 것들을 기록해요.

  • 분류 전체보기 (32) N
    • Robotics Engineering (1)
      • Sensors (1)
    • Software (15)
      • Visual Studio (3)
      • MATLAB (10)
      • Git (0)
      • Linux (2)
    • Design (8)
      • SOLIDWORKS (4)
      • PCB (4)
    • Embedded (0)
      • STM32 (0)
    • Devices (3)
      • KUKA Robotics (2)
    • Other SW (4) N
      • Notion (1)
      • Microsoft365 (2) N

최근글과 인기글

  • 최근글
  • 인기글

공지사항

Archives

Copyright © AXZ Corp. All rights reserved.

티스토리툴바