Skip to content

Commit

Permalink
Add geo_map_msgs for custom messages (#62) (#65)
Browse files Browse the repository at this point in the history
* Add geo_map_msgs for custom messages (#62)

* Encapsulate grid_map_geo package
* Add gridmap geo messages
* Ported to ROS 2

* Remove dummy include folder

Signed-off-by: Ryan Friedman <[email protected]>

* Make CI build all packages and handle moved tests

Signed-off-by: Ryan Friedman <[email protected]>

---------

Signed-off-by: Ryan Friedman <[email protected]>
Co-authored-by: Jaeyoung Lim <[email protected]>
  • Loading branch information
Ryanf55 and Jaeyoung-Lim authored Nov 29, 2024
1 parent 89d1b86 commit 0778982
Show file tree
Hide file tree
Showing 22 changed files with 66 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
- name: Colcon Build (Release)
run: |
source /opt/ros/${{matrix.config.rosdistro}}/setup.bash
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to grid_map_geo
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
shell: bash
- name: Verify Export
run: |
source /opt/ros/${{matrix.config.rosdistro}}/setup.bash
source install/setup.bash
cd src/grid_map_geo/test/export
cd src/grid_map_geo/grid_map_geo/test/export
colcon build
./build/grid_map_export_test/main
shell: bash
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions grid_map_geo_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cmake_minimum_required(VERSION 3.5)
project(grid_map_geo_msgs)

find_package(ament_cmake REQUIRED)
find_package(std_msgs REQUIRED)
find_package(rosidl_default_generators REQUIRED)

rosidl_generate_interfaces(${PROJECT_NAME}
"msg/GeographicMapInfo.msg"
DEPENDENCIES std_msgs
)

ament_export_dependencies(rosidl_default_runtime)

ament_package()
26 changes: 26 additions & 0 deletions grid_map_geo_msgs/msg/GeographicMapInfo.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Geomap Message
#

std_msgs/Header header


# ESPG of the coordinate the map is in
uint16 geo_coordinate

# Size of the map in pixels
uint16 width
uint16 height


# Resolution of the map
float64 x_resolution
float64 y_resolution

# x value in the specified geocoordinate system
float64 origin_x

# y value in the specified geocoordinate system
float64 origin_y

# Altitude in the specified vertical datum
float64 origin_altitude
23 changes: 23 additions & 0 deletions grid_map_geo_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>grid_map_geo_msgs</name>
<version>0.0.1</version>
<description>
geomap_msgs includes the definition for custom services and messages for the grid_map_geo package.
</description>

<maintainer email="[email protected]">Jaeyoung Lim</maintainer>
<license>BSD</license>

<buildtool_depend>ament_cmake</buildtool_depend>

<depend>std_msgs</depend>
<depend>rosidl_default_generators</depend>

<member_of_group>rosidl_interface_packages</member_of_group>

<export>
<build_type>ament_cmake</build_type>
</export>
</package>

0 comments on commit 0778982

Please sign in to comment.