Skip to content

Commit cc5fdd1

Browse files
committed
feat(autoware_map_msgs): add MapProjectorInfo message
Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp>
1 parent 4f9f1c0 commit cc5fdd1

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

autoware_map_msgs/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ set(msg_files
99
"msg/LaneletMapBin.msg"
1010
"msg/LaneletMapMetaData.msg"
1111
"msg/LaneletMapCellMetaData.msg"
12+
"msg/MapProjectorInfo.msg"
1213
"msg/PointCloudMapCellWithID.msg"
1314
"msg/PointCloudMapCellMetaData.msg"
1415
"msg/PointCloudMapCellMetaDataWithID.msg"
@@ -21,6 +22,7 @@ set(msg_files
2122
set(msg_dependencies
2223
std_msgs
2324
geometry_msgs
25+
geographic_msgs
2426
sensor_msgs)
2527

2628
rosidl_generate_interfaces(${PROJECT_NAME}

autoware_map_msgs/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ The message contains a pointcloud data attached with an ID.
1212

1313
The message contains a pointcloud meta data attached with an ID. These IDs are intended to be used as a query for selected PCD map loading (see `GetSelectedPointCloudMap.srv` section).
1414

15+
## MapProjectorInfo.msg
16+
17+
The message contains the information required to project global coordinates to local coodraintes used by Autoware, which includes the name of the projection method and the parameters for the projection.
18+
For further information, please refer to the readme of [map_projection_loader](https://github.com/autowarefoundation/autoware.universe/blob/main/map/autoware_map_projection_loader/README.md) in Autoware Universe.
19+
20+
1521
## GetPartialPointCloudMap.srv
1622

1723
Given an area query (`AreaInfo`), the response is expected to contain the PCD maps (each of which attached with unique ID) whose area overlaps with the query.
@@ -37,3 +43,4 @@ Let $X_0$ be a set of PCD map ID that the client node has, $X_1$ be a set of PCD
3743
## GetSelectedPointCloudMap.srv
3844

3945
Given IDs query, the response is expected to contain the PCD maps (each of which attached with unique ID) specified by query. Before using this interface, the client is expected to receive the `PointCloudMapCellMetaDataWithID.msg` metadata to retrieve information about IDs.
46+
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Projector type
2+
string LOCAL = "local"
3+
string LOCAL_CARTESIAN_UTM = "LocalCartesianUTM"
4+
string MGRS = "MGRS"
5+
string TRANSVERSE_MERCATOR = "TransverseMercator"
6+
string projector_type
7+
8+
# Vertical datum
9+
string WGS84 = "WGS84"
10+
string EGM2008 = "EGM2008"
11+
string vertical_datum
12+
13+
# Used for MGRS map
14+
string mgrs_grid
15+
16+
# Used for some map projection types
17+
# altitude may not be in ellipsoid height
18+
geographic_msgs/GeoPoint map_origin

autoware_map_msgs/package.xml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<buildtool_depend>rosidl_default_generators</buildtool_depend>
1616

1717
<depend>geometry_msgs</depend>
18+
<depend>geographic_msgs</depend>
1819
<depend>sensor_msgs</depend>
1920
<depend>std_msgs</depend>
2021

0 commit comments

Comments
 (0)