elephantrobotics / mycobot_ros

A ros package for myCobot.
BSD 3-Clause "New" or "Revised" License
154 stars 81 forks source link

Fix new_mycobot_320_pi compile error #120

Closed tong-bluehill closed 11 months ago

tong-bluehill commented 1 year ago

Fix the compile error

-- +++ processing catkin package: 'aikit_320_pi'
-- ==> add_subdirectory(mycobot_ros/mycobot_ai/aikit_320_pi)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Could NOT find new_mycobot_320_pi (missing: new_mycobot_320_pi_DIR)
-- Could not find the required component 'new_mycobot_320_pi'. 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/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by
  "new_mycobot_320_pi" with any of the following names:

    new_mycobot_320_piConfig.cmake
    new_mycobot_320_pi-config.cmake

  Add the installation prefix of "new_mycobot_320_pi" to CMAKE_PREFIX_PATH or
  set "new_mycobot_320_pi_DIR" to a directory containing one of the above
  files.  If "new_mycobot_320_pi" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  mycobot_ros/mycobot_ai/aikit_320_pi/CMakeLists.txt:10 (find_package)
tong-bluehill commented 1 year ago

@wangWking Could you help take a look the PR? I fixed the compile error and verified on my local