# Revision history [back]

You just made a little confusion but you have most of the work done. All your modifications related to the message in your package.xml and CMakeLists.txt are correct but you just did it in the wrong package. It's in your package laser_line_extraction that you should do those modifications and simply use find_package(laser_line_extraction)in your package drone, I will list the elements required for what you need to achieve :

laser_line_extraction package.xml :

  <build_depend>message_generation</build_depend>
<run_depend>message_runtime</run_depend>


laser_line_extraction CMakeLists.txt :

find_package(catkin REQUIRED COMPONENTS
message_generation
std_msgs)

DIRECTORY msg  #if you put your messages in a folder msg
FILES
LineSegment.msg
LineSegmentList.msg
)

generate_messages(
DEPENDENCIES
std_msgs)

catkin_package(
CATKIN DEPENDS
message_runtime
std_msgs)


drone package.xml :

<depend>laser_line_extraction</depend>


drone CMakeLists.txt :

find_package(catkin REQUIRED COMPONENTS
laser_line_extraction)

catkin_package(
CATKIN DEPENDS
laser_line_extraction)