ROS Build Error - Wasn't finding the ROS include Directory for lib files.

74 views
Skip to first unread message

Madhava Pandiyan

unread,
Nov 9, 2024, 2:30:17 PM11/9/24
to ProjectChrono
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.
ros_demo_error_msg.png
demo_ROS_custom_handler.cpp
CMakeLists.txt

Radu Serban

unread,
Nov 13, 2024, 4:02:35 AM11/13/24
to ProjectChrono

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

--
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 projectchron...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/projectchrono/0122af9b-57a5-4653-ba28-8c536a6186dcn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages