ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

By default, the colcon processes/compiles packages parallel to speed up the compilation time. However, we need to remember that Raspberry Pi has limited resources and can not handle so much parallelism. This is why it freezes after sometime.

You should make use of --parallel-workers and/or --executor sequential to limit the parallel compilation. For more info. please see #q368249

On a side note, the examples are pre-installed . This is why the colcon reports Some selected packages are already built in one or more underlay workspaces. If you want to override, please make use of --allow-overriding as reported by colon. See below, please:

colcon build --symlink-install --allow-overriding examples_rclcpp_minimal_action_client examples_rclcpp_minimal_action_server examples_rclcpp_minimal_client examples_rclcpp_minimal_composition examples_rclcpp_minimal_publisher examples_rclcpp_minimal_service examples_rclcpp_minimal_subscriber examples_rclcpp_minimal_timer examples_rclcpp_multithreaded_executor examples_rclpy_executors examples_rclpy_minimal_action_client examples_rclpy_minimal_action_server examples_rclpy_minimal_client examples_rclpy_minimal_publisher examples_rclpy_minimal_service examples_rclpy_minimal_subscriber