Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add geo_map_msgs for custom messages (#62) #65

Merged
merged 3 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
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>