직관적인느낌

키보드 조작 실행 에러 본문

프로젝트/자율주행

키보드 조작 실행 에러

범슐랭 2023. 4. 12. 15:05
728x90
반응형

https://github.com/SimonLee9/leecar20

 

GitHub - SimonLee9/leecar20

Contribute to SimonLee9/leecar20 development by creating an account on GitHub.

github.com


leecar18@ubuntu:~$ rosrun steering_straight teleop_key.py
[rosrun] Couldn't find executable named teleop_key.py below /home/leecar18/catkin_ws/src/steering_straight
[rosrun] Found the following, but they're either not files,
[rosrun] or not executable:
[rosrun]   /home/leecar18/catkin_ws/src/steering_straight/src/teleop_key.py

 

 


Solution

 

  1. 파일 권한 변경: teleop_key.py 파일이 실행 가능한 파일로 설정되어 있지 않을 수 있습니다. 이 경우 아래 명령어로 실행 가능한 파일로 변경해줍니다.

$ chmod +x /home/leecar18/catkin_ws/src/steering_straight/src/teleop_key.py

 


  1. catkin_make 실행: catkin_ws의 빌드 폴더에서 catkin_make 명령어를 실행하여 패키지를 빌드합니다.

$ cd /home/leecar18/catkin_ws
$ catkin_make


 

  1. 환경 변수 설정: ROS 패키지가 저장된 경로가 환경 변수에 등록되어 있는지 확인합니다. 만약 등록되어 있지 않다면, 아래 명령어로 등록해줍니다.

$ echo "source /home/leecar18/catkin_ws/devel/setup.bash" >> ~/.bashrc
$ source ~/.bashrc

728x90
반응형