christianrauch / apriltag_ros

ROS2 node for AprilTag detection
MIT License
128 stars 85 forks source link

some questions about cpp libraries configuration #12

Closed junmeng6025 closed 1 year ago

junmeng6025 commented 1 year ago

Hi, thanks for this awesome work first!
But I'm very new to the AprilTag things, could you provide some information about how to fetch the necessary cpp libraries for this project? I mean, I'm confused where to download them, the version requirements etc.
I've tried to colcon build this project but got the CMake Error like this:

-- Found sensor_msgs: 2.2.4 (/opt/ros/galactic/share/sensor_msgs/cmake)
CMake Error at CMakeLists.txt:15 (find_package):
  By not providing "Findapriltag_msgs.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "apriltag_msgs", but CMake did not find one.

  Could not find a package configuration file provided by "apriltag_msgs"
  with any of the following names:

    apriltag_msgsConfig.cmake
    apriltag_msgs-config.cmake

  Add the installation prefix of "apriltag_msgs" to CMAKE_PREFIX_PATH or set
  "apriltag_msgs_DIR" to a directory containing one of the above files.  If
  "apriltag_msgs" provides a separate development package or SDK, be sure it
  has been installed.

-- Configuring incomplete, errors occurred!

Thanks!

christianrauch commented 1 year ago

You also need https://github.com/christianrauch/apriltag_msgs in your workspace.