Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,24 @@ add_library(tcp_interface SHARED
src/network_interfaces/tcp_interface.cpp
)

ament_target_dependencies(network_bridge pluginlib rclcpp std_msgs)
ament_target_dependencies(udp_interface pluginlib rclcpp)
ament_target_dependencies(tcp_interface pluginlib rclcpp)
target_link_libraries(network_bridge PUBLIC
${std_msgs_TARGETS}
pluginlib::pluginlib
rclcpp::rclcpp
${ZSTD_LIBRARIES}
)

target_link_libraries(udp_interface PUBLIC
pluginlib::pluginlib
rclcpp::rclcpp
${Boost_LIBRARIES}
)

target_link_libraries(network_bridge ${ZSTD_LIBRARIES})
target_link_libraries(udp_interface ${Boost_LIBRARIES})
target_link_libraries(tcp_interface ${Boost_LIBRARIES})
target_link_libraries(tcp_interface PUBLIC
pluginlib::pluginlib
rclcpp::rclcpp
${Boost_LIBRARIES}
)

pluginlib_export_plugin_description_file(network_bridge network_interface_plugins.xml)

Expand Down
1 change: 1 addition & 0 deletions src/network_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ NetworkBridge::~NetworkBridge()
network_interface_->close();
network_interface_.reset();

network_check_timer_.reset();
sub_mgrs_.clear();
timers_.clear();
publishers_.clear();
Expand Down