Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to build space_robots due to missing dependency #143

Closed
ivanperez-keera opened this issue Apr 24, 2024 · 3 comments · Fixed by #144
Closed

Failure to build space_robots due to missing dependency #143

ivanperez-keera opened this issue Apr 24, 2024 · 3 comments · Fixed by #144
Assignees

Comments

@ivanperez-keera
Copy link
Contributor

I'm getting an error when trying to build the space_robots demo.

#17 161.7 --- stderr: ros_gz_bridge
#17 161.7 CMake Error at CMakeLists.txt:92 (find_package):
#17 161.7   By not providing "Findgps_msgs.cmake" in CMAKE_MODULE_PATH this project has
#17 161.7   asked CMake to find a package configuration file provided by "gps_msgs",
#17 161.7   but CMake did not find one.
#17 161.7
#17 161.7   Could not find a package configuration file provided by "gps_msgs" with any
#17 161.7   of the following names:
#17 161.7
#17 161.7     gps_msgsConfig.cmake
#17 161.7     gps_msgs-config.cmake
#17 161.7
#17 161.7   Add the installation prefix of "gps_msgs" to CMAKE_PREFIX_PATH or set
#17 161.7   "gps_msgs_DIR" to a directory containing one of the above files.  If
#17 161.7   "gps_msgs" provides a separate development package or SDK, be sure it has
#17 161.7   been installed.
#17 161.7
#17 161.7
#17 161.7 ---
#17 161.7 Failed   <<< ros_gz_bridge [11.6s, exited with code 1]
#17 162.1 Aborted  <<< ros_ign_interfaces [12.0s]
#17 175.9 Aborted  <<< velocity_controllers [1min 1s]
#17 177.8 Aborted  <<< position_controllers [58.5s]
#17 180.9 Aborted  <<< effort_controllers [1min 6s]
#17 231.1 Aborted  <<< qt_gui_cpp [2min 15s]
#17 234.1 Aborted  <<< vision_msgs_rviz_plugins [1min 54s]
#17 292.5 Aborted  <<< MONGO_CXX_DRIVER [3min 16s]
#17 292.6
#17 292.6 Summary: 24 packages finished [4min 51s]
#17 292.6   1 package failed: ros_gz_bridge
#17 292.6   7 packages aborted: MONGO_CXX_DRIVER effort_controllers position_controllers qt_gui_cpp ros_ign_interfaces velocity_controllers vision_msgs_rviz_plugins
#17 292.6   6 packages had stderr output: MONGO_CXX_DRIVER effort_controllers qt_gui_cpp ros_gz_bridge ros_ign_gazebo rqt_joint_trajectory_controller
#17 292.6   13 packages not processed
#17 ERROR: executor failed running [/bin/sh -c /bin/bash -c 'source ${SPACEROS_DIR}/install/setup.bash && source ${MOVEIT2_DIR}/install/setup.bash   && colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release']: exit code: 1
------
 > [stage-0 13/15] RUN /bin/bash -c 'source ${SPACEROS_DIR}/install/setup.bash && source ${MOVEIT2_DIR}/install/setup.bash   && colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release':
------
executor failed running [/bin/sh -c /bin/bash -c 'source ${SPACEROS_DIR}/install/setup.bash && source ${MOVEIT2_DIR}/install/setup.bash   && colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release']: exit code: 1
@ivanperez-keera ivanperez-keera changed the title Failure to build due to missing Failure to build space_robots due to missing dependency Apr 24, 2024
@ivanperez-keera
Copy link
Contributor Author

I can confirm that adding gps_msgs as a dependency of the demo in the '*.repos' file lets the demo build.

@ivanperez-keera
Copy link
Contributor Author

ivanperez-keera commented Apr 25, 2024

I was able to build this by adding the following to space_robots/demo_manual_pkgs.repos:

gps_msgs:
  type: git
  url: https://github.com/swri-robotics/gps_umd.git
  path: gps_msgs

We should pin a specific version.

@xfiderek Can you please send a fix for this?

@ivanperez-keera
Copy link
Contributor Author

I've asked gps_msgs to make a new release, since there's been a bug fix since the last release and it's been a while.

In absence of a new release, we could also pin a specific commit.

ivanperez-keera pushed a commit that referenced this issue Apr 26, 2024
The build process for the space_robots image is currently breaking
because a package depends on gps_msgs, but it is not being installed as
a dependency.

This commit adds that ROS 2 package explicitly to the space_robots
.repos file, making vcs to clone the repo and install the package during
compilation.

gps_msgs has not made a release since 2023, but they have included a bug
fix. This commit pins a specific commit from their repo (the current
HEAD as of the time of this writing).
@ivanperez-keera ivanperez-keera added this to the humble-2024.04.0 milestone Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants