Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/RJD-1057-remove-functions-forwar…
Browse files Browse the repository at this point in the history
…ded-to-entity-base-middle' into RJD-1057-remove-functions-forwarded-to-entity-base-refactor
  • Loading branch information
dmoszynski committed Oct 14, 2024
2 parents 2b3def2 + fec8821 commit 508e3f0
Show file tree
Hide file tree
Showing 85 changed files with 1,950 additions and 232 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/BuildAndRun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
job1:
name: BuildAndRun
Expand All @@ -31,6 +34,7 @@ jobs:
matrix:
rosdistro: [humble]
runs_on: [ubuntu-22.04] # macos-14 is added for arm support. See also https://x.com/github/status/1752458943245189120?s=20
cmake_build_type: [RelWithDebInfo, Release] # Debug build type is currently unavailable. @TODO Fix problem and add Debug build.
steps:
- name: Suppress warnings
run: git config --global --add safe.directory '*'
Expand Down Expand Up @@ -64,17 +68,23 @@ jobs:
- name: Resolve rosdep and install colcon mixin
run: |
apt-get update
apt-get install -y python3-pip python3-colcon-lcov-result lcov
apt-get install -y python3-pip python3-colcon-lcov-result lcov unzip
rosdep update --include-eol-distros
rosdep install -iy --from-paths src --rosdistro ${{ matrix.rosdistro }}
colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
colcon mixin update default
shell: bash

- name: Build packages
- name: Install sonar-scanner and build-wrapper
uses: sonarsource/sonarcloud-github-c-cpp@v3
env:
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

- name: Build with SonarCloud Build Wrapper
run: |
source /opt/ros/${{ matrix.rosdistro }}/setup.bash
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release -DBUILD_CPP_MOCK_SCENARIOS=ON -DBUILD_TESTING=true -DCMAKE_CXX_FLAGS='-fprofile-arcs -ftest-coverage' -DCMAKE_C_FLAGS='-fprofile-arcs -ftest-coverage' --packages-up-to ${{ steps.list_packages.outputs.package_list }}
build-wrapper-linux-x86-64 --out-dir src/scenario_simulator_v2/bw-output \
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} -DBUILD_CPP_MOCK_SCENARIOS=ON -DBUILD_TESTING=true -DCMAKE_CXX_FLAGS='-fprofile-arcs -ftest-coverage' -DCMAKE_C_FLAGS='-fprofile-arcs -ftest-coverage' --packages-up-to ${{ steps.list_packages.outputs.package_list }}
shell: bash

- name: Colcon test
Expand All @@ -85,6 +95,15 @@ jobs:
colcon lcov-result --packages-select ${{ steps.list_packages.outputs.package_list }}
shell: bash

- name: Collect and run gcov on coverage data
run: |
mkdir -p ./gcov && \
find ./build -name "*.gcda" -o -name "*.gcno" | \
while read -r line; do \
gcov -o $(dirname "$line") $(echo "$line" | sed 's/\.gcda$/.cpp/;s/\.gcno$/.cpp/;s/\.gcda$/.hpp/;s/\.gcno$/.hpp/'); \
done && mv *.gcov ./gcov/

- name: Show test result
if: always()
run: |
Expand All @@ -103,10 +122,18 @@ jobs:
- name: Upload Lcov result
uses: actions/upload-artifact@v4
with:
name: lcov
name: lcov-${{ matrix.cmake_build_type }}
path: lcov
retention-days: 1

- name: Run SonarCloud scan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonarcloud.io/
working-directory: src/scenario_simulator_v2/
run: sonar-scanner --define sonar.cfamily.compile-commands="bw-output/compile_commands.json"

# - name: Basic test
# run: |
# source install/setup.bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
git config --global user.name "Release Bot"
git config --global user.email "[email protected]"
git config --global --add safe.directory /__w/scenario_simulator_v2/scenario_simulator_v2
git config --global credential.helper ${{ secrets.GITHUB_TOKEN }}
git config --global credential.helper ${{ secrets.BLOOM_GITHUB_TOKEN }}
git config pull.rebase false
- name: Get old version
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/custom_spell.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"DWITH_INTEGRATION_TEST",
"engageable",
"euclidian",
"gcda",
"gcno",
"libunwind",
"linelint",
"Mersenne",
Expand Down
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@ SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBCONF_NOWARNINGS=yes

RUN --mount=type=cache,id=apt-cache-amd64,target=/var/cache/apt,sharing=locked \
--mount=type=cache,id=apt-lib-amd64,target=/var/lib/apt,sharing=locked \
apt-get update && apt-get -y install python3-pip python3-rospkg python3-rosdep software-properties-common ccache
# cspell: ignore kisak
RUN --mount=type=cache,id=apt-cache-amd64,target=/var/cache/apt,sharing=locked \
--mount=type=cache,id=apt-lib-amd64,target=/var/lib/apt,sharing=locked \
add-apt-repository ppa:kisak/kisak-mesa -y
RUN --mount=type=cache,id=apt-cache-amd64,target=/var/cache/apt,sharing=locked \
--mount=type=cache,id=apt-lib-amd64,target=/var/lib/apt,sharing=locked \
apt-get update && apt-get -y install python3-pip python3-rospkg python3-rosdep software-properties-common ccache && \
add-apt-repository ppa:kisak/kisak-mesa -y && \
apt-get update && apt-get install libegl-mesa0 -y

RUN rm -f /etc/apt/apt.conf.d/docker-clean && \
Expand Down
54 changes: 54 additions & 0 deletions common/math/arithmetic/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,60 @@ Changelog for package arithmetic
* Merge remote-tracking branch 'origin/master' into feature/publish_empty_context
* Contributors: Masaya Kataoka

4.3.15 (2024-10-10)
-------------------
* Merge branch 'master' into feature/faster-compilation
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge branch 'master' into feature/faster-compilation
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Contributors: Dawid Moszyński, Shota Minami

4.3.14 (2024-10-10)
-------------------
* Merge branch 'master' of https://github.com/tier4/scenario_simulator_v2 into feature/joblist-update-stand-still-duration
* Merge branch 'master' into feature/joblist-update-stand-still-duration
* Contributors: Masaya Kataoka

4.3.13 (2024-10-09)
-------------------
* Merge branch 'master' into feature/use-autoware-state
* Merge branch 'master' into feature/use-autoware-state
* Merge branch 'master' into feature/use-autoware-state
* Merge branch 'master' into feature/use-autoware-state
* Contributors: Kotaro Yoshimoto

4.3.12 (2024-10-09)
-------------------

4.3.11 (2024-10-07)
-------------------
* Merge branch 'master' into feature/jpblist-update-traveled-distance
* Merge branch 'master' into feature/jpblist-update-traveled-distance
* Contributors: Masaya Kataoka

4.3.10 (2024-10-03)
-------------------

4.3.9 (2024-10-03)
------------------
* Merge branch 'master' into test/cmake_flag_with_debug_and_relwithdebinfo
* Contributors: Masaya Kataoka

4.3.8 (2024-10-02)
------------------
* Merge branch 'master' into 1377/isInLanelet
* Merge branch 'master' into 1377/isInLanelet
* Contributors: Grzegorz Maj, Masaya Kataoka

4.3.7 (2024-09-27)
------------------
* Merge branch 'master' into feature/sonar_cloud
Expand Down
2 changes: 1 addition & 1 deletion common/math/arithmetic/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>arithmetic</name>
<version>4.3.7</version>
<version>4.3.15</version>
<description>arithmetic library for scenario_simulator_v2</description>
<maintainer email="[email protected]">Tatsuya Yamasaki</maintainer>
<license>Apache License 2.0</license>
Expand Down
57 changes: 57 additions & 0 deletions common/math/geometry/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,63 @@ Changelog for package geometry
* Merge remote-tracking branch 'origin/master' into feature/publish_empty_context
* Contributors: Masaya Kataoka

4.3.15 (2024-10-10)
-------------------
* Merge pull request `#1361 <https://github.com/tier4/scenario_simulator_v2/issues/1361>`_ from tier4/fix/RJD-1296-fix-random001-ego-issue
fix(cpp_mock_scenarios, ego_entity_simulation): fix ego issue in random001, fix getCurrentPose()
* Merge branch 'master' into feature/faster-compilation
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge branch 'master' into feature/faster-compilation
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* fix(ego_entity_simulation): fix getCurrentPose, add const initial_rotation_matrix\_ attribute
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Contributors: Dawid Moszynski, Dawid Moszyński, Masaya Kataoka, Shota Minami

4.3.14 (2024-10-10)
-------------------
* Merge branch 'master' of https://github.com/tier4/scenario_simulator_v2 into feature/joblist-update-stand-still-duration
* Merge branch 'master' into feature/joblist-update-stand-still-duration
* Contributors: Masaya Kataoka

4.3.13 (2024-10-09)
-------------------
* Merge branch 'master' into feature/use-autoware-state
* Merge branch 'master' into feature/use-autoware-state
* Merge branch 'master' into feature/use-autoware-state
* Merge branch 'master' into feature/use-autoware-state
* Contributors: Kotaro Yoshimoto

4.3.12 (2024-10-09)
-------------------

4.3.11 (2024-10-07)
-------------------
* Merge branch 'master' into feature/jpblist-update-traveled-distance
* Merge branch 'master' into feature/jpblist-update-traveled-distance
* Contributors: Masaya Kataoka

4.3.10 (2024-10-03)
-------------------

4.3.9 (2024-10-03)
------------------
* Merge branch 'master' into test/cmake_flag_with_debug_and_relwithdebinfo
* Contributors: Masaya Kataoka

4.3.8 (2024-10-02)
------------------
* Merge branch 'master' into 1377/isInLanelet
* Merge branch 'master' into 1377/isInLanelet
* Contributors: Grzegorz Maj, Masaya Kataoka

4.3.7 (2024-09-27)
------------------
* Merge branch 'master' into feature/sonar_cloud
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace geometry
{
template <
typename T, std::enable_if_t<std::conjunction_v<IsLikeQuaternion<T>>, std::nullptr_t> = nullptr>
auto getRotationMatrix(T quat)
auto getRotationMatrix(T quat) -> Eigen::Matrix3d
{
auto x = quat.x;
auto y = quat.y;
Expand Down
2 changes: 1 addition & 1 deletion common/math/geometry/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>geometry</name>
<version>4.3.7</version>
<version>4.3.15</version>
<description>geometry math library for scenario_simulator_v2 application</description>
<maintainer email="[email protected]">Masaya Kataoka</maintainer>
<license>Apache License 2.0</license>
Expand Down
54 changes: 54 additions & 0 deletions common/scenario_simulator_exception/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,60 @@ Changelog for package scenario_simulator_exception
* Merge remote-tracking branch 'origin/master' into feature/publish_empty_context
* Contributors: Masaya Kataoka

4.3.15 (2024-10-10)
-------------------
* Merge branch 'master' into feature/faster-compilation
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge branch 'master' into feature/faster-compilation
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Contributors: Dawid Moszyński, Shota Minami

4.3.14 (2024-10-10)
-------------------
* Merge branch 'master' of https://github.com/tier4/scenario_simulator_v2 into feature/joblist-update-stand-still-duration
* Merge branch 'master' into feature/joblist-update-stand-still-duration
* Contributors: Masaya Kataoka

4.3.13 (2024-10-09)
-------------------
* Merge branch 'master' into feature/use-autoware-state
* Merge branch 'master' into feature/use-autoware-state
* Merge branch 'master' into feature/use-autoware-state
* Merge branch 'master' into feature/use-autoware-state
* Contributors: Kotaro Yoshimoto

4.3.12 (2024-10-09)
-------------------

4.3.11 (2024-10-07)
-------------------
* Merge branch 'master' into feature/jpblist-update-traveled-distance
* Merge branch 'master' into feature/jpblist-update-traveled-distance
* Contributors: Masaya Kataoka

4.3.10 (2024-10-03)
-------------------

4.3.9 (2024-10-03)
------------------
* Merge branch 'master' into test/cmake_flag_with_debug_and_relwithdebinfo
* Contributors: Masaya Kataoka

4.3.8 (2024-10-02)
------------------
* Merge branch 'master' into 1377/isInLanelet
* Merge branch 'master' into 1377/isInLanelet
* Contributors: Grzegorz Maj, Masaya Kataoka

4.3.7 (2024-09-27)
------------------
* Merge branch 'master' into feature/sonar_cloud
Expand Down
2 changes: 1 addition & 1 deletion common/scenario_simulator_exception/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>scenario_simulator_exception</name>
<version>4.3.7</version>
<version>4.3.15</version>
<description>Exception types for scenario simulator</description>
<maintainer email="[email protected]">Tatsuya Yamasaki</maintainer>
<license>Apache License 2.0</license>
Expand Down
54 changes: 54 additions & 0 deletions common/simple_junit/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,60 @@ Changelog for package junit_exporter
* Merge remote-tracking branch 'origin/master' into feature/publish_empty_context
* Contributors: Masaya Kataoka

4.3.15 (2024-10-10)
-------------------
* Merge branch 'master' into feature/faster-compilation
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge branch 'master' into feature/faster-compilation
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge branch 'master' into fix/RJD-1296-fix-random001-ego-issue
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Merge remote-tracking branch 'origin/master' into feature/faster-compilation
* Contributors: Dawid Moszyński, Shota Minami

4.3.14 (2024-10-10)
-------------------
* Merge branch 'master' of https://github.com/tier4/scenario_simulator_v2 into feature/joblist-update-stand-still-duration
* Merge branch 'master' into feature/joblist-update-stand-still-duration
* Contributors: Masaya Kataoka

4.3.13 (2024-10-09)
-------------------
* Merge branch 'master' into feature/use-autoware-state
* Merge branch 'master' into feature/use-autoware-state
* Merge branch 'master' into feature/use-autoware-state
* Merge branch 'master' into feature/use-autoware-state
* Contributors: Kotaro Yoshimoto

4.3.12 (2024-10-09)
-------------------

4.3.11 (2024-10-07)
-------------------
* Merge branch 'master' into feature/jpblist-update-traveled-distance
* Merge branch 'master' into feature/jpblist-update-traveled-distance
* Contributors: Masaya Kataoka

4.3.10 (2024-10-03)
-------------------

4.3.9 (2024-10-03)
------------------
* Merge branch 'master' into test/cmake_flag_with_debug_and_relwithdebinfo
* Contributors: Masaya Kataoka

4.3.8 (2024-10-02)
------------------
* Merge branch 'master' into 1377/isInLanelet
* Merge branch 'master' into 1377/isInLanelet
* Contributors: Grzegorz Maj, Masaya Kataoka

4.3.7 (2024-09-27)
------------------
* Merge branch 'master' into feature/sonar_cloud
Expand Down
Loading

0 comments on commit 508e3f0

Please sign in to comment.