반응형
[문제]
ros2 run 파일인 'teleop_twist_keyboard.py'를 launch 파일로 만들어 실행할때 에러 발생, ex) teleop_twist_keyboard.launch.py
from launch import LaunchDescription
form launch.actions import ExecuteProcess
def generate_launch_description():
return LaunchDescription(
[ExecuteProcess(
cmd=['ros2', 'run', 'teleop_twist_keyboard', 'teleop_twist_keyboard'],
output='screen'
)
]
)
[예상 원인]
정확하게 파악 못 했음
[해결 방법]
prefix='gnome-terminal --' 추가하기 ('xterm -e' 추가해도 되나 터미널이 안이쁨)
from launch import LaunchDescription
form launch.actions import ExecuteProcess
def generate_launch_description():
return LaunchDescription(
[ExecuteProcess(
cmd=['ros2', 'run', 'teleop_twist_keyboard', 'teleop_twist_keyboard'],
output='screen',
prefix='gnome-terminal --'
#prefix='xterm -e'
)
]
)
728x90
'ERROR' 카테고리의 다른 글
[error] AttributeError: module 'cv2.aruco' has no attribute 'Dictionary_get' (0) | 2023.05.28 |
---|---|
[error] Authentication required_vscode_github_ubuntu (0) | 2023.05.22 |
[error] SSLError, SSLCertVerificationError (0) | 2023.05.18 |
[error] 아나콘다, 미니콘다 설치 후 명령 프롬프트(cmd) 실행 안됨 (0) | 2023.05.13 |
[error] $'~~~\r': command not found (0) | 2022.07.10 |