로보틱스 꿀팁 대방출

  • 홈
  • 태그
  • 방명록

ros subscriber 1

[ROS] ros subscribe once

종종 변하지 않는 데이터를 (tf_static, camera_info 등)을 publish하는 노드들이 있다. 근데 나는 한번만 받아서 업데이트가 필요하다. 그래서 구글에 찾아봄 해결 방법 : subscriber 인스턴스를 포인터로 사용하고 delete해준다. global variable ros::Subscriber* camera_info_sub_; initialize camera_info_sub_ = new ros::Subscriber; camera_info_sub_ = nh.subscribe("/camera/depth/camera_info", 1, &your_class::camera_info_cb, this); function void your_class::camera_info_cb(const sen..

Robotics/ROS 2021.07.20
이전
1
다음
더보기
프로필사진

로보틱스 꿀팁 대방출

로보틱스 C++ 엔지니어 개발 블로그입니다

  • 분류 전체보기 (13)
    • C++ (1)
      • coding skills (1)
    • Python (1)
    • Linux (2)
    • Robotics (8)
      • ROS (3)
      • ROS2 (3)
      • 프로그래밍수학 (2)
    • Git (1)

Tag

ament, 로봇 원격, threading event, marker id, ros tf, ros subscriber, stage_ros2, marker array, stageros, tf_static, catkin, tf만들기, 크롬 원격, 우분투 크롬 원격, python event, rviz 마커, chorme remote, ROS, tf launch, ROS2,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바