clearpathrobotics / clearpath_common

BSD 3-Clause "New" or "Revised" License
14 stars 20 forks source link

Unable to find clearpath_platform_msg package #85

Open iamkashish opened 3 days ago

iamkashish commented 3 days ago

I'm using humble branch of this repository on Ubuntu 22.04 and with ROS 2 humble.

While doing colcon build:

--- stderr: clearpath_platform
CMake Error at CMakeLists.txt:18 (find_package): By not providing "Findclearpath_platform_msgs.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "clearpath_platform_msgs", but CMake did not find one.

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

clearpath_platform_msgsConfig.cmake
clearpath_platform_msgs-config.cmake

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


Failed <<< clearpath_platform [1.36s, exited with code 1]

++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Then, I checked there is no folder named clearpath_platform_msgs. Also I tried making using the humble_msgs from https://github.com/husky/husky.git but it ends up with other issues.

tonybaltovski commented 2 days ago

@iamkashish did you use rosdep to install the dependencies prior to bulding? While in your workspace, run: rosdep install --from-paths src --ignore-src --rosdistro=$ROS_DISTRO -y. Else, can you install it manually using: sudo apt install ros-humble-clearpath-platform-msgs?

iamkashish commented 1 day ago

Thank you for the fast response @tonybaltovski . Yes I did but I got the following:

ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: clearpath_manipulators: Cannot locate rosdep definition for [position_controllers] clearpath_manipulators_description: Cannot locate rosdep definition for [robotiq_description] clearpath_control: Cannot locate rosdep definition for [joy_linux] clearpath_sensors_description: Cannot locate rosdep definition for [velodyne_description] clearpath_generator_common: Cannot locate rosdep definition for [moveit_setup_srdf_plugins] clearpath_platform: Cannot locate rosdep definition for [puma_motor_msgs]

tonybaltovski commented 19 hours ago

Is your rosdep working at all? It looks like you can't really find anything, not just Clearpath specific packages.

iamkashish commented 19 hours ago

I don't know what happened last time because just now I tried again and it installed ros-humble-clearpath-platform-msgs

But now while doing colcon build:

/main_ws/src/husky_ws/src/clearpath_platform/src/lighting/lighting.cpp: In member function ‘void clearpath_lighting::Lighting::updateState()’:
/main_ws/src/husky_ws/src/clearpath_platform/src/lighting/lighting.cpp:416:24: error: ‘using StopStatus = struct clearpath_platform_msgs::msg::StopStatus_<std::allocator<void> >’ {aka ‘struct clearpath_platform_msgs::msg::StopStatus_<std::allocator<void> >’} has no member named ‘needs_reset’
  416 |   if (stop_status_msg_.needs_reset)
      |                        ^~~~~~~~~~~
gmake[2]: *** [CMakeFiles/clearpath_platform_lighting.dir/build.make:76: CMakeFiles/clearpath_platform_lighting.dir/src/lighting/lighting.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:147: CMakeFiles/clearpath_platform_lighting.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< clearpath_platform [13.3s, exited with code 2]

Summary: 19 packages finished [14.3s]
  1 package failed: clearpath_platform
  1 package had stderr output: clearpath_platform
  2 packages not processed