https://blog.naver.com/idea_robot/223193402883 설명대로 하는데 AHRS 가 안보임
페이지 정보
본문
라즈베리파이 버전 위 설명대로 했음 ros2가 설치된 이미지라고 하는데 Ro2명령이 듣지를 않네요
ros2 pkg list
Traceback (most recent call last):
File "/home/lovetang/ros_colcon_ws/install/ros2cli/bin/ros2", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3191, in <module>
@_call_aside
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3175, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 583, in _build_master
ws.require(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'ros2cli' distribution was not found and is required by the application
그리고 처음 화면 뜨면서 터미널 창에
ros_colocon_ws/ install 폴더 찾지 못한다는 메시지가 엄청 뜨네요
REMOTE PC 버전:
우분트 20.06
ROS 버전:
ros2 foxy
https://blog.naver.com/idea_robot/223193402883 설명대로 하는데 AHRS 가 안보임
lovetang@lovetangst:~ $ ls -la /dev/
total 4
drwxr-xr-x 18 root root 4060 Jul 5 2023 .
drwxr-xr-x 18 root root 4096 May 8 2021 ..
crw-r--r-- 1 root root 10, 235 Jan 23 07:53 autofs
drwxr-xr-x 2 root root 580 Jul 5 2023 block
lrwxrwxrwx 1 root root 5 Jan 23 07:53 BT -> ttyS0
crw------- 1 root root 10, 234 Jul 5 2023 btrfs-control
drwxr-xr-x 3 root root 60 Jan 1 1970 bus
crw------- 1 root root 10, 62 Jan 23 07:53 cachefiles
drwxr-xr-x 2 root root 3260 Jul 5 2023 char
crw------- 1 root root 5, 1 Jan 23 07:53 console
crw------- 1 root root 10, 203 Jul 5 2023 cuse
drwxr-xr-x 7 root root 140 Jul 5 2023 disk
drwxr-xr-x 2 root root 80 Jan 1 1970 dma_heap
drwxr-xr-x 3 root root 120 Jul 5 2023 dri
crw-rw---- 1 root video 29, 0 Jan 23 07:53 fb0
lrwxrwxrwx 1 root root 13 Feb 14 2019 fd -> /proc/self/fd
crw-rw-rw- 1 root root 1, 7 Jan 23 07:53 full
crw-rw-rw- 1 root root 10, 229 Jan 23 07:53 fuse
crw-rw---- 1 root gpio 254, 0 Jan 23 07:53 gpiochip0
crw-rw---- 1 root gpio 254, 1 Jan 23 07:53 gpiochip1
crw-rw---- 1 root gpio 254, 2 Jan 23 07:53 gpiochip2
crw-rw---- 1 root gpio 254, 3 Jan 23 07:53 gpiochip3
crw-rw---- 1 root gpio 246, 0 Jan 23 07:53 gpiomem
crw------- 1 root root 10, 183 Jan 23 07:53 hwrng
lrwxrwxrwx 1 root root 12 Feb 14 2019 initctl -> /run/initctl
drwxr-xr-x 4 root root 120 Jul 5 2023 input
crw-r--r-- 1 root root 1, 11 Jan 23 07:53 kmsg
lrwxrwxrwx 1 root root 28 Feb 14 2019 log -> /run/systemd/journal/dev-log
brw-rw---- 1 root disk 7, 0 Jan 23 07:53 loop0
brw-rw---- 1 root disk 7, 1 Jan 23 07:53 loop1
brw-rw---- 1 root disk 7, 2 Jan 23 07:53 loop2
brw-rw---- 1 root disk 7, 3 Jan 23 07:53 loop3
brw-rw---- 1 root disk 7, 4 Jan 23 07:53 loop4
brw-rw---- 1 root disk 7, 5 Jan 23 07:53 loop5
brw-rw---- 1 root disk 7, 6 Jan 23 07:53 loop6
brw-rw---- 1 root disk 7, 7 Jan 23 07:53 loop7
crw-rw---- 1 root disk 10, 237 Jan 23 07:53 loop-control
drwxr-xr-x 2 root root 60 Jul 5 2023 mapper
crw-rw---- 1 root video 236, 0 Jan 23 07:53 media0
crw-rw---- 1 root video 236, 1 Jan 23 07:53 media1
crw-rw---- 1 root video 236, 2 Jan 23 07:53 media2
crw-r----- 1 root kmem 1, 1 Jan 23 07:53 mem
brw-rw---- 1 root disk 179, 0 Jan 23 07:53 mmcblk0
brw-rw---- 1 root disk 179, 1 Jan 23 07:53 mmcblk0p1
brw-rw---- 1 root disk 179, 2 Jan 23 07:53 mmcblk0p2
drwxrwxrwt 2 root root 40 Jan 1 1970 mqueue
lrwxrwxrwx 1 root root 7 Jan 23 07:53 MW -> ttyUSB0
drwxr-xr-x 2 root root 60 Jul 5 2023 net
crw-rw-rw- 1 root root 1, 3 Jan 23 07:53 null
crw-r----- 1 root kmem 1, 4 Jan 23 07:53 port
crw------- 1 root root 108, 0 Jul 5 2023 ppp
crw-rw-rw- 1 root tty 5, 2 Jan 23 07:54 ptmx
drwxr-xr-x 2 root root 0 Feb 14 2019 pts
brw-rw---- 1 root disk 1, 0 Jan 23 07:53 ram0
brw-rw---- 1 root disk 1, 1 Jan 23 07:53 ram1
brw-rw---- 1 root disk 1, 10 Jan 23 07:53 ram10
brw-rw---- 1 root disk 1, 11 Jan 23 07:53 ram11
brw-rw---- 1 root disk 1, 12 Jan 23 07:53 ram12
brw-rw---- 1 root disk 1, 13 Jan 23 07:53 ram13
brw-rw---- 1 root disk 1, 14 Jan 23 07:53 ram14
brw-rw---- 1 root disk 1, 15 Jan 23 07:53 ram15
brw-rw---- 1 root disk 1, 2 Jan 23 07:53 ram2
brw-rw---- 1 root disk 1, 3 Jan 23 07:53 ram3
brw-rw---- 1 root disk 1, 4 Jan 23 07:53 ram4
brw-rw---- 1 root disk 1, 5 Jan 23 07:53 ram5
brw-rw---- 1 root disk 1, 6 Jan 23 07:53 ram6
brw-rw---- 1 root disk 1, 7 Jan 23 07:53 ram7
brw-rw---- 1 root disk 1, 8 Jan 23 07:53 ram8
brw-rw---- 1 root disk 1, 9 Jan 23 07:53 ram9
crw-rw-rw- 1 root root 1, 8 Jan 23 07:53 random
drwxr-xr-x 2 root root 60 Jan 1 1970 raw
crw-rw-r-- 1 root netdev 10, 242 Jan 23 07:53 rfkill
crw-rw---- 1 root video 238, 0 Jan 23 07:53 rpivid-h264mem
crw-rw---- 1 root video 240, 0 Jan 23 07:53 rpivid-hevcmem
crw-rw---- 1 root video 239, 0 Jan 23 07:53 rpivid-intcmem
crw-rw---- 1 root video 237, 0 Jan 23 07:53 rpivid-vp9mem
drwxr-xr-x 4 root root 80 Jul 5 2023 serial
lrwxrwxrwx 1 root root 5 Jan 23 07:53 serial0 -> ttyS0
lrwxrwxrwx 1 root root 7 Jan 23 07:53 serial1 -> ttyAMA0
drwxrwxrwt 2 root root 40 Feb 14 2019 shm
drwxr-xr-x 3 root root 180 Jul 5 2023 snd
lrwxrwxrwx 1 root root 15 Feb 14 2019 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 Feb 14 2019 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 Feb 14 2019 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root tty 5, 0 Jan 23 07:53 tty
crw--w---- 1 root tty 4, 0 Jan 23 07:53 tty0
crw------- 1 lovetang tty 4, 1 Jan 23 07:53 tty1
crw--w---- 1 root tty 4, 10 Jan 23 07:53 tty10
crw--w---- 1 root tty 4, 11 Jan 23 07:53 tty11
crw--w---- 1 root tty 4, 12 Jan 23 07:53 tty12
crw--w---- 1 root tty 4, 13 Jan 23 07:53 tty13
crw--w---- 1 root tty 4, 14 Jan 23 07:53 tty14
crw--w---- 1 root tty 4, 15 Jan 23 07:53 tty15
crw--w---- 1 root tty 4, 16 Jan 23 07:53 tty16
crw--w---- 1 root tty 4, 17 Jan 23 07:53 tty17
crw--w---- 1 root tty 4, 18 Jan 23 07:53 tty18
crw--w---- 1 root tty 4, 19 Jan 23 07:53 tty19
crw--w---- 1 root tty 4, 2 Jan 23 07:53 tty2
crw--w---- 1 root tty 4, 20 Jan 23 07:53 tty20
crw--w---- 1 root tty 4, 21 Jan 23 07:53 tty21
crw--w---- 1 root tty 4, 22 Jan 23 07:53 tty22
crw--w---- 1 root tty 4, 23 Jan 23 07:53 tty23
crw--w---- 1 root tty 4, 24 Jan 23 07:53 tty24
crw--w---- 1 root tty 4, 25 Jan 23 07:53 tty25
crw--w---- 1 root tty 4, 26 Jan 23 07:53 tty26
crw--w---- 1 root tty 4, 27 Jan 23 07:53 tty27
crw--w---- 1 root tty 4, 28 Jan 23 07:53 tty28
crw--w---- 1 root tty 4, 29 Jan 23 07:53 tty29
crw--w---- 1 root tty 4, 3 Jan 23 07:53 tty3
crw--w---- 1 root tty 4, 30 Jan 23 07:53 tty30
crw--w---- 1 root tty 4, 31 Jan 23 07:53 tty31
crw--w---- 1 root tty 4, 32 Jan 23 07:53 tty32
crw--w---- 1 root tty 4, 33 Jan 23 07:53 tty33
crw--w---- 1 root tty 4, 34 Jan 23 07:53 tty34
crw--w---- 1 root tty 4, 35 Jan 23 07:53 tty35
crw--w---- 1 root tty 4, 36 Jan 23 07:53 tty36
crw--w---- 1 root tty 4, 37 Jan 23 07:53 tty37
crw--w---- 1 root tty 4, 38 Jan 23 07:53 tty38
crw--w---- 1 root tty 4, 39 Jan 23 07:53 tty39
crw--w---- 1 root tty 4, 4 Jan 23 07:53 tty4
crw--w---- 1 root tty 4, 40 Jan 23 07:53 tty40
crw--w---- 1 root tty 4, 41 Jan 23 07:53 tty41
crw--w---- 1 root tty 4, 42 Jan 23 07:53 tty42
crw--w---- 1 root tty 4, 43 Jan 23 07:53 tty43
crw--w---- 1 root tty 4, 44 Jan 23 07:53 tty44
crw--w---- 1 root tty 4, 45 Jan 23 07:53 tty45
crw--w---- 1 root tty 4, 46 Jan 23 07:53 tty46
crw--w---- 1 root tty 4, 47 Jan 23 07:53 tty47
crw--w---- 1 root tty 4, 48 Jan 23 07:53 tty48
crw--w---- 1 root tty 4, 49 Jan 23 07:53 tty49
crw--w---- 1 root tty 4, 5 Jan 23 07:53 tty5
crw--w---- 1 root tty 4, 50 Jan 23 07:53 tty50
crw--w---- 1 root tty 4, 51 Jan 23 07:53 tty51
crw--w---- 1 root tty 4, 52 Jan 23 07:53 tty52
crw--w---- 1 root tty 4, 53 Jan 23 07:53 tty53
crw--w---- 1 root tty 4, 54 Jan 23 07:53 tty54
crw--w---- 1 root tty 4, 55 Jan 23 07:53 tty55
crw--w---- 1 root tty 4, 56 Jan 23 07:53 tty56
crw--w---- 1 root tty 4, 57 Jan 23 07:53 tty57
crw--w---- 1 root tty 4, 58 Jan 23 07:53 tty58
crw--w---- 1 root tty 4, 59 Jan 23 07:53 tty59
crw--w---- 1 root tty 4, 6 Jan 23 07:53 tty6
crw--w---- 1 root tty 4, 60 Jan 23 07:53 tty60
crw--w---- 1 root tty 4, 61 Jan 23 07:53 tty61
crw--w---- 1 root tty 4, 62 Jan 23 07:53 tty62
crw--w---- 1 root tty 4, 63 Jan 23 07:53 tty63
crw--w---- 1 root tty 4, 7 Jan 23 07:53 tty7
crw--w---- 1 root tty 4, 8 Jan 23 07:53 tty8
crw--w---- 1 root tty 4, 9 Jan 23 07:53 tty9
crw-rw---- 1 root dialout 204, 64 Jan 23 07:53 ttyAMA0
crw------- 1 root root 5, 3 Jan 23 07:53 ttyprintk
crwxrwxrwx 1 root root 4, 64 Jan 23 07:53 ttyS0
crwxrwxrwx 1 root root 188, 0 Jan 23 07:53 ttyUSB0
crwxrwxrwx 1 root root 188, 1 Jan 23 07:53 ttyUSB1
crw-rw---- 1 root dialout 188, 2 Jan 23 07:53 ttyUSB2
crw------- 1 root root 10, 239 Jul 5 2023 uhid
crw------- 1 root root 10, 223 Jul 5 2023 uinput
crw-rw-rw- 1 root root 1, 9 Jan 23 07:53 urandom
drwxr-xr-x 4 root root 80 Jul 5 2023 v4l
crw-rw---- 1 root video 242, 0 Jan 23 07:53 vchiq
crw-rw---- 1 root video 247, 0 Jan 23 07:53 vcio
crw------- 1 root root 248, 0 Jan 23 07:53 vc-mem
crw-rw---- 1 root tty 7, 0 Jan 23 07:53 vcs
crw-rw---- 1 root tty 7, 1 Jan 23 07:53 vcs1
crw-rw---- 1 root tty 7, 2 Jan 23 07:53 vcs2
crw-rw---- 1 root tty 7, 3 Jan 23 07:53 vcs3
crw-rw---- 1 root tty 7, 4 Jan 23 07:53 vcs4
crw-rw---- 1 root tty 7, 5 Jan 23 07:53 vcs5
crw-rw---- 1 root tty 7, 6 Jan 23 07:53 vcs6
crw-rw---- 1 root tty 7, 7 Jan 23 07:53 vcs7
crw-rw---- 1 root tty 7, 128 Jan 23 07:53 vcsa
crw-rw---- 1 root tty 7, 129 Jan 23 07:53 vcsa1
crw-rw---- 1 root tty 7, 130 Jan 23 07:53 vcsa2
crw-rw---- 1 root tty 7, 131 Jan 23 07:53 vcsa3
crw-rw---- 1 root tty 7, 132 Jan 23 07:53 vcsa4
crw-rw---- 1 root tty 7, 133 Jan 23 07:53 vcsa5
crw-rw---- 1 root tty 7, 134 Jan 23 07:53 vcsa6
crw-rw---- 1 root tty 7, 135 Jan 23 07:53 vcsa7
crw-rw---- 1 root video 10, 61 Jan 23 07:53 vcsm-cma
crw-rw---- 1 root tty 7, 64 Jan 23 07:53 vcsu
crw-rw---- 1 root tty 7, 65 Jan 23 07:53 vcsu1
crw-rw---- 1 root tty 7, 66 Jan 23 07:53 vcsu2
crw-rw---- 1 root tty 7, 67 Jan 23 07:53 vcsu3
crw-rw---- 1 root tty 7, 68 Jan 23 07:53 vcsu4
crw-rw---- 1 root tty 7, 69 Jan 23 07:53 vcsu5
crw-rw---- 1 root tty 7, 70 Jan 23 07:53 vcsu6
crw-rw---- 1 root tty 7, 71 Jan 23 07:53 vcsu7
crw------- 1 root root 10, 63 Jan 23 07:53 vga_arbiter
crw------- 1 root root 10, 137 Jul 5 2023 vhci
crw-rw----+ 1 root video 81, 5 Jan 23 07:53 video0
crw-rw----+ 1 root video 81, 6 Jan 23 07:53 video1
crw-rw----+ 1 root video 81, 4 Jan 23 07:53 video10
crw-rw----+ 1 root video 81, 7 Jan 23 07:53 video11
crw-rw----+ 1 root video 81, 8 Jan 23 07:53 video12
crw-rw----+ 1 root video 81, 0 Jan 23 07:53 video13
crw-rw----+ 1 root video 81, 1 Jan 23 07:53 video14
crw-rw----+ 1 root video 81, 2 Jan 23 07:53 video15
crw-rw----+ 1 root video 81, 3 Jan 23 07:53 video16
crw-rw----+ 1 root video 81, 9 Jan 23 07:53 video18
crw------- 1 root root 10, 130 Jan 23 07:53 watchdog
crw------- 1 root root 250, 0 Jan 23 07:53 watchdog0
lrwxrwxrwx 1 root root 7 Jan 23 07:53 YDLIDAR -> ttyUSB1
crw-rw-rw- 1 root root 1, 5 Jan 23 07:53 zero
- 이전글N2 라즈베리파이 이미지 구분 24.01.26
- 다음글rviz에서 no transform 24.01.16
댓글목록
최고관리자님의 댓글
최고관리자 작성일
안녕하세요.
아이디어 로봇입니다.
라즈베리파이 버전 위 설명대로 했음 ros2가 설치된 이미지라고 하는데 Ro2명령이 듣지를 않네요
-> 해당 문제의 경우 이미지 설치 과정 중 ros2cli 패키지가 누락된 것으로 보입니다.
추가로 설치하여 주시면 해결될 것으로 보입니다.
ls -la /dev/ 에서 AHRS가 안보이는 경우 rules 설정이 잘못된 것으로 보입니다.
cd ~/colcon_ws/src/STELLA_N2_PI_X4_ROS2_v2.0/stella_bringup 으로 디렉토리를 이동한 다음
sh delete_udev_rules.sh 명령어로 기존 rules를 제거하여 주시고
sh create_udev_rules.sh 명령어로 rules를 설정하여 주세요.
만약 위 방법으로도 AHRS가 안보이신다면
아래 링크의 댓글을 확인하시어 rules를 수정하여 주시면 될 것 같습니다.
https://idea.synology.me/bbs/board.php?bo_table=N1&wr_id=323#c_331
lovetang님의 댓글
lovetang 작성일왜 이미지로 구워져 있는데 설치가 안되는건지 궁금하네요
lovetang님의 댓글
lovetang 작성일일단 가이드대로 해보고 다시 질문하겠습니다. 다만 이미지로 구워져 있는걸 까는데 왜 설치가 안되거나 설정이 잘못되어 있는 걸까요
최고관리자님의 댓글의 댓글
최고관리자 작성일
안녕하세요.
아이디어 로봇입니다.
우선 불편을 드려 죄송합니다.
가이드대로 진행 후 안되시면 댓글 남겨주시면 회신드리겠습니다.
번거로우시더라도 ahrs를 아이디어로봇으로 보내주시면
테스트를 진행해봐야 될 것으로 보입니다.
양해 부탁드립니다.
ahrs만 보내주셔도 되고 아예 stella n2_cam을 보내주시면 전체적으로 테스트 진행 후 출고 도와드리겠습니다.
감사합니다.