Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

roslaunch: [ ] is neither a launch file in package [ ] nor is [ ] a launch file name ……なんて言われたら、環境変数にlaunchファイルが認識されていない可能性

ROSの新環境を準備中のこと。
roscoreをメインの端末で立ち上げ、併行して使っていた端末でroslaunchしようとしたところ、こんなエラーが。

roslaunch: [ ] is neither a launch file in package [ ] nor is [ ] a launch file name

何のことはなく、作業端末で環境変数が古いだけだったというオチ。

実際のところ

$ roslaunch xarm_description xarm7_rviz_display.launch
RLException: [xarm7_rviz_display.launch] is neither a launch file in package [xarm_description] nor is [xarm_description] a launch file name
The traceback for the exception was written to the log file

何のことはなく、実行している端末にlaunchがあるディレクトリのパスが通ってないだけでしたので……develのsetup.bashを実行してあげるだけで対応できました。

$ source catkin_ws/devel/setup.bash