No such file or directory (geometry_msgs and sensor_msgs)


I am trying to solve topics quiz. However, I am getting error below when I am trying to compile the package.

I added both geometry_msgs and sensor_msgs as dependency to the package:


I also tried deleting install,build, and log folder and compile all packages again but I am getting the same error.
Could you please help me to solve this issue?

Hi @h90.rezaeifar

Can you show your CMakeList.txt? Maybe you should forget to add ament_target_dependencies.

   add_executable(<executable_name> src/topics_quiz_node.cpp)
   ament_target_dependencies(<executable_name> rclcpp geometry_msgs std_msgs sensor_msgs)

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.