Raspberry Pi 3 に ROS をインストルーしようとしています
https://asukiaaa.blogspot.com/2018/06/raspberry-pi-raspbianstretchrosmelodic.html?showComment=1545653273908#c4358038885777526403
このサイトを参考にしているのですが、
ビルドを実行すると下記のエラーが発生します。どうしたら良いでしょうか?
以前の質問は解決したのですが、また新たにエラーが出てしまいました
Processing catkin package: 'ros_environment'
==> Building with env: '/home/pi/ros_catkin_ws/install_isolated/env.sh'
==> cmake /home/pi/ros_catkin_ws/src_isolated/ros_environment -DCATKIN_DEVEL_PREFIX=/home/pi/ros_catkin_ws/devel_isolated/ros_environment -DCMAKE_INSTALL_PREFIX=/home/pi/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release -G Unix Makefiles in '/home/pi/ros_catkin_ws/build_isolated/ros_environment'
-- Using CATKIN_DEVEL_PREFIX: /home/pi/ros_catkin_ws/devel_isolated/ros_environment
-- Using CMAKE_PREFIX_PATH: /home/pi/ros_catkin_ws/install_isolated;/opt/ros/kinetic
-- This workspace overlays: /home/pi/ros_catkin_ws/install_isolated;/opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/pi/ros_catkin_ws/build_isolated/ros_environment/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.14
Traceback (most recent call last):
File "/home/pi/ros_catkin_ws/build_isolated/ros_environment/catkin_generated/generate_cached_setup.py", line 22, in <module>
code = generate_environment_script('/home/pi/ros_catkin_ws/devel_isolated/ros_environment/env.sh')
File "/home/pi/ros_catkin_ws/install_isolated/lib/python2.7/dist-packages/catkin/environment_cache.py", line 62, in generate_environment_script
env_after = ast.literal_eval(output.decode('utf8'))
File "/usr/lib/python2.7/ast.py", line 49, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "/usr/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 1
ROS_DISTRO was set to 'kinetic' before. Please make sure that the environment does not mix paths from different distributions.
^
SyntaxError: invalid syntax
CMake Error at /home/pi/ros_catkin_ws/install_isolated/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/usr/bin/python
"/home/pi/ros_catkin_ws/build_isolated/ros_environment/catkin_generated/generate_cached_setup.py")
returned error code 1
Call Stack (most recent call first):
/home/pi/ros_catkin_ws/install_isolated/share/catkin/cmake/all.cmake:198 (safe_execute_process)
/home/pi/ros_catkin_ws/install_isolated/share/catkin/cmake/catkinConfig.cmake:20 (include)
CMakeLists.txt:3 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/pi/ros_catkin_ws/build_isolated/ros_environment/CMakeFiles/CMakeOutput.log".
See also "/home/pi/ros_catkin_ws/build_isolated/ros_environment/CMakeFiles/CMakeError.log".
<== Failed to process package 'ros_environment':
Command '['/home/pi/ros_catkin_ws/install_isolated/env.sh', 'cmake', '/home/pi/ros_catkin_ws/src_isolated/ros_environment', '-DCATKIN_DEVEL_PREFIX=/home/pi/ros_catkin_ws/devel_isolated/ros_environment', '-DCMAKE_INSTALL_PREFIX=/home/pi/ros_catkin_ws/install_isolated', '-DCMAKE_BUILD_TYPE=Release', '-G', 'Unix Makefiles']' returned non-zero exit status 1
Reproduce this error by running:
==> cd /home/pi/ros_catkin_ws/build_isolated/ros_environment && /home/pi/ros_catkin_ws/install_isolated/env.sh cmake /home/pi/ros_catkin_ws/src_isolated/ros_environment -DCATKIN_DEVEL_PREFIX=/home/pi/ros_catkin_ws/devel_isolated/ros_environment -DCMAKE_INSTALL_PREFIX=/home/pi/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles'
Command failed, exiting.
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/01/16 06:31
2019/01/16 06:33
2019/01/16 08:00
2019/01/22 02:24
2019/01/22 04:53