Skip to content

Commit

Permalink
Merge pull request #70 from tier4/feat/merge-autoware-lenelet2-extension
Browse files Browse the repository at this point in the history
feat: merge autoware lenelet2 extension
  • Loading branch information
hayato-m126 authored Dec 19, 2024
2 parents f984f46 + 5f3f170 commit 9389181
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"${workspaceFolder}/../../../install/tier4_localization_msgs/local/lib/python3.10/dist-packages",
"${workspaceFolder}/../../../install/tier4_api_msgs/local/lib/python3.10/dist-packages",
"${workspaceFolder}/../../../install/tier4_perception_msgs/local/lib/python3.10/dist-packages",
"${workspaceFolder}/../../../install/lanelet2_extension_python/local/lib/python3.10/dist-packages",
"${workspaceFolder}/../../../install/autoware_lanelet2_extension_python/local/lib/python3.10/dist-packages",
"${workspaceFolder}/../../../install/autoware_common_msgs/local/lib/python3.10/dist-packages",
"${workspaceFolder}/../../../install/autoware_adapi_v1_msgs/local/lib/python3.10/dist-packages",
"${workspaceFolder}/../../../install/tier4_metric_msgs/local/lib/python3.10/dist-packages"
Expand All @@ -57,7 +57,7 @@
"${workspaceFolder}/../../../install/tier4_localization_msgs/local/lib/python3.10/dist-packages",
"${workspaceFolder}/../../../install/tier4_api_msgs/local/lib/python3.10/dist-packages",
"${workspaceFolder}/../../../install/tier4_perception_msgs/local/lib/python3.10/dist-packages",
"${workspaceFolder}/../../../install/lanelet2_extension_python/local/lib/python3.10/dist-packages",
"${workspaceFolder}/../../../install/autoware_lanelet2_extension_python/local/lib/python3.10/dist-packages",
"${workspaceFolder}/../../../install/autoware_common_msgs/local/lib/python3.10/dist-packages",
"${workspaceFolder}/../../../install/autoware_adapi_v1_msgs/local/lib/python3.10/dist-packages",
"${workspaceFolder}/../../../install/tier4_metric_msgs/local/lib/python3.10/dist-packages"
Expand Down
8 changes: 8 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ Major changes
| `planning_control` | use case | add planning_control_evaluator | [#43](https://github.com/tier4/driving_log_replayer_v2/pull/43) | [hayato-m126](https://github.com/hayato-m126) |
| `diagnostics` | use case | add diagnostics_evaluator | [#42](https://github.com/tier4/driving_log_replayer_v2/pull/42) | [hayato-m126](https://github.com/hayato-m126) |

## Version 2.5.0

Major changes

| Module | Feature | Brief summary | Pull request | Jira | Contributor |
| ------ | ------- | ---------------------------------------- | -------------------------------------------------------------- | -------- | --------------------------------------------- |
| `all` | library | use `autoware_lanelet2_extension_python` | [#586](https://github.com/tier4/driving_log_replayer/pull/586) | RT1-8898 | [hayato-m126](https://github.com/hayato-m126) |

## Version 2.4.0

Major changes
Expand Down
11 changes: 3 additions & 8 deletions dependency.repos
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,15 @@ repositories:
core/autoware_msgs:
type: git
url: https://github.com/autowarefoundation/autoware_msgs.git
version: 1.1.0
version: 1.3.0
core/autoware_adapi_msgs:
type: git
url: https://github.com/autowarefoundation/autoware_adapi_msgs.git
version: 1.3.0
version: beta/1.7.0
core/autoware_internal_msgs:
type: git
url: https://github.com/autowarefoundation/autoware_internal_msgs.git
version: 1.1.0
# TODO(youtalk): Remove autoware_common when https://github.com/autowarefoundation/autoware/issues/4911 is closed
core/autoware_common:
type: git
url: https://github.com/autowarefoundation/autoware_common.git
version: remove-autoware-cmake-utils
core/autoware_cmake:
type: git
url: https://github.com/autowarefoundation/autoware_cmake.git
Expand All @@ -28,7 +23,7 @@ repositories:
core/autoware_lanelet2_extension:
type: git
url: https://github.com/autowarefoundation/autoware_lanelet2_extension.git
version: 0.6.1
version: 0.6.2
# universe
universe/external/tier4_autoware_msgs:
type: git
Expand Down
5 changes: 5 additions & 0 deletions driving_log_replayer_v2/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ Changelog for package driving_log_replayer
---------
* Contributors: Hayato Mizushima, iwatake

2.5.0 (2024-12-19)
------------------
* fix: update lanelet2 extension (`#586 <https://github.com/tier4/driving_log_replayer/issues/586>`_)
* Contributors: Hayato Mizushima

2.4.0 (2024-11-20)
------------------
* feat: add ground_segmentation_evaluator (`#528 <https://github.com/tier4/driving_log_replayer/issues/528>`_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

from typing import Any

import lanelet2
import lanelet2 # isort:skip
from autoware_lanelet2_extension_python.projection import MGRSProjector
from autoware_lanelet2_extension_python.utility import query
from lanelet2.core import Lanelet
from lanelet2_extension_python.projection import MGRSProjector
from lanelet2_extension_python.utility import query
from shapely.geometry import Polygon


Expand All @@ -32,7 +32,7 @@ def load_all_lanelets(map_path: str) -> Any:


def road_lanelets_from_file(map_path: str) -> Any:
# return type lanelet2_extension_python._lanelet2_extension_python_boost_python_utility.lanelet::ConstLanelets
# return type autoware_lanelet2_extension_python._autoware_lanelet2_extension_python_boost_python_utility.lanelet::ConstLanelets
return query.roadLanelets(load_all_lanelets(map_path))


Expand Down
2 changes: 1 addition & 1 deletion driving_log_replayer_v2/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
<depend>tier4_metric_msgs</depend>
<depend>visualization_msgs</depend>

<exec_depend>autoware_lanelet2_extension_python</exec_depend>
<exec_depend>autoware_map_height_fitter</exec_depend>
<exec_depend>component_state_monitor</exec_depend>
<exec_depend>driving_log_replayer_v2_analyzer</exec_depend>
<exec_depend>lanelet2_extension_python</exec_depend>
<exec_depend>perception_eval</exec_depend>
<exec_depend>python3-fastjsonschema</exec_depend>
<exec_depend>python3-pandas</exec_depend>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
from pathlib import Path
from typing import TYPE_CHECKING

import lanelet2 # noqa # isort:skip
from autoware_lanelet2_extension_python.utility.query import getLaneletsWithinRange
from diagnostic_msgs.msg import DiagnosticArray
from diagnostic_msgs.msg import DiagnosticStatus
from geometry_msgs.msg import PoseStamped
from geometry_msgs.msg import TransformStamped
import lanelet2 # noqa
from lanelet2_extension_python.utility.query import getLaneletsWithinRange
import numpy as np
from perception_eval.config import SensingEvaluationConfig
from perception_eval.manager import SensingEvaluationManager
Expand Down
6 changes: 3 additions & 3 deletions driving_log_replayer_v2/test/unittest/test_lanelet2.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import lanelet2 # noqa #isort:skip
from autoware_lanelet2_extension_python.utility.query import getLaneletsWithinRange
from geometry_msgs.msg import Point
import lanelet2 # noqa
from lanelet2.core import BasicPoint2d
from lanelet2.core import getId
from lanelet2.core import Lanelet
from lanelet2.core import LineString3d
from lanelet2.core import Point3d
from lanelet2.geometry import distance
from lanelet2_extension_python.utility.query import getLaneletsWithinRange
from shapely.geometry import Polygon

from driving_log_replayer_v2.lanelet2_util import to_shapely_polygon
Expand Down Expand Up @@ -85,7 +85,7 @@ def test_calc_distance_point_to_lanelet() -> None:
lanelet_map = load_map(map_file)
re1504 = lanelet_map.regulatoryElementLayer.get(
1504,
) # lanelet2_extension_python._lanelet2_extension_python_boost_python_regulatory_elements.AutowareTrafficLight
) # autoware_lanelet2_extension_python._autoware_lanelet2_extension_python_boost_python_regulatory_elements.AutowareTrafficLight
distance_to_gt = []
for traffic_light in re1504.trafficLights:
l2d = to2D(traffic_light)
Expand Down

0 comments on commit 9389181

Please sign in to comment.