로보틱스 꿀팁 대방출

  • 홈
  • 태그
  • 방명록

Robotics/ROS 3

[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

[ROS] How to generate TF message quickly

TF 메세지를 빠르게 만들고 싶을때 ! launch 파일 안에 추가 args는 순서대로 x, y, z, yaw, pitch, roll, frame_id, child_frame_id, period 순서가 중요하니 헷갈리지 말 것

Robotics/ROS 2020.12.10

[ROS] how to draw a marker on rviz (node, link, text)

1. 노드 (위 그림의 초록색 원 찍기) node.type = visualization_msgs::Marker::SPHERE; 일때 가장 쉽게 사용이 가능하다. ros의 visualization_msgs/Marker를 참고한다. struct Point { float x, float y, float z }; int main() { ros::init(argc, argv, "basic_shapes"); ros::NodeHandle n; ros::Publisher marker_pub = n.advertise("marker/node", 1); Point p; std::vector vec_point; for(int i=0; i

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

로보틱스 꿀팁 대방출

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

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

Tag

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

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/08   »
일 월 화 수 목 금 토
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.

티스토리툴바