shadow-robot / mujoco_ros_pkgs

ROS integration of Mujoco simulator
GNU General Public License v3.0
88 stars 17 forks source link

CMake Error #46

Open eeelie opened 2 years ago

eeelie commented 2 years ago

I'm using Windows Subsystem for Linux, I've cloned the repository and when trying to run catkin_make, I'm getting this error: -- ~~~~~~~~~~~~~ -- +++ processing catkin package: 'mujoco_ros_pkgs' -- ==> add_subdirectory(mujoco_ros_pkgs/mujoco_ros_pkgs) -- +++ processing catkin package: 'mujoco_ros_msgs' -- ==> add_subdirectory(mujoco_ros_pkgs/mujoco_ros_msgs) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Could NOT find object_recognition_msgs (missing: object_recognition_msgs_DIR) -- Could not find the required component 'object_recognition_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "object_recognition_msgs" with any of the following names:

object_recognition_msgsConfig.cmake
object_recognition_msgs-config.cmake

Add the installation prefix of "object_recognition_msgs" to CMAKE_PREFIX_PATH or set "object_recognition_msgs_DIR" to a directory containing one of the above files. If "object_recognition_msgs" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): mujoco_ros_pkgs/mujoco_ros_msgs/CMakeLists.txt:10 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/esvoll/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/esvoll/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:320: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed

__ Could you help me with this? I'm running Ubuntu 18.04 on wsl, and ROS melodic

biofotis commented 2 years ago

You need to clone the repositories here as well: https://github.com/shadow-robot/sr_interface/blob/noetic-devel/repository.rosinstall However if you like to run everything without any missing packages you better clone everything we include in our dexterous hand images here https://github.com/shadow-robot/shadow_dexterous_hand/blob/noetic-devel/repository.rosinstall

eeelie commented 2 years ago

Thank you for the response! I've cloned everything (from melodic-devel) and am still having this problem. Here's the error message:


-- +++ processing catkin package: 'mujoco_ros_msgs' -- ==> add_subdirectory(mujoco_ros_pkgs/mujoco_ros_msgs) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Could NOT find object_recognition_msgs (missing: object_recognition_msgs_DIR) -- Could not find the required component 'object_recognition_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "object_recognition_msgs" with any of the following names:

object_recognition_msgsConfig.cmake
object_recognition_msgs-config.cmake

Add the installation prefix of "object_recognition_msgs" to CMAKE_PREFIX_PATH or set "object_recognition_msgs_DIR" to a directory containing one of the above files. If "object_recognition_msgs" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): mujoco_ros_pkgs/mujoco_ros_msgs/CMakeLists.txt:10 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/esvoll/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/esvoll/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:320: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed

I haven't been able to locate the missing files. Any advice on where to look or what specifically I need to install?

biofotis commented 2 years ago

Have you ran rosdep install --from-paths src --ignore-src --rosdistro melodic -y on your base folder?

eeelie commented 2 years ago

Yes, it didn't seem to solve the problem.

I got this error message that seems to have to do with other dependencies:

$ rosdep install --from-paths src --ignore-src --rosdistro melodic -y

ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: sr_robot_lib: Cannot locate rosdep definition for [sr_interpolation] cyberglove: Cannot locate rosdep definition for [cereal_port] sr_hand_health_report: Cannot locate rosdep definition for [sr_system_info]

biofotis commented 2 years ago

sr_interpolation and sr_system_info is in sr_utils repo cereal_port is a repo as well