본문 바로가기

SWE

(3)
[ROS] nodes & topics & services 1. nodes nodes ✅ source /opt/ros/eloquent/setup.bash 2. topics A node may publish data to any number of topics and simultaneously have subscriptions to any number of topics. Topics are one of the important ways that data moves between nodes, and therefore between different parts of the system. node와 topic은 ROS 1과 같아서 실행은 생략하고 topic에 관련한 명령어를 정리해보자. 사실 이 부분도 ros -> ros2로만 바뀌었지 ROS 1과 동일하다. ✅ sour..
[우분투 에러 해결 방법] "sudo apt upgrade" "sudo apt update" error "sudo apt upgrade" error Jetson TX2에서 작업을 하던 중 정말 지긋지긋하게 해결되지 않은 문제가 있어 기록해둔다. 바로 sudo apt upgrade가 안되는 error이다. 따로 캡쳐해둔 것이 없어 에러 내용을 공유할 수 없는 것이 너무 아쉽지만 혹시 모르니까.. 정말 힘들게 찾은 해결 방법이다. 누군가에게는 도움이 되기를... [Solution 1.] sudo killall apt apt-get 위의 명령어를 입력했을 때 "apt-get: no process found"라고 나오면 + 아래의 명령어들을 차례로 입력한다. 이때 -rf 옵션은 관련 파일의 연결링크까지 삭제하는 옵션이다. sudo rm -rf /var/lib/apt/lock sudo rm -rf /var/lcac..
ROS 재설치 (+ turtle이 안움직일 때) ROS 설치 후 turtlesim 실행 시 rqt 그래프이다. 그러나..... 실패했다.. turtle이 안움직인다. ㅜㅜ 먼저 아래의 튜토리얼 주의사항을 읽어보자!!! turtle을 움직일 때 터미널이 "turtle_teleop_key"를 선택하고 있어야 한다. 즉, 이 터미널을 선택한 상태에서 turtle을 조절해야 한다! 그래서 재설치를 해야했다. 절대 우분투를 다시 설치할 수는 없으니 그냥 재설치를 해보기로 한다. ROS 패키지 삭제 먼저 기존의 ROS 패키지를 지워준다. sudo apt-get remove ros-* sudo apt-get remove ros-melodic-* sudo apt-get autoremove 파이썬 버전 바꾸기 ※ 파이썬 버전이 2.7이었는데 이걸 3.x버전으로 바꿔보..

728x90
320x100