errors about catkin_make when following the Writing a tf broadcaster (Python)
yangsong@yangsong-Alienware-m17:~/catkin_ws$ catkin_make
Base path: /home/yangsong/catkin_ws
Source space: /home/yangsong/catkin_ws/src
Build space: /home/yangsong/catkin_ws/build
Devel space: /home/yangsong/catkin_ws/devel
Install space: /home/yangsong/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/yangsong/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/yangsong/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.12", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/yangsong/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.12")
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.20
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 18 packages in topological order:
-- ~~ - universal_robot (metapackage)
-- ~~ - universal_robots (metapackage)
-- ~~ - ur_description
-- ~~ - ur_e_description
-- ~~ - ur_msgs
-- ~~ - beginner_tutorials
-- ~~ - learning_tf
-- ~~ - ur_bringup
-- ~~ - ur_driver
-- ~~ - ur_e_gazebo
-- ~~ - ur_gazebo
-- ~~ - ur_kinematics
-- ~~ - ur10_e_moveit_config
-- ~~ - ur10_moveit_config
-- ~~ - ur3_e_moveit_config
-- ~~ - ur3_moveit_config
-- ~~ - ur5_e_moveit_config
-- ~~ - ur5_moveit_config
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin metapackage: 'universal_robot'
-- ==> add_subdirectory(universal_robot/universal_robot)
-- +++ processing catkin metapackage: 'universal_robots'
-- ==> add_subdirectory(universal_robot/universal_robots)
-- +++ processing catkin package: 'ur_description'
-- ==> add_subdirectory(universal_robot/ur_description)
-- +++ processing catkin package: 'ur_e_description'
-- ==> add_subdirectory(universal_robot/ur_e_description)
-- +++ processing catkin package: 'ur_msgs'
-- ==> add_subdirectory(universal_robot/ur_msgs)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- ur_msgs: 7 messages, 3 services
-- +++ processing catkin package: 'beginner_tutorials'
-- ==> add_subdirectory(beginner_tutorials)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
Traceback (most recent call last):
File "/opt/ros/kinetic/share/catkin/cmake/interrogate_setup_dot_py.py", line 251, in <module>
main()
File "/opt/ros/kinetic/share/catkin/cmake/interrogate_setup_dot_py.py", line 242, in main
runpy.run_path(args.setupfile_path)
File "/usr/lib/python2.7/runpy.py", line 251, in run_path
code = _get_code_from_file(path_name)
File "/usr/lib/python2.7/runpy.py", line 232, in _get_code_from_file
code = compile(f.read(), fname, 'exec')
File "/home/yangsong/catkin_ws/src/beginner_tutorials/setup.py", line 1
1 ## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
^
IndentationError: unexpected indent
CMake Error at /opt/ros/kinetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/home/yangsong/catkin_ws/build/catkin_generated/env_cached.sh
"/usr/bin/python2"
"/opt/ros/kinetic/share/catkin/cmake/interrogate_setup_dot_py.py"
"beginner_tutorials"
"/home/yangsong/catkin_ws/src/beginner_tutorials/setup.py"
"/home/yangsong/catkin_ws/build/beginner_tutorials/catkin_generated/setup_py_interrogation.cmake")
returned error code 1
Call Stack (most recent call first):
/opt/ros/kinetic/share/catkin/cmake/catkin_python_setup.cmake:69 (safe_execute_process)
beginner_tutorials/CMakeLists.txt:26 (catkin_python_setup)
-- Configuring incomplete, errors occurred!
See also "/home/yangsong/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/yangsong/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:2922: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
add a comment