Skip to content

Releases: tier4/scenario_simulator_v2

6.3.1

10 Dec 07:25
Compare
Choose a tag to compare

6.3.0

10 Dec 05:03
Compare
Choose a tag to compare

Description

Abstract

allow lane-changes everywhere in VEHICLE_WITH_ROAD_SHOULDER rouitng graph

Background

Basically, the lanelet2 lane change permission/disallowance setting is intended for Autoware and was not designed with the behavior of entities running in the traffic_simulator in mind.

Also, when an entity is commanded to change lanes in a scenario, it is considered appropriate to change lanes, even if that command ignores the Road Traffic Act and lane change settings.

Details

  • make the linestrings between road and road_shoulder into solid(un-lane-changeable) from dashed(lane-changeable)
  • allow lane-changes everywhere in VEHICLE_WITH_ROAD_SHOULDER rouitng graph

details of getLeftLaneletIds / getRightLaneletIds changes

In this pull-request, I changed lanelet2 function mapping switched by include_oppsite_direction flag.

previous mappping

  • include_oppsite_direction: true(The de facto default)
    • lanelet::routing::RoutingGraph::adjacentRights/adjacentLefts
  • include_oppsite_direction: false
    • lanelet::routing::RoutingGraph::rights/lefts

incoming mappping

  • include_oppsite_direction: true
    • no mapping (throw an exception)
  • include_oppsite_direction: false(The de facto default)
    • lanelet::routing::RoutingGraph::rights/lefts

Important

lanelet::routing::RoutingGraph::adjacentRights/adjacentLefts do not have the ability to acquire adjacent lanes,
including the opposite lane.
The only difference between rights and adjacentRights is whether the adjacent lanelet they acquire is routable or not.
(Both do not have the ability to acquire the opposite lanes.)

image

routing changes possibility due to this change

In this pull-request allows lane-changes everywhere.
This change will result in some changes to routing, as exemplified by the tests below.
Routing will always prioritize smaller cost (in this case, shorter distance), so longitudinal distance measurements may be smaller than before.

Before this pull-request
The routing graph and adjacent lane search options only allow you to get this route.
image

After this pull-request
By expanding the range of the RoutingGraph, we can compare more candidates and select a route with a shorter distance (in this case, the route is shorter if it goes on the inside of the curve).
image

References

Regression Test: OK

Destructive Changes

Please see "routing changes possibility due to this change" in Details section.

Known Limitations

Related Issues

6.2.5

09 Dec 07:22
Compare
Choose a tag to compare

Description

Abstract

fix caluculation for the gravity by slope in ego entity simulation

Background

This bug was introduced in #1447

Details

  • use pitch-filled map pose for ego pitch calculation
  • fix sign in caluculation of accelerlation_by_slope
  • fix pitch caluculation in tests

The accelerlation_by_slope caluculation is was done as shown in the figure below and reflected in the code.

image

References

Regression Test: OK

Destructive Changes

Known Limitations

Related Issues

6.2.4

09 Dec 04:15
Compare
Choose a tag to compare

Description

Abstract

Added a static member function version of SpeedCondition::evaluate.

Background

The static version of SpeedCondition::evaluate is useful for implementing TimeToCollisionCondition, so we implemented it.

Details

None.

References

None.

Destructive Changes

None.

Known Limitations

None.

Related Issues

6.2.3

05 Dec 07:33
Compare
Choose a tag to compare

Description

Abstract

This PR includes modifications based on the results of static analysis performed by SonarCloud. Please refer to the SonarCloud reference for details on the issue fixes.

Background

N/A

Details

N/A

References

This PR has been split and submitted to avoid the issues that occurred in the following PR.

Replace the redundant type with "auto".

implicit conversion loses floating-point precision: 'double' to 'const float'

Remove this redundant cast.

unused exception parameter 'e'

Destructive Changes

N/A

Known Limitations

N/A

Related Issues

6.2.2

04 Dec 08:30
Compare
Choose a tag to compare

Description

Abstract

Added a static member function version of DistanceCondition::evaluate.

Background

The static version of DistanceCondition::evaluate is useful for implementing TimeToCollisionCondition, so we implemented it.

Details

None.

References

None.

Destructive Changes

None.

Known Limitations

None.

Related Issues

6.2.1

03 Dec 06:37
Compare
Choose a tag to compare

Description

Abstract

Added a static member function version of RelativeDistanceCondition::evaluate.

Background

The static version of RelativeDistanceCondition::evaluate is useful for implementing TimeToCollisionCondition, so we implemented it.

Details

None.

References

None.

Destructive Changes

None.

Known Limitations

None.

Related Issues

6.2.0

02 Dec 06:27
Compare
Choose a tag to compare

Description

Abstract

This pull request adds support for OpenSCENARIO XML 1.3.1 RelativeSpeedCondition.

Background

RelativeSpeedCondition is required internally to implement TimeToCollisionCondition.

Details

None.

References

Destructive Changes

None.

Known Limitations

None.

Related Issues

6.1.3

29 Nov 08:52
Compare
Choose a tag to compare

Description

Abstract

This pull request is a continuation of #1406.
It adds tests for the new implementation of the traffic lights.

After changes requested review in #1406 and other:
In order to make it possible to test the correctness of the generation the messages:

  • autoware_auto_perception_msgs::msg::TrafficSignalArray
  • autoware_perception_msgs::msg::TrafficSignalArray
  • autoware_perception_msgs::msg::TrafficLightGroupArray
  • traffic_simulator_msgs::msg::TrafficLightArrayV1

from simulation_api_schema::UpdateTrafficLightsRequest, new static method has been extracted:

https://github.com/tier4/scenario_simulator_v2/blob/e6bf7419dc26dc5448884d29969dffb0325a1c36/simulation/traffic_simulator/include/traffic_simulator/traffic_lights/traffic_light_publisher.hpp#L54-L56

In traffic_light_publisher.cpp can be found definitions of methods used in tests.

Background

This pull request is one of many that aim to modularize the scenario_simulator_v2.

Details

In the previous pull request, a new implementation of traffic lights has been added and tests developed for the previous implementation have been deleted.
This pull request introduces tests for the new implementation of traffic lights. These changes have been split into two PRs, because of the amount of changes. If these changes (this PR and the previous one) were introduced in one PR, it would have been very large (>2000 additions).

References

INTERNAL LINK

Destructive Changes

Known Limitations

Related Issues

6.1.2

29 Nov 06:35
Compare
Choose a tag to compare

Description

Abstract

The following minor changes were made to the interpreter code:

  • The implementation of the file-local function hypot, which switches dimensions depending on the parameter considier_pose_by_road_slope (the same function was copied to multiple files), was made into a single free function.
  • Old descriptions that remained in the documentation for the syntax Entities were deleted.

Background

None.

Details

None.

References

None.

Destructive Changes

None.

Known Limitations

None.

Related Issues