Skip to content

Commit 1095620

Browse files
authored
Merge develop-ros2 into main-ros2
2 parents 92ae3d2 + 6a88f28 commit 1095620

15 files changed

Lines changed: 194 additions & 39 deletions

File tree

.github/workflows/build.yml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: checkout
19-
uses: actions/checkout@v1
19+
uses: actions/checkout@v4
2020
- name: rosdep update
2121
run: |
2222
apt-get update
@@ -41,4 +41,45 @@ jobs:
4141
cd ~/eagleye/
4242
source /opt/ros/humble/setup.bash
4343
rosdep install --from-paths src --ignore-src -r -y
44-
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --catkin-skip-building-tests
44+
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --catkin-skip-building-tests
45+
46+
jazzy_build:
47+
runs-on: ubuntu-24.04
48+
49+
container: ros:jazzy
50+
services:
51+
ros:
52+
image: ros
53+
54+
defaults:
55+
run:
56+
shell: bash
57+
58+
steps:
59+
- name: checkout
60+
uses: actions/checkout@v4
61+
- name: rosdep update
62+
run: |
63+
apt-get update
64+
rosdep update
65+
- name: Create Workspace
66+
run: |
67+
mkdir -p ~/eagleye/src/
68+
cp -r "$(pwd)" ~/eagleye/src/
69+
- name: Clone rtklib_msgs
70+
run: |
71+
cd ~/eagleye/src/
72+
git clone https://github.com/MapIV/rtklib_ros_bridge.git -b ros2-v0.1.0
73+
- name: Clone llh_converter
74+
run: |
75+
cd ~/eagleye/src/
76+
git clone https://github.com/MapIV/llh_converter.git -b ros2
77+
- name: Install GeographicLib
78+
run: |
79+
apt-get install -y libgeographiclib-dev geographiclib-tools geographiclib-doc
80+
- name: Build
81+
run: |
82+
cd ~/eagleye/
83+
source /opt/ros/jazzy/setup.bash
84+
rosdep install --from-paths src --ignore-src -r -y
85+
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --catkin-skip-building-tests

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,15 @@ Clone and Build MapIV's fork of [RTKLIB](https://github.com/MapIV/rtklib_ros_bri
4040
cd $HOME/RTKLIB/lib/iers/gcc/
4141
make
4242
cd $HOME/RTKLIB/app/consapp
43-
make
43+
make
4444

4545
### ROS Packages
4646

4747
Clone and build the necessary packages for Eagleye. ([rtklib_ros_bridge](https://github.com/MapIV/rtklib_ros_bridge/tree/ros2-v0.1.0), [nmea_ros_bridge](https://github.com/MapIV/nmea_ros_bridge/tree/ros2-v0.1.0))
4848

4949
cd $HOME/catkin_ws/src
50-
git clone https://github.com/MapIV/eagleye.git -b main-ros2 --recursive
51-
git clone https://github.com/MapIV/rtklib_ros_bridge.git -b ros2-v0.1.0
52-
git clone https://github.com/MapIV/llh_converter.git -b ros2
53-
git clone https://github.com/MapIV/nmea_ros_bridge.git -b ros2-v0.1.0
54-
git clone https://github.com/MapIV/gnss_compass_ros.git -b main-ros2
50+
git clone https://github.com/MapIV/eagleye.git -b main-ros2
51+
vcs import . < eagleye/eagleye.repos
5552
sudo apt-get install -y libgeographic-dev geographiclib-tools geographiclib-doc
5653
sudo geographiclib-get-geoids best
5754
sudo mkdir /usr/share/GSIGEO

eagleye.repos

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
repositories:
2+
rtklib_ros_bridge:
3+
type: git
4+
url: https://github.com/MapIV/rtklib_ros_bridge.git
5+
version: ros2-v0.1.0
6+
llh_converter:
7+
type: git
8+
url: https://github.com/MapIV/llh_converter.git
9+
version: ros2
10+
nmea_ros_bridge:
11+
type: git
12+
url: https://github.com/MapIV/nmea_ros_bridge.git
13+
version: ros2-v0.1.0
14+
gnss_compass_ros:
15+
type: git
16+
url: https://github.com/MapIV/gnss_compass_ros.git
17+
version: main-ros2

eagleye_core/coordinate/CMakeLists.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ ament_auto_find_build_dependencies()
1515

1616
find_package(PkgConfig)
1717
find_package(geodesy)
18+
19+
# GeographicLib
1820
find_path(GeographicLib_INCLUDE_DIR GeographicLib/Config.h
1921
PATH_SUFFIXES GeographicLib
2022
)
21-
set(GeographicLib_LIBRARIES
22-
NAMES Geographic
23-
)
23+
find_library(GeographicLib_LIBRARIES NAMES Geographic GeographicLib)
2424

2525
include_directories(
2626
include
2727
${PROJECT_SOURCE_DIR}/include
28-
${GeographicLib_INCLUDE_DIRS}
28+
${GeographicLib_INCLUDE_DIR}
2929
)
3030
link_directories(
3131
/usr/local/lib
@@ -47,11 +47,11 @@ ament_auto_add_library(eagleye_coordinate SHARED
4747
include/eagleye_coordinate/eagleye_coordinate.hpp
4848
)
4949

50-
ament_export_include_directories(include)
50+
ament_export_include_directories(include ${GeographicLib_INCLUDE_DIR})
5151
ament_target_dependencies(eagleye_coordinate)
5252

5353
target_link_libraries(eagleye_coordinate
54-
Geographic
54+
${GeographicLib_LIBRARIES}
5555
)
5656

5757
install(
@@ -62,6 +62,7 @@ install(
6262

6363
target_include_directories(eagleye_coordinate
6464
PUBLIC
65+
${GeographicLib_INCLUDE_DIR}
6566
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
6667
$<INSTALL_INTERFACE:include>
6768
)
@@ -86,4 +87,4 @@ if(BUILD_TESTING)
8687
ament_lint_auto_find_test_dependencies()
8788
endif()
8889

89-
ament_auto_package()
90+
ament_auto_package()

eagleye_core/coordinate/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<build_depend>geodesy</build_depend>
1414
<build_export_depend>rclcpp</build_export_depend>
1515
<build_export_depend>geodesy</build_export_depend>
16+
<depend>ament_index_cpp</depend>
1617
<depend>eigen</depend>
1718
<depend>geographic_info</depend>
1819
<depend>geographic_msgs</depend>

eagleye_core/navigation/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ endif()
2323
find_package(ament_cmake_auto REQUIRED)
2424
find_package(eagleye_coordinate REQUIRED)
2525
find_package(PkgConfig REQUIRED)
26+
find_package(yaml-cpp REQUIRED)
2627

2728
ament_auto_find_build_dependencies()
2829

@@ -51,7 +52,7 @@ ament_auto_add_library(eagleye_navigation SHARED
5152
include/eagleye_navigation/eagleye_navigation.hpp
5253
)
5354

54-
ament_auto_find_build_dependencies()
55+
target_link_libraries(eagleye_navigation yaml-cpp)
5556

5657
install(TARGETS eagleye_navigation
5758
INCLUDES DESTINATION include

eagleye_rt/CMakeLists.txt

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,23 @@ ament_auto_add_executable(distance
4141
ament_auto_add_executable(heading_interpolate
4242
src/heading_interpolate_node.cpp
4343
)
44+
target_link_libraries(heading_interpolate
45+
yaml-cpp
46+
)
4447

4548
ament_auto_add_executable(heading
4649
src/heading_node.cpp
4750
)
51+
target_link_libraries(heading
52+
yaml-cpp
53+
)
4854

4955
ament_auto_add_executable(height
5056
src/height_node.cpp
5157
)
58+
target_link_libraries(height
59+
yaml-cpp
60+
)
5261

5362
ament_auto_add_executable(monitor
5463
src/monitor_node.cpp
@@ -57,62 +66,107 @@ ament_auto_add_executable(monitor
5766
ament_auto_add_executable(position_interpolate
5867
src/position_interpolate_node.cpp
5968
)
69+
target_link_libraries(position_interpolate
70+
yaml-cpp
71+
)
6072

6173
ament_auto_add_executable(position
6274
src/position_node.cpp
6375
)
76+
target_link_libraries(position
77+
yaml-cpp
78+
)
6479

6580
ament_auto_add_executable(slip_angle
6681
src/slip_angle_node.cpp
6782
)
83+
target_link_libraries(slip_angle
84+
yaml-cpp
85+
)
6886

6987
ament_auto_add_executable(slip_coefficient
7088
src/slip_coefficient_node.cpp
7189
)
90+
target_link_libraries(slip_coefficient
91+
yaml-cpp
92+
)
7293

7394
ament_auto_add_executable(enable_additional_rolling
7495
src/enable_additional_rolling_node.cpp
7596
)
97+
target_link_libraries(enable_additional_rolling
98+
yaml-cpp
99+
)
76100

77101
ament_auto_add_executable(rolling
78102
src/rolling_node.cpp
79103
)
104+
target_link_libraries(rolling
105+
yaml-cpp
106+
)
80107

81108
ament_auto_add_executable(smoothing
82109
src/smoothing_node.cpp
83110
)
111+
target_link_libraries(smoothing
112+
yaml-cpp
113+
)
84114

85115
ament_auto_add_executable(trajectory
86116
src/trajectory_node.cpp
87117
)
118+
target_link_libraries(trajectory
119+
yaml-cpp
120+
)
88121

89122
ament_auto_add_executable(velocity_scale_factor
90123
src/velocity_scale_factor_node.cpp
91124
)
125+
target_link_libraries(velocity_scale_factor
126+
yaml-cpp
127+
)
92128

93129
ament_auto_add_executable(yaw_rate_offset
94130
src/yaw_rate_offset_node.cpp
95131
)
132+
target_link_libraries(yaw_rate_offset
133+
yaml-cpp
134+
)
96135

97136
ament_auto_add_executable(yaw_rate_offset_stop
98137
src/yaw_rate_offset_stop_node.cpp
99138
)
139+
target_link_libraries(yaw_rate_offset_stop
140+
yaml-cpp
141+
)
100142

101143
ament_auto_add_executable(angular_velocity_offset_stop
102144
src/angular_velocity_offset_stop_node.cpp
103145
)
146+
target_link_libraries(angular_velocity_offset_stop
147+
yaml-cpp
148+
)
104149

105150
ament_auto_add_executable(rtk_dead_reckoning
106151
src/rtk_dead_reckoning_node.cpp
107152
)
153+
target_link_libraries(rtk_dead_reckoning
154+
yaml-cpp
155+
)
108156

109157
ament_auto_add_executable(rtk_heading
110158
src/rtk_heading_node.cpp
111159
)
160+
target_link_libraries(rtk_heading
161+
yaml-cpp
162+
)
112163

113164
ament_auto_add_executable(velocity_estimator
114165
src/velocity_estimator_node.cpp
115166
)
167+
target_link_libraries(velocity_estimator
168+
yaml-cpp
169+
)
116170

117171
install(TARGETS
118172
tf_converted_imu

eagleye_rt/config/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The parameters for estimation in Eagleye can be set in the `config/eagleye_confi
1717
| imu_topic | string | Topic name to be subscribed to in node (sensor_msgs/Imu.msg) | /imu/data_raw |
1818
| twist.twist_type | int | Topic type to be subscribed to in node (TwistStamped : 0, TwistWithCovarianceStamped: 1) | 0 |
1919
| twist.twist_topic | string | Topic name to be subscribed to in node | /can_twist |
20-
| gnss.velocity_source_type | int | Topic type to be subscribed to in node (rtklib_msgs/RtklibNav: 0, nmea_msgs/Sentence: 1, ublox_msgs/NavPVT: 2, geometry_msgs/TwistWithCovarianceStamped: 3) | 0 |
20+
| gnss.velocity_source_type | int | Topic type to be subscribed to in node (rtklib_msgs/RtklibNav: 0, nmea_msgs/Sentence: 1, ublox_msgs/NavPVT: 2, geometry_msgs/TwistWithCovarianceStamped: 3, septentrio_gnss_driver/PVTGeodetic: 4) | 0 |
2121
| gnss.velocity_source_topic | string | Topic name to be subscribed to in node | /rtklib_nav |
2222
| gnss.llh_source_type | int | Topic type to be subscribed to in node (rtklib_msgs/RtklibNav: 0, nmea_msgs/Sentence: 1, sensor_msgs/NavSatFix: 2) | 0 |
2323
| gnss.llh_source_topic | string | Topic name to be subscribed to in node | /rtklib_nav |

eagleye_rt/config/eagleye_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
twist_topic: /can_twist
1111
imu_topic: /imu/data_raw
1212
gnss:
13-
velocity_source_type: 0 # rtklib_msgs/RtklibNav: 0, nmea_msgs/Sentence: 1, ublox_msgs/NavPVT: 2, geometry_msgs/TwistWithCovarianceStamped: 3
13+
velocity_source_type: 0 # rtklib_msgs/RtklibNav: 0, nmea_msgs/Sentence: 1, ublox_msgs/NavPVT: 2, geometry_msgs/TwistWithCovarianceStamped: 3, septentrio_gnss_driver/PVTGeodetic: 4
1414
velocity_source_topic: /rtklib_nav
1515
llh_source_type: 0 # rtklib_msgs/RtklibNav: 0, nmea_msgs/Sentence: 1, sensor_msgs/NavSatFix: 2
1616
llh_source_topic: /rtklib_nav

eagleye_rt/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<depend>eagleye_msgs</depend>
2424
<depend>eagleye_coordinate</depend>
2525
<depend>eagleye_navigation</depend>
26+
<depend>eagleye_tf</depend>
2627
<depend>diagnostic_updater</depend>
2728
<depend>tf2</depend>
2829
<depend>tf2_ros</depend>

0 commit comments

Comments
 (0)