Looks like you didn’t request Chrono::ROS as a component in find_package.
Try modifying your CMakeLists.txt to:
find_package(Chrono
COMPONENTS Irrlicht ROS
OPTIONAL_COMPONENTS
CONFIG)
(of course, if later on you want to also use Chrono::Vehicle, add that module
as well).
--Radu
From: [email protected] <[email protected]> On Behalf
Of Madhava Pandiyan
Sent: Saturday, November 9, 2024 7:37 PM
To: ProjectChrono <[email protected]>
Subject: [chrono] ROS Build Error - Wasn't finding the ROS include Directory
for lib files.
Hi,
I had tried to run the demo file for ROS custom handler. While I tried to build
it, it gave an error mentioning that it is unable to identify some files from
ROS include Directory. But on further check I realized that those files are not
missing, but the path to the directory is not being detected. Could someone
please help me resolve this issue?
In Chrono, I have enabled following modules:
- Irrlicht
- ROS
- Vehicle
In addition I have also enabled:
- Openmp
I am running it in Ubuntu 20.04. I have installed ROS2 Galactic. (I am getting
same error in another system with Ubuntu 22.04 and ROS2 Humble).
I have attached the error message along with the source files to this post.
Thank you in advance.
--
You received this message because you are subscribed to the Google Groups
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]<mailto:[email protected]>.
To view this discussion visit
https://groups.google.com/d/msgid/projectchrono/0122af9b-57a5-4653-ba28-8c536a6186dcn%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/0122af9b-57a5-4653-ba28-8c536a6186dcn*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!MA2lsME5BezciOX5zCvQvqQTOzxTnMx1t81off-SvQEKdeUvotHv4D160x2GgHEAiVVc9IgKI10mr6gF5GfTEH-mxA$>.
--
You received this message because you are subscribed to the Google Groups
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/projectchrono/CH3PPF46CDC218587FDE640110B61B2DF9BA75A2%40CH3PPF46CDC2185.namprd06.prod.outlook.com.