[긴급] 원격 PC AHRS 폴더 없음, ros2 command not found > STELLA_N2_Forum

본문 바로가기
사이트 내 전체검색

STELLA_N2_Forum

[긴급] 원격 PC AHRS 폴더 없음, ros2 command not found

페이지 정보

profile_image
작성자 오오잉
댓글 1건 조회 161회 작성일 25-07-19 22:56

본문

STELLA N2 SBC 버전: STELLA N2

REMOTE PC 버전: Ubuntu 20.04

ROS 버전: ROS2 foxy


"원격접속을 성공하였다면 ls -la /dev/ 명령어를 사용하고 AHRS, BT, MW, YDLIDAR가 리스트에 있는지 확인합니다"

1. 이 부분을 실행했는데 AHRS만 리스트에서 확인이 되지 않고 있습니다. 하위파일로 추정되는 ttyUSB0만 확인이 되는데, AHRS 파일 내부에 속해있어야할 것 같은데 없는 것 같습니다.
블로그를 참고해서 sh create_udev_rules.sh 를 실행하고도 아래와 같이 리스트(마지막 참조)가 뜨고 있습니다.

 /home/pi/colcon_ws/STELLA_N2_PI_X4PRO_ROS2의 stella 폴더 안에 stella_ahrs 폴더가 있습니다. colcon_build를 할 때 뷜드가 안되는 영역에 있다고 합니다. 또한 ls -la /dev/를 해보면 다른 센서들은 등록이 되어있는데 ahrs와 관련된 것은 아무것도 없습니다. stella_ahrs를 stella와 동일한 위치로 옮겨(stella_bring, stella, stella_camera, stella_description, stella_teleop_bluetooth와 동일한 level의 위치)보았지만 인식이 되지 않는 문제는 동일했습니다. (sdtella_md, ydidar_ros2_driver는 원리 stella_ahrs와 함꼐 stella 폴더 안에 존재합니다.)


2. 또한, 이후에 bringup launch 코드를 실행하면

pi@raspberrypi:~$ ros2 launch stella_bringup robot.launch.py
bash: ros2: command not found
pi@raspberrypi:~$ ~source /opt/ros/foxy/setup.bash
bash: ~source: command not found
pi@raspberrypi:~$

이렇게 뜨고 있습니다.

-> ls -la/dev 실행 후에 나오는 코드

pi@raspberrypi:~$ ls -la /dev/
total 4
drwxr-xr-x  19 root root        4100 Jul 19 22:42 .
drwxr-xr-x  18 root root        4096 May  8  2021 ..
crw-r--r--  1 root root    10, 235 Jul 19 22:43 autofs
drwxr-xr-x  2 root root        580 Jan  8  2024 block
lrwxrwxrwx  1 root root          5 Jul 19 22:43 BT -> ttyS0
crw-------  1 root root    10, 234 Jan  8  2024 btrfs-control
drwxr-xr-x  3 root root          60 Jan  1  1970 bus
crw-------  1 root root    10,  62 Jul 19 22:43 cachefiles
drwxr-xr-x  2 root root        3480 Jul 19 22:42 char
crw-------  1 root root      5,  1 Jul 19 22:43 console
crw-------  1 root root    10, 203 Jan  8  2024 cuse
drwxr-xr-x  7 root root        140 Jan  8  2024 disk
drwxr-xr-x  2 root root          80 Jan  1  1970 dma_heap
drwxr-xr-x  3 root root        120 Jan  8  2024 dri
crw-rw----  1 root video    29,  0 Jul 19 22:43 fb0
lrwxrwxrwx  1 root root          13 Feb 14  2019 fd -> /proc/self/fd
crw-rw-rw-  1 root root      1,  7 Jul 19 22:43 full
crw-rw-rw-  1 root root    10, 229 Jul 19 22:43 fuse
crw-rw----  1 root gpio    254,  0 Jul 19 22:43 gpiochip0
crw-rw----  1 root gpio    254,  1 Jul 19 22:43 gpiochip1
crw-rw----  1 root gpio    254,  2 Jul 19 22:43 gpiochip2
crw-rw----  1 root gpio    246,  0 Jul 19 22:43 gpiomem
crw-------  1 root root    243,  0 Jul 19 22:43 hidraw0
crw-------  1 root root    243,  1 Jul 19 22:43 hidraw1
crw-------  1 root root    243,  2 Jul 19 22:43 hidraw2
crw-------  1 root root    10, 183 Jul 19 22:43 hwrng
lrwxrwxrwx  1 root root          12 Feb 14  2019 initctl -> /run/initctl
drwxr-xr-x  4 root root        320 Jul 19 22:42 input
crw-r--r--  1 root root      1,  11 Jul 19 22:43 kmsg
lrwxrwxrwx  1 root root          28 Feb 14  2019 log -> /run/systemd/journal/dev-log
brw-rw----  1 root disk      7,  0 Jul 19 22:43 loop0
brw-rw----  1 root disk      7,  1 Jul 19 22:43 loop1
brw-rw----  1 root disk      7,  2 Jul 19 22:43 loop2
brw-rw----  1 root disk      7,  3 Jul 19 22:43 loop3
brw-rw----  1 root disk      7,  4 Jul 19 22:43 loop4
brw-rw----  1 root disk      7,  5 Jul 19 22:43 loop5
brw-rw----  1 root disk      7,  6 Jul 19 22:43 loop6
brw-rw----  1 root disk      7,  7 Jul 19 22:43 loop7
crw-rw----  1 root disk    10, 237 Jul 19 22:43 loop-control
drwxr-xr-x  2 root root          60 Jan  8  2024 mapper
crw-rw----  1 root video  240,  0 Jul 19 22:43 media0
crw-rw----  1 root video  240,  1 Jul 19 22:43 media1
crw-rw----  1 root video  240,  2 Jul 19 22:43 media2
crw-r-----  1 root kmem      1,  1 Jul 19 22:43 mem
brw-rw----  1 root disk    179,  0 Jul 19 22:43 mmcblk0
brw-rw----  1 root disk    179,  1 Jul 19 22:43 mmcblk0p1
brw-rw----  1 root disk    179,  2 Jul 19 22:43 mmcblk0p2
drwxrwxrwt  2 root root          40 Jan  1  1970 mqueue
lrwxrwxrwx  1 root root          7 Jul 19 22:43 MW -> ttyUSB0
drwxr-xr-x  2 root root          60 Jan  8  2024 net
crw-rw-rw-  1 root root      1,  3 Jul 19 22:43 null
crw-r-----  1 root kmem      1,  4 Jul 19 22:43 port
crw-------  1 root root    108,  0 Jan  8  2024 ppp
crw-rw-rw-  1 root tty      5,  2 Jul 19 22:44 ptmx
drwxr-xr-x  2 root root          0 Feb 14  2019 pts
brw-rw----  1 root disk      1,  0 Jul 19 22:43 ram0
brw-rw----  1 root disk      1,  1 Jul 19 22:43 ram1
brw-rw----  1 root disk      1,  10 Jul 19 22:43 ram10
brw-rw----  1 root disk      1,  11 Jul 19 22:43 ram11
brw-rw----  1 root disk      1,  12 Jul 19 22:43 ram12
brw-rw----  1 root disk      1,  13 Jul 19 22:43 ram13
brw-rw----  1 root disk      1,  14 Jul 19 22:43 ram14
brw-rw----  1 root disk      1,  15 Jul 19 22:43 ram15
brw-rw----  1 root disk      1,  2 Jul 19 22:43 ram2
brw-rw----  1 root disk      1,  3 Jul 19 22:43 ram3
brw-rw----  1 root disk      1,  4 Jul 19 22:43 ram4
brw-rw----  1 root disk      1,  5 Jul 19 22:43 ram5
brw-rw----  1 root disk      1,  6 Jul 19 22:43 ram6
brw-rw----  1 root disk      1,  7 Jul 19 22:43 ram7
brw-rw----  1 root disk      1,  8 Jul 19 22:43 ram8
brw-rw----  1 root disk      1,  9 Jul 19 22:43 ram9
crw-rw-rw-  1 root root      1,  8 Jul 19 22:43 random
drwxr-xr-x  2 root root          60 Jan  1  1970 raw
crw-rw-r--  1 root netdev  10, 242 Jul 19 22:43 rfkill
crw-rw----  1 root video  236,  0 Jul 19 22:43 rpivid-h264mem
crw-rw----  1 root video  238,  0 Jul 19 22:43 rpivid-hevcmem
crw-rw----  1 root video  237,  0 Jul 19 22:43 rpivid-intcmem
crw-rw----  1 root video  235,  0 Jul 19 22:43 rpivid-vp9mem
drwxr-xr-x  4 root root          80 Jul 19 19:12 serial
lrwxrwxrwx  1 root root          5 Jul 19 22:43 serial0 -> ttyS0
lrwxrwxrwx  1 root root          7 Jul 19 22:43 serial1 -> ttyAMA0
drwxrwxrwt  2 root root          40 Jul 19 20:45 shm
drwxr-xr-x  3 root root        140 Jan  8  2024 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 Jul 19 22:43 tty
crw--w----  1 root tty      4,  0 Jul 19 22:43 tty0
crw-------  1 pi  tty      4,  1 Jul 19 22:43 tty1
crw--w----  1 root tty      4,  10 Jul 19 22:43 tty10
crw--w----  1 root tty      4,  11 Jul 19 22:43 tty11
crw--w----  1 root tty      4,  12 Jul 19 22:43 tty12
crw--w----  1 root tty      4,  13 Jul 19 22:43 tty13
crw--w----  1 root tty      4,  14 Jul 19 22:43 tty14
crw--w----  1 root tty      4,  15 Jul 19 22:43 tty15
crw--w----  1 root tty      4,  16 Jul 19 22:43 tty16
crw--w----  1 root tty      4,  17 Jul 19 22:43 tty17
crw--w----  1 root tty      4,  18 Jul 19 22:43 tty18
crw--w----  1 root tty      4,  19 Jul 19 22:43 tty19
crw--w----  1 root tty      4,  2 Jul 19 22:43 tty2
crw--w----  1 root tty      4,  20 Jul 19 22:43 tty20
crw--w----  1 root tty      4,  21 Jul 19 22:43 tty21
crw--w----  1 root tty      4,  22 Jul 19 22:43 tty22
crw--w----  1 root tty      4,  23 Jul 19 22:43 tty23
crw--w----  1 root tty      4,  24 Jul 19 22:43 tty24
crw--w----  1 root tty      4,  25 Jul 19 22:43 tty25
crw--w----  1 root tty      4,  26 Jul 19 22:43 tty26
crw--w----  1 root tty      4,  27 Jul 19 22:43 tty27
crw--w----  1 root tty      4,  28 Jul 19 22:43 tty28
crw--w----  1 root tty      4,  29 Jul 19 22:43 tty29
crw--w----  1 root tty      4,  3 Jul 19 22:43 tty3
crw--w----  1 root tty      4,  30 Jul 19 22:43 tty30
crw--w----  1 root tty      4,  31 Jul 19 22:43 tty31
crw--w----  1 root tty      4,  32 Jul 19 22:43 tty32
crw--w----  1 root tty      4,  33 Jul 19 22:43 tty33
crw--w----  1 root tty      4,  34 Jul 19 22:43 tty34
crw--w----  1 root tty      4,  35 Jul 19 22:43 tty35
crw--w----  1 root tty      4,  36 Jul 19 22:43 tty36
crw--w----  1 root tty      4,  37 Jul 19 22:43 tty37
crw--w----  1 root tty      4,  38 Jul 19 22:43 tty38
crw--w----  1 root tty      4,  39 Jul 19 22:43 tty39
crw--w----  1 root tty      4,  4 Jul 19 22:43 tty4
crw--w----  1 root tty      4,  40 Jul 19 22:43 tty40
crw--w----  1 root tty      4,  41 Jul 19 22:43 tty41
crw--w----  1 root tty      4,  42 Jul 19 22:43 tty42
crw--w----  1 root tty      4,  43 Jul 19 22:43 tty43
crw--w----  1 root tty      4,  44 Jul 19 22:43 tty44
crw--w----  1 root tty      4,  45 Jul 19 22:43 tty45
crw--w----  1 root tty      4,  46 Jul 19 22:43 tty46
crw--w----  1 root tty      4,  47 Jul 19 22:43 tty47
crw--w----  1 root tty      4,  48 Jul 19 22:43 tty48
crw--w----  1 root tty      4,  49 Jul 19 22:43 tty49
crw--w----  1 root tty      4,  5 Jul 19 22:43 tty5
crw--w----  1 root tty      4,  50 Jul 19 22:43 tty50
crw--w----  1 root tty      4,  51 Jul 19 22:43 tty51
crw--w----  1 root tty      4,  52 Jul 19 22:43 tty52
crw--w----  1 root tty      4,  53 Jul 19 22:43 tty53
crw--w----  1 root tty      4,  54 Jul 19 22:43 tty54
crw--w----  1 root tty      4,  55 Jul 19 22:43 tty55
crw--w----  1 root tty      4,  56 Jul 19 22:43 tty56
crw--w----  1 root tty      4,  57 Jul 19 22:43 tty57
crw--w----  1 root tty      4,  58 Jul 19 22:43 tty58
crw--w----  1 root tty      4,  59 Jul 19 22:43 tty59
crw--w----  1 root tty      4,  6 Jul 19 22:43 tty6
crw--w----  1 root tty      4,  60 Jul 19 22:43 tty60
crw--w----  1 root tty      4,  61 Jul 19 22:43 tty61
crw--w----  1 root tty      4,  62 Jul 19 22:43 tty62
crw--w----  1 root tty      4,  63 Jul 19 22:43 tty63
crw--w----  1 root tty      4,  7 Jul 19 22:43 tty7
crw--w----  1 root tty      4,  8 Jul 19 22:43 tty8
crw--w----  1 root tty      4,  9 Jul 19 22:43 tty9
crw-rw----  1 root dialout 204,  64 Jul 19 22:43 ttyAMA0
crw-------  1 root root      5,  3 Jul 19 22:43 ttyprintk
crwxrwxrwx  1 root root      4,  64 Jul 19 22:43 ttyS0
crwxrwxrwx  1 root root    188,  0 Jul 19 22:43 ttyUSB0
crwxrwxrwx  1 root root    188,  1 Jul 19 22:43 ttyUSB1
crw-------  1 root root    10, 239 Jul 19 22:43 uhid
crw-------  1 root root    10, 223 Jan  8  2024 uinput
crw-rw-rw-  1 root root      1,  9 Jul 19 22:43 urandom
drwxr-xr-x  2 root root          60 Jul 19 18:51 usb
drwxr-xr-x  4 root root          80 Jul 19 18:50 v4l
crw-rw----  1 root video  242,  0 Jul 19 22:43 vchiq
crw-rw----  1 root video  247,  0 Jul 19 22:43 vcio
crw-------  1 root root    248,  0 Jul 19 22:43 vc-mem
crw-rw----  1 root tty      7,  0 Jul 19 22:43 vcs
crw-rw----  1 root tty      7,  1 Jul 19 22:43 vcs1
crw-rw----  1 root tty      7,  2 Jul 19 22:43 vcs2
crw-rw----  1 root tty      7,  3 Jul 19 22:43 vcs3
crw-rw----  1 root tty      7,  4 Jul 19 22:43 vcs4
crw-rw----  1 root tty      7,  5 Jul 19 22:43 vcs5
crw-rw----  1 root tty      7,  6 Jul 19 22:43 vcs6
crw-rw----  1 root tty      7,  7 Jul 19 22:43 vcs7
crw-rw----  1 root tty      7, 128 Jul 19 22:43 vcsa
crw-rw----  1 root tty      7, 129 Jul 19 22:43 vcsa1
crw-rw----  1 root tty      7, 130 Jul 19 22:43 vcsa2
crw-rw----  1 root tty      7, 131 Jul 19 22:43 vcsa3
crw-rw----  1 root tty      7, 132 Jul 19 22:43 vcsa4
crw-rw----  1 root tty      7, 133 Jul 19 22:43 vcsa5
crw-rw----  1 root tty      7, 134 Jul 19 22:43 vcsa6
crw-rw----  1 root tty      7, 135 Jul 19 22:43 vcsa7
crw-rw----  1 root video    10,  61 Jul 19 22:43 vcsm-cma
crw-rw----  1 root tty      7,  64 Jul 19 22:43 vcsu
crw-rw----  1 root tty      7,  65 Jul 19 22:43 vcsu1
crw-rw----  1 root tty      7,  66 Jul 19 22:43 vcsu2
crw-rw----  1 root tty      7,  67 Jul 19 22:43 vcsu3
crw-rw----  1 root tty      7,  68 Jul 19 22:43 vcsu4
crw-rw----  1 root tty      7,  69 Jul 19 22:43 vcsu5
crw-rw----  1 root tty      7,  70 Jul 19 22:43 vcsu6
crw-rw----  1 root tty      7,  71 Jul 19 22:43 vcsu7
crw-------  1 root root    10,  63 Jul 19 22:43 vga_arbiter
crw-------  1 root root    10, 137 Jan  8  2024 vhci
crw-rw----+  1 root video    81,  8 Jul 19 22:43 video0
crw-rw----+  1 root video    81,  9 Jul 19 22:43 video1
crw-rw----+  1 root video    81,  0 Jul 19 22:43 video10
crw-rw----+  1 root video    81,  4 Jul 19 22:43 video11
crw-rw----+  1 root video    81,  6 Jul 19 22:43 video12
crw-rw----+  1 root video    81,  1 Jul 19 22:43 video13
crw-rw----+  1 root video    81,  2 Jul 19 22:43 video14
crw-rw----+  1 root video    81,  3 Jul 19 22:43 video15
crw-rw----+  1 root video    81,  5 Jul 19 22:43 video16
crw-rw----+  1 root video    81,  7 Jul 19 22:43 video18
crw-------  1 root root    10, 130 Jul 19 22:43 watchdog
crw-------  1 root root    250,  0 Jul 19 22:43 watchdog0
lrwxrwxrwx  1 root root          7 Jul 19 22:43 YDLIDAR -> ttyUSB1
crw-rw-rw-  1 root root      1,  5 Jul 19 22:43 zero


어떻게 하는게 좋을까요? 저희는 STELLA N2 PI X4PRO 를 사용하고 있습니다.
저희가 2달째 sd카드도 다시 구워보고, 시도를 했는데도 되지 않아서.. 지금 구매하고 3달째 구동을 못하고 있습니다... 공모전 제출이 한달 남은 상황이라 방문을 해서라도 구동을 시켜보고 싶은데 가능한 방법이 있을까요? 답변 주시면 감사하겠습니다.

댓글목록

profile_image

최고관리자님의 댓글

최고관리자 작성일

안녕하세요.

아이디어 로봇입니다.

현재 AHRS가 인식이 되고 있지 않는 것으로 보입니다.
먼저 아래 링크에서 GUI를 설치하셔서 윈도우 PC에서 AHRS가 잘 연결되는 지 확인하여 주세요.
https://idea.synology.me/bbs/board.php?bo_table=forum&wr_id=33

테스트가 완료 후 문제가 파악되면 방문 수리 필요 여부를 확인하여 보도록 하겠습니다.

회원로그인

회원가입