본문 바로가기
  • 경제적 자유를 얻는 그날까지
728x90
반응형

엔지니어링/임베디드42

728x90
반응형
ROS2 humble 학습하기 1. turtlesim 실행해보기 1) turtlesim 패키지 리스트 확인$ ros2 pkg executables turtlesim  2) turtlesim 노드 실행$ ros2 run turtlesim turtlesim_node  아래와 같이 거북이 시뮬레이션 창이 나타남    3) turtlesim 텔레키보드 실행새로운 터미널 창을 열어서 원격으로 node에 명령을 줄 수 있는 키보드를 실행함$ ros2 run turtlesim turtle_teleop_key   키보드로 명령을 입력하면 명령에 따라 거북이가 이동하거나 회전하게됨    2. ROS 구조 파악하기 1) Node노드는 실행가는한 프로세스아래와 같이 현재 실행중인 노드를 확인할 수 있음$ ros2 node list  노드의 정보는 아래 .. 2025. 1. 12.
Ubuntu 22.04에 ROS2 humble 설치하기 설치과정은 아래와 같다.  1. 설치전$ sudo apt update$ sudo apt upgradeubuntu 업데이트 및 업그레이드 확인   2. 로컬 설치UTF-8 로컬은 한국이아니라 US 기준으로 설정$ sudo apt install locales$ sudo locale-gen en_US en_US.UTF-8 $ sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8$ export LANG=en_US.UTF-8  3. ROS2 설치에 필요한 유틸리티 설치$ sudo apt update && sudo apt install -y \ curl \ gnupg \ lsb-release \ build-essential \ cmake \ git \ lib.. 2025. 1. 12.
[ STM32 ] VS Code로 Nuttx OS 빌드 및 디버깅 환경설정하기 arm-none- eabi-gdb가 없을 때 해결방법 참고 사이트 https://askubuntu.com/questions/1243252/how-to-install-arm-none-eabi-gdb-on-ubuntu-20-04-lts-focal-fossa How to install arm-none-eabi-gdb on Ubuntu 20.04 LTS (Focal Fossa) I tried to install arm-none-eabi-gdb as a part of gcc-arm-embedded. I added PPA: sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa and executed: sudo apt install gcc-arm-embedded It res.. 2023. 5. 7.
[ STM32 ] STM32F4보드에 NuttxOS 설치하기 이전에 STM32보드에 CubeIDE를 이용하여 드론개발을 진행하였다. 편리한 GUI 인터페이스와 자동화 코드로 쉽게 구현할수 있어 장점이 많았다. 요즘 PX4 또는 github에서 오픈소스코드를 살펴보면 Nuttx OS 기반으로 비행제어 프로그램이 개발되어 있는 경우가 많아서 확장성을 고려하여 Nuittx OS 기반으로 프로그래밍을 개발하는 방법을 스터디해보고자 한다. 1. 하드웨어 준비 사용한 보드는 예전에 자작드론 개발시 사용했던 STM32F405RGxx 보드이다. 해당 보드는 omibus F4와 호환되는 보드로 LED, 자이로, PWM등을 온보드 형태로 사용할 수 있다. 보드에 대한 내용은 아래 포스팅을 참고하면 된다. 에뮬레이터는 J-Link를 사용한다. https://swiftcam.tisto.. 2023. 5. 7.
NuttX OS 알아보기 개발 환경 장비: 노트북 OS: Ubuntu 20.04 타겟보드: STM32F407 에뮬레이터: SEGGER J-Link 1. 개발 환경설정 필수 패키지 설치 sudo apt-get install automake bison build-essential flex gcc-arm-none-eabi gperf git libncurses5-dev libtool libusb-dev libusb-1.0.0-dev pkg-config -y OpenOCD 설치 설치 configure 에는 다양한 에뮬레이터를 활성화하는 옵션이 포함되어 있다. 본인은 J-link를 사용하는데 configure 실행시 아래와 같은 에러가 나면 J-link용 libjaylink-0.2 패키지를 별도로 설치해야 한다. $ mkdir nuttxs.. 2023. 3. 16.
Docker로 Ubuntu 18.04 + ROS melodic 개발환경 구축 1. docker hub에서 ubuntu 이미지 다운로드 osrf 재단에서 배포하는 이미지는 ROS와 함께 그 버전에 적합한 ubuntu를 함께 배포 swift@swift-MacBookPro:~/workspace$ docker pull osrf/ros:melodic-desktop-full-bionic melodic-desktop-full-bionic: Pulling from osrf/ros Digest: sha256:f9268872571969d1fa20a64d1a9225dd592451862b21c34d66e7b6be3541b8dd Status: Image is up to date for osrf/ros:melodic-desktop-full-bionic docker.io/osrf/ros:melodic-de.. 2022. 1. 8.
[ ROS ] ROS CPP 패키지 생성하기 1. ROS 패키지 생성(CPP 의존성) swift@swift-MacBookPro:~/Desktop$ cd ~/workspace/catkin_ws/src/ swift@swift-MacBookPro:~/workspace/catkin_ws/src$ catkin_create_pkg roscpp_test roscpp Created file roscpp_test/package.xml Created file roscpp_test/CMakeLists.txt Created folder roscpp_test/include/roscpp_test Created folder roscpp_test/src Successfully created files in /home/swift/workspace/catkin_ws/src/ros.. 2021. 9. 25.
catkin 빌드 시스템 https://adioshun.gitbooks.io/ros_autoware/content/Fundamentals/catkin-make.html 빌드 시스템 · ROS adioshun.gitbooks.io 2021. 9. 25.
Ubuntu 20.04에 ROS Noetic 설치하기 설치에 참고할 문서 http://wiki.ros.org/noetic/Installation/Ubuntu noetic/Installation/Ubuntu - ROS Wiki If you rely on these packages, please support OSRF. These packages are built and hosted on infrastructure maintained and paid for by the Open Source Robotics Foundation, a 501(c)(3) non-profit organization. If OSRF were to receive one penny for each downlo wiki.ros.org Ubuntu 18.04에서 ROS Melodic 설치하는 .. 2021. 8. 16.
[ OpenCV ] CMakefile 빌드 에러시 해결방법 만약 cmake로 빌드시 아래와 같은 에러메시지가 날 경우opencv의 라이브러리 경로를 찾지 못하여 발생하는 문제이다. yocto:~/opencv/examples/face_detect$ cmake CMakeLists.txt -- The C compiler identification is GNU 4.9.3 -- The CXX compiler identification is GNU 4.9.3 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Det.. 2021. 6. 9.