PickNikRobotics / generate_parameter_library

Declarative ROS 2 Parameters
BSD 3-Clause "New" or "Revised" License
240 stars 45 forks source link

How does the installation process work? #186

Closed Guelakais closed 6 months ago

Guelakais commented 7 months ago

I had the following error:

colcon build --packages-select generate_parameter_library
Starting >>> generate_parameter_library
[0.944s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/common_interfaces' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.944s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/visualization_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.944s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/rclrs_tests' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.945s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/test_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.945s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/examples_rclrs_minimal_client_service' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.945s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/example_interfaces' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.945s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/action_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.945s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/unique_identifier_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.946s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/trajectory_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.947s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/test_interface_files' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.947s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/stereo_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.950s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/std_srvs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.952s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/simple_ros_publish_rs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.955s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/shape_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.955s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/sensor_msgs_py' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.955s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/pozyx_driver' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.958s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/sensor_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.959s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/point_pub_sub_rs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.959s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/nav_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.960s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/diagnostic_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.961s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/geometry_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.962s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/examples_rclrs_minimal_pub_sub' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.962s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/actionlib_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.963s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/std_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.964s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/statistics_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.967s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/examples_rclrs_message_demo' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.968s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/rclrs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.968s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/rosgraph_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.968s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/rclrs_example_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.968s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/composition_interfaces' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.968s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/rcl_interfaces' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.968s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/lifecycle_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.968s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/builtin_interfaces' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.969s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/rosidl_default_runtime' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.969s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/rosidl_default_generators' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.970s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/rosidl_generator_rs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.970s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/ros_ws/install/rosidl_runtime_rs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.971s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/common_interfaces' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.972s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/visualization_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.972s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/test_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.972s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/example_interfaces' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.972s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/action_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.972s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/unique_identifier_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.972s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/trajectory_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.972s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/test_interface_files' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.972s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/stereo_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.973s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/std_srvs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.973s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/shape_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.973s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/sensor_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.973s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/nav_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.973s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/diagnostic_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.973s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/geometry_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.973s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/actionlib_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.973s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/std_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.973s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/statistics_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.973s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/rosgraph_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.973s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/rclrs_example_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.974s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/composition_interfaces' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.974s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/rcl_interfaces' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.974s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/lifecycle_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.974s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/builtin_interfaces' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.974s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/rosidl_default_runtime' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.974s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/rosidl_default_generators' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.974s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/ros_ws/install/rosidl_generator_rs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.983s] ERROR:colcon.colcon_cmake.task.cmake.build:Failed to find the following files:
- /ros_ws/install/generate_parameter_library_py/share/generate_parameter_library_py/package.sh
- /ros_ws/install/parameter_traits/share/parameter_traits/package.sh
Check that the following packages have been built:
- generate_parameter_library_py
- parameter_traits
Failed   <<< generate_parameter_library [0.07s, exited with code 1]

Summary: 0 packages finished [0.87s]
  1 package failed: generate_parameter_library

I'm at a loss right now. What am I doing wrong?

pac48 commented 6 months ago

@Guelakais Which ROS distro are you using? You should be able to build this the same as other ROS 2 packages. 1) create a colcon workspace 2) clone this into the src folder 3) run rosdep from the base of the workspaces, 4) finally, run colcon build

shu-13 commented 6 months ago

@Guelakais Hi, you might want to use --packages-up-to option instead of --packages-select in this case. colcon says that it can't find the dependent package specified in the package.xml of generate_parameter_library

[0.983s] ERROR:colcon.colcon_cmake.task.cmake.build:Failed to find the following files:
- /ros_ws/install/generate_parameter_library_py/share/generate_parameter_library_py/package.sh
- /ros_ws/install/parameter_traits/share/parameter_traits/package.sh
Check that the following packages have been built:
- generate_parameter_library_py
- parameter_traits

Also follow the steps as @pac48 mentions to make sure all the dependent packages are installed.