Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory #include <controller_msgs/FlatTarget.h> #243

Open
sniper006006 opened this issue Jul 25, 2024 · 4 comments
Open

Comments

@sniper006006
Copy link

img_v3_02d4_bda8832a-0cd3-40e2-9228-6a37f66045fg
Errors << geometric_controller:make /home/auto_px4/autoware_px4_docker0715/catkin_ws/logs/geometric_controller/build.make.005.log
In file included from /home/auto_px4/autoware_px4_docker0715/catkin_ws/src/mavros_controllers/geometric_controller/src/geometric_controller.cpp:41:0:
/home/auto_px4/autoware_px4_docker0715/catkin_ws/src/mavros_controllers/geometric_controller/include/geometric_controller/geometric_controller.h:66:10: fatal error: controller_msgs/FlatTarget.h: No such file or directory
#include <controller_msgs/FlatTarget.h>

“Please advise, how can I solve this compilation problem? Thank you.”

@Jaeyoung-Lim
Copy link
Owner

@sniper006006 Please share the full log. You probably are building with the wrong command.

@leddat
Copy link

leddat commented Sep 19, 2024

img_v3_02d4_bda8832a-0cd3-40e2-9228-6a37f66045fg Errors << geometric_controller:make /home/auto_px4/autoware_px4_docker0715/catkin_ws/logs/geometric_controller/build.make.005.log In file included from /home/auto_px4/autoware_px4_docker0715/catkin_ws/src/mavros_controllers/geometric_controller/src/geometric_controller.cpp:41:0: /home/auto_px4/autoware_px4_docker0715/catkin_ws/src/mavros_controllers/geometric_controller/include/geometric_controller/geometric_controller.h:66:10: fatal error: controller_msgs/FlatTarget.h: No such file or directory #include <controller_msgs/FlatTarget.h>

“Please advise, how can I solve this compilation problem? Thank you.”

@sniper006006 Add controller_msgs in your CMakeLists.txt may help

find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  dynamic_reconfigure
  tf
  mavros
  mavros_extras
  mavros_msgs
  mavlink
  controller_msgs
)

catkin_package(
  INCLUDE_DIRS include
  LIBRARIES geometric_controller
  CATKIN_DEPENDS roscpp rospy std_msgs mavros_msgs geometry_msgs sensor_msgs tf controller_msgs
)

@Jaeyoung-Lim
Copy link
Owner

@leddat Do you mind creating a PR for the fix?

@leddat
Copy link

leddat commented Sep 19, 2024

@leddat Do you mind creating a PR for the fix?

@Jaeyoung-Lim @sniper006006 probably forgot to run the command catkin config --merge-devel before build so I don't think we need to create PR for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants