Skip to content

Commit 6ea7b67

Browse files
authored
Merge pull request #15 from wep21/fix/rolling
fix: include order for cpplint
2 parents 994cd62 + cfe4783 commit 6ea7b67

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/build_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
ros_distribution: galactic
2626
ros_version: 2
2727
# Rolling Ridley (June 2020 - Present)
28-
- docker_image: rostooling/setup-ros-docker:ubuntu-focal-ros-rolling-ros-base-latest
28+
- docker_image: rostooling/setup-ros-docker:ubuntu-jammy-ros-rolling-ros-base-latest
2929
ros_distribution: rolling
3030
ros_version: 2
3131
container:

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@ endif()
1212

1313
find_package(ament_cmake_auto REQUIRED)
1414
ament_auto_find_build_dependencies()
15+
find_package(OCTOMAP REQUIRED)
1516

1617
ament_auto_add_library(${PROJECT_NAME} SHARED
1718
src/conversions.cpp
1819
)
1920

21+
target_include_directories(${PROJECT_NAME}
22+
PUBLIC
23+
${OCTOMAP_INCLUDE_DIRS}
24+
)
25+
2026
if(BUILD_TESTING)
2127
find_package(ament_lint_auto REQUIRED)
2228
ament_lint_auto_find_test_dependencies()

include/octomap_ros/conversions.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@
3939

4040
#include <octomap/octomap.h>
4141

42-
#include <geometry_msgs/msg/point.hpp>
43-
#include <sensor_msgs/msg/point_cloud2.hpp>
4442
#include <tf2/LinearMath/Quaternion.h>
4543
#include <tf2/LinearMath/Transform.h>
4644
#include <tf2/LinearMath/Vector3.h>
4745

46+
#include <geometry_msgs/msg/point.hpp>
47+
#include <sensor_msgs/msg/point_cloud2.hpp>
48+
4849
namespace octomap
4950
{
5051
/**

test/test_conversions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2727
// POSSIBILITY OF SUCH DAMAGE.
2828

29+
#include <gtest/gtest.h>
30+
2931
#include <sensor_msgs/point_cloud2_iterator.hpp>
3032

3133
#include <octomap_ros/conversions.hpp>
3234

33-
#include <gtest/gtest.h>
34-
3535
constexpr double epsilon = 1e-6;
3636

3737
TEST(conversions, pointOctomapToMsg)

0 commit comments

Comments
 (0)