新手使用

编译详情如下,我是一步步按照教程来的,但是报错了,而且编译的很快,好像有些东西都没有编译到一样

不知道怎么回事,我已经j禁用了.bashrc中的anaconda的路径了

syo@syo-desktop:~/dev_wsA$ colcon build
Starting >>> learning_gazebo
running egg_info
writing ../../../build/learning_gazebo/learning_gazebo.egg-info/PKG-INFO
writing dependency_links to ../../../build/learning_gazebo/learning_gazebo.egg-info/dependency_links.txt
writing entry points to ../../../build/learning_gazebo/learning_gazebo.egg-info/entry_points.txt
writing requirements to ../../../build/learning_gazebo/learning_gazebo.egg-info/requires.txt
writing top-level names to ../../../build/learning_gazebo/learning_gazebo.egg-info/top_level.txt
reading manifest file '../../../build/learning_gazebo/learning_gazebo.egg-info/SOURCES.txt'
writing manifest file '../../../build/learning_gazebo/learning_gazebo.egg-info/SOURCES.txt'
running build
running build_py
running install
running install_lib
running install_data
running install_egg_info
removing '/home/syo/dev_wsA/install/learning_gazebo/lib/python3.8/site-packages/learning_gazebo-0.0.0-py3.8.egg-info' (and everything under it)
Copying ../../../build/learning_gazebo/learning_gazebo.egg-info to /home/syo/dev_wsA/install/learning_gazebo/lib/python3.8/site-packages/learning_gazebo-0.0.0-py3.8.egg-info
running install_scripts
writing list of installed files to '/home/syo/dev_wsA/build/learning_gazebo/install.log'
Finished <<< learning_gazebo [0.53s]
Starting >>> learning_interface
-- Found ament_cmake: 0.9.11 (/opt/ros/foxy/share/ament_cmake/cmake)
-- Found PythonInterp: /home/syo/anaconda3/bin/python3 (found suitable version "3.9.13", minimum required is "3") 
-- Using PYTHON_EXECUTABLE: /home/syo/anaconda3/bin/python3
-- Found rosidl_default_generators: 1.0.1 (/opt/ros/foxy/share/rosidl_default_generators/cmake)
-- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c;rosidl_typesupport_introspection_c
-- Found rosidl_adapter: 1.3.0 (/opt/ros/foxy/share/rosidl_adapter/cmake)
-- Using all available rosidl_typesupport_cpp: rosidl_typesupport_fastrtps_cpp;rosidl_typesupport_introspection_cpp
-- Found PythonInterp: /home/syo/anaconda3/bin/python3 (found version "3.9.13") 
Traceback (most recent call last):
  File "/opt/ros/foxy/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py", line 21, in <module>
    from catkin_pkg.package import parse_package_string
ModuleNotFoundError: No module named 'catkin_pkg'
CMake Error at /opt/ros/foxy/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:94 (message):
  execute_process(/home/syo/anaconda3/bin/python3
  /opt/ros/foxy/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py
  /home/syo/dev_wsA/src/ros2_21_tutorials/learning_interface/package.xml
  /home/syo/dev_wsA/build/learning_interface/ament_cmake_core/package.cmake)
  returned error code 1
Call Stack (most recent call first):
  /opt/ros/foxy/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:49 (_ament_package_xml)
  /opt/ros/foxy/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:226 (ament_package_xml)
  CMakeLists.txt:25 (rosidl_generate_interfaces)


-- Configuring incomplete, errors occurred!
See also "/home/syo/dev_wsA/build/learning_interface/CMakeFiles/CMakeOutput.log".
Failed   <<< learning_interface [0.45s, exited with code 1]