Skip to content

Commit

Permalink
fix deprecated header file in humble and jazzy (#10)
Browse files Browse the repository at this point in the history
* fix deprecated header file in humble and jazzy

* fix the memory leak bug! no more random crash of rviz2
  • Loading branch information
makeecat authored Jun 24, 2024
1 parent ef5893e commit a012272
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions waypoint_navigation_plugin/cmake/ROS2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ find_package(rviz_common REQUIRED)
find_package(rviz_default_plugins REQUIRED)
find_package(rviz_rendering REQUIRED)
find_package(rosbag2_cpp REQUIRED)
find_package(rosbag2_storage REQUIRED)
find_package(mav_manager_srv REQUIRED)
find_package(rviz_ogre_vendor REQUIRED)
find_package(std_srvs REQUIRED)
Expand Down
1 change: 1 addition & 0 deletions waypoint_navigation_plugin/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<depend condition="$ROS_VERSION == 2">rviz_rendering</depend>
<depend condition="$ROS_VERSION == 2">sensor_msgs</depend>
<depend condition="$ROS_VERSION == 2">rosbag2_cpp</depend>
<depend condition="$ROS_VERSION == 2">rosbag2_storage</depend>
<depend condition="$ROS_VERSION == 2">mav_manager_srv</depend>

<build_depend condition="$ROS_VERSION == 2">qtbase5-dev</build_depend>
Expand Down
2 changes: 1 addition & 1 deletion waypoint_navigation_plugin/src/waypoint_nav_frame_ros2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
#include <rosbag2_cpp/writer.hpp>
#include <rosbag2_cpp/reader.hpp>
#include <rclcpp/serialization.hpp>
#include <rosbag2_cpp/storage_options.hpp>
#include <rosbag2_storage/storage_options.hpp>
#include <OgrePrerequisites.h>

typedef struct {
Expand Down
1 change: 1 addition & 0 deletions waypoint_navigation_plugin/src/waypoint_nav_tool_ros2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ WaypointNavTool::~WaypointNavTool()

delete frame_;
delete frame_dock_;
delete moving_flag_node_;
}

void WaypointNavTool::onInitialize()
Expand Down

0 comments on commit a012272

Please sign in to comment.