GitHub -> ntrexlab/PC_AHRS_ROS2
-
-
- AHRS - MW_AHRSv1
- RS232_USB_커넥터 - USB2CAN(FIFO) v2
-
-
git clone https://github.com/ntrexlab/PC_AHRS_ROS2.git
ls /dev/tty*
sudo chmod +x /dev/ttyUSB0
ros2 launch stella_ahrs stella_ahrs_launch.py
-
[stella_ahrs/src/MwAHRS.cpp]
bool Mw_AHRS_init(int ID) 함수는 AHRS 초기설정을 할 수 있도록 지원합니다. 기본적으로 바이너리, 통신주기, 출력데이터를 설정하여 ROS2에서 바로 사용 할 수 있도록 하였습니다.[stella_ahrs/src/listener.cpp]
52번째 줄에 있는 if(MW_SerialOpen("/dev/ttyUSB0", 115200) < 0) 코드에서 ttyUSB0은 위 작동 카테고리 항목을 참고하여 변경하시거나 그대로 사용하시면 됩니다.