Could not find a package configuration file provided by "pcl_conversions" with any of the following names:
时间: 2023-10-21 15:10:58 浏览: 321
asked CMake to find a package configuration file provided by “MRPT”, but CMake did not find one.
5星 · 资源好评率100%
This error message usually appears when you are trying to compile a ROS package that depends on the "pcl_conversions" package, but the package is not installed or cannot be found by the compiler.
To fix this error, make sure that the "pcl_conversions" package is installed on your system and that it is in your ROS package path. You can do this by running the following command in a terminal:
```
sudo apt-get install ros-<distro>-pcl-conversions
```
Replace `<distro>` with the name of your ROS distribution (e.g., melodic, noetic, etc.).
If the package is already installed but you still get the error message, make sure that your ROS_PACKAGE_PATH environment variable is set correctly and includes the path to the "pcl_conversions" package. You can check this by running the following command:
```
echo $ROS_PACKAGE_PATH
```
If the package path is not set correctly, you can add it to your bashrc file by running the following command:
```
echo "export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/path/to/pcl_conversions" >> ~/.bashrc
```
Replace "/path/to/pcl_conversions" with the actual path to the "pcl_conversions" package on your system.
After making these changes, try compiling your ROS package again and the error should be resolved.
阅读全文