Skip to content

Commit

Permalink
Merge remote-tracking branch 'koide3/master' into map-loading
Browse files Browse the repository at this point in the history
  • Loading branch information
TirelessDev committed Jan 18, 2023
2 parents c514939 + 2a75b97 commit ab13431
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 35 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- uses: actions/checkout@v2

- name: Docker login
continue-on-error: true
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
Expand Down
43 changes: 31 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,33 @@ cmake_minimum_required(VERSION 2.8.3)
project(hdl_graph_slam)

# Can we use C++17 in indigo?
add_definitions(-msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2)
set(CMAKE_CXX_FLAGS "-msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
add_definitions(-std=c++11)
set(CMAKE_CXX_FLAGS "-std=c++11")
else()
add_definitions(-std=c++14 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2)
set(CMAKE_CXX_FLAGS "-std=c++14 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2")
endif()

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake")

# pcl 1.7 causes a segfault when it is built with debug mode
set(CMAKE_BUILD_TYPE "RELEASE")

find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
pcl_ros
fast_gicp
geodesy
nmea_msgs
sensor_msgs
geometry_msgs
message_generation
interactive_markers
message_generation
ndt_omp
fast_gicp
nmea_msgs
pcl_ros
roscpp
rospy
sensor_msgs
std_msgs
tf_conversions
)
catkin_python_setup()

Expand Down Expand Up @@ -73,7 +81,14 @@ generate_messages(DEPENDENCIES std_msgs geometry_msgs)
catkin_package(
INCLUDE_DIRS include
LIBRARIES hdl_graph_slam_nodelet
# CATKIN_DEPENDS pcl_ros roscpp sensor_msgs
CATKIN_DEPENDS
geometry_msgs
message_runtime
nmea_msgs
roscpp
sensor_msgs
std_msgs
tf_conversions
# DEPENDS system_lib
)

Expand Down Expand Up @@ -149,8 +164,12 @@ install(FILES nodelet_plugins.xml
)

install(TARGETS
prefiltering_nodelet
prefiltering_nodelet
floor_detection_nodelet
scan_matching_odometry_nodelet
scan_matching_odometry_nodelet
hdl_graph_slam_nodelet
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})

install(DIRECTORY include/
DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}
)
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

<img src="imgs/hdl_graph_slam.png" width="712pix" />

[video](https://drive.google.com/open?id=0B9f5zFkpn4soSG96Tkt4SFFTbms)

[![Build](https://github.com/koide3/hdl_graph_slam/actions/workflows/build.yml/badge.svg)](https://github.com/koide3/hdl_graph_slam/actions/workflows/build.yml) on melodic & noetic

## Nodelets
Expand Down
2 changes: 2 additions & 0 deletions apps/floor_detection_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include <memory>
#include <iostream>

#include <boost/optional.hpp>

#include <ros/ros.h>
#include <ros/time.h>
#include <pcl_ros/point_cloud.h>
Expand Down
1 change: 1 addition & 0 deletions include/hdl_graph_slam/graph_slam.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <ros/time.h>

#include <g2o/core/hyper_graph.h>
#include <Eigen/Dense>

namespace g2o {
class VertexSE3;
Expand Down
38 changes: 17 additions & 21 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,25 @@
<license>BSD</license>

<buildtool_depend>catkin</buildtool_depend>
<build_depend>ndt_omp</build_depend>
<build_depend>fast_gicp</build_depend>
<build_depend>pcl_ros</build_depend>
<build_depend>roscpp</build_depend>
<build_depend>rospy</build_depend>
<build_depend>nodelet</build_depend>
<build_depend>geodesy</build_depend>
<build_depend>nmea_msgs</build_depend>
<build_depend>sensor_msgs</build_depend>
<build_depend>geometry_msgs</build_depend>
<build_depend>message_generation</build_depend>
<build_depend>libg2o</build_depend>

<exec_depend>ndt_omp</exec_depend>
<exec_depend>fast_gicp</exec_depend>
<exec_depend>pcl_ros</exec_depend>
<exec_depend>roscpp</exec_depend>
<exec_depend>rospy</exec_depend>
<exec_depend>geodesy</exec_depend>
<build_depend>message_generation</build_depend>
<depend>eigen</depend>
<depend>fast_gicp</depend>
<depend>geodesy</depend>
<depend>geometry_msgs</depend>
<depend>interactive_markers</depend>
<depend>ndt_omp</depend>
<depend>nmea_msgs</depend>
<depend>pcl_ros</depend>
<depend>roscpp</depend>
<depend>rospy</depend>
<depend>sensor_msgs</depend>
<depend>std_msgs</depend>
<depend>tf_conversions</depend>
<exec_depend>message_runtime</exec_depend>
<exec_depend>msf_updates</exec_depend>
<exec_depend>nodelet</exec_depend>
<exec_depend>nmea_msgs</exec_depend>
<exec_depend>sensor_msgs</exec_depend>
<exec_depend>message_generation</exec_depend>
<exec_depend>tf</exec_depend>

<exec_depend condition="$ROS_PYTHON_VERSION == 2">python-scipy</exec_depend>
<exec_depend condition="$ROS_PYTHON_VERSION == 3">python3-scipy</exec_depend>
Expand Down

0 comments on commit ab13431

Please sign in to comment.