mavros_controllers icon indicating copy to clipboard operation
mavros_controllers copied to clipboard

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

Open sniper006006 opened this issue 1 year ago • 4 comments

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 avatar Jul 25 '24 09:07 sniper006006

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

Jaeyoung-Lim avatar Jul 25 '24 09:07 Jaeyoung-Lim

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
)

leddat avatar Sep 19 '24 06:09 leddat

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

Jaeyoung-Lim avatar Sep 19 '24 07:09 Jaeyoung-Lim

@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

leddat avatar Sep 19 '24 14:09 leddat