mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
WIP, make class based and extended subscriber/publisher example compile for ros
This commit is contained in:
@@ -111,7 +111,9 @@ target_link_libraries(px4
|
||||
)
|
||||
|
||||
## Declare a test publisher
|
||||
add_executable(publisher src/examples/publisher/publisher.cpp)
|
||||
add_executable(publisher
|
||||
src/examples/publisher/publisher_main.cpp
|
||||
src/examples/publisher/publisher_example.cpp)
|
||||
|
||||
## Add cmake target dependencies of the executable/library
|
||||
## as an example, message headers may need to be generated before nodes
|
||||
@@ -124,7 +126,9 @@ target_link_libraries(publisher
|
||||
)
|
||||
|
||||
## Declare a test subscriber
|
||||
add_executable(subscriber src/examples/subscriber/subscriber.cpp)
|
||||
add_executable(subscriber
|
||||
src/examples/subscriber/subscriber_main.cpp
|
||||
src/examples/subscriber/subscriber_example.cpp)
|
||||
|
||||
## Add cmake target dependencies of the executable/library
|
||||
## as an example, message headers may need to be generated before nodes
|
||||
@@ -136,14 +140,14 @@ target_link_libraries(subscriber
|
||||
px4
|
||||
)
|
||||
|
||||
add_executable(mc_att_control
|
||||
src/modules/mc_att_control/mc_att_control_main.cpp
|
||||
src/moudles/mc_att_control/mc_att_control_base.cpp)
|
||||
add_dependencies(mc_att_control px4_generate_messages_cpp)
|
||||
target_link_libraries(mc_att_control
|
||||
${catkin_LIBRARIES}
|
||||
px4
|
||||
)
|
||||
# add_executable(mc_att_control
|
||||
# src/modules/mc_att_control/mc_att_control_main.cpp
|
||||
# src/moudles/mc_att_control/mc_att_control_base.cpp)
|
||||
# add_dependencies(mc_att_control px4_generate_messages_cpp)
|
||||
# target_link_libraries(mc_att_control
|
||||
# ${catkin_LIBRARIES}
|
||||
# px4
|
||||
# )
|
||||
|
||||
|
||||
#############
|
||||
|
||||
Reference in New Issue
Block a user