1. mkdir -p /tmp/quickstart_ws/src
  2. # Make a new workspace and source space
  3. cd /tmp/quickstart_ws
  4. # Navigate to the workspace root
  5. catkin init
  6. # Initialize it with a hidden marker file
  7. catkin create pkg pkg_a
  8. # Populate the source space with packages...
  9. catkin create pkg pkg_b
  10. catkin create pkg pkg_c --catkin-deps pkg_a
  11. catkin create pkg pkg_d --catkin-deps pkg_a pkg_b
  12. catkin list
  13. # List the packages in the workspace
  14. catkin build
  15. # Build all packages in the workspace
  16. source /tmp/quickstart_ws/devel/setup.bash
  17. # Load the workspace's environment
  18. catkin clean
  19. # Clean all the build products

ros编译系统详解

https://www.jianshu.com/p/7fccfe18d7d3