로보틱스 꿀팁 대방출

  • 홈
  • 태그
  • 방명록

Robotics/프로그래밍수학 2

[프로그래밍수학] 원점 기준으로 원의 테두리 (호) 좌표 구하기

C++ 사용 sturct point { float x; float y; }; std::vector vec_p; float f_radius=5.0; float f_center_x=0; float f_center_y=0; float f_start_theta=0; float f_end_theta=180; for (int i = f_start_theta; i < f_end_theta; i++) //1 degree 마다 { point p; float f_x = cos(i*DEG2RAD)*f_radius + f_center_x; float f_y = sin(i*DEG2RAD)*f_radius + f_center_y; p.x(f_x); p.y(f_y); vec_p.emplace_back(o_tmp_pos); } ve..

Robotics/프로그래밍수학 2021.04.08

[프로그래밍수학] 두 점 사이의 절대각도

A위치에 대한 B위치의 절대각도 구하기 A가 로봇의 위치라고 지정하였을 때, B 지점에 대한 절대 각도를 알고싶을 때 유용하게 사용 가능하다. example C++ code) float a_x = 0; float a_y = 0; float b_x = -2; float b_y = -2; float delta_x = b_x - a_x; float delta_y = b_y - a_y; float diff_deg = atan2f(delta_y, delta_x)* 180 / 3.14; example video)

Robotics/프로그래밍수학 2021.03.29
이전
1
다음
더보기
프로필사진

로보틱스 꿀팁 대방출

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

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

Tag

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

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

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

티스토리툴바