-
Hi, I have a question about the test simulation runner. Symptom
<?xml version="1.0"?>
<testsuites name="/home/autoware/autoware.proj/data/log/scenario_test_runner" failures="0" errors="1" tests="1">
<testsuite name="scenario" failures="0" errors="1" tests="1">
<testcase name="scenario">
<error type="InternalError" message="Requested the service "/api/routing/set_route_points" 1 times, but was not successful." />
</testcase>
</testsuite>
</testsuites>
DescriptionLet ego car start from We can see that the ego car and the ego destination are marked on the map. I use lanelet2 extension python to check if import xml.etree.ElementTree as et
import lanelet2 as ll2
from lanelet2.core import LaneletMap, Lanelet
from lanelet2.io import Origin, load
from lanelet2.routing import RoutingGraph, LaneletPath
from lanelet2 import traffic_rules
from lanelet2_extension_python.projection import MGRSProjector
import lanelet2_extension_python.utility.query as query
import lanelet2_extension_python.utility.utilities as utilities
def get_first_reference_origin(hd_map_path: str) -> Origin:
with open(hd_map_path, 'r') as file:
xml_data = file.read()
root = et.fromstring(xml_data)
first_node = root.find('.//node')
lat = float(first_node.get('lat'))
lon = float(first_node.get('lon'))
return Origin(lat, lon, 0)
def load_map() -> LaneletMap:
lanelet_map = load(str(hd_map_path), projector)
return lanelet_map
def get_vehicle_shortest_path_src_tgt(start_lane_id: int, end_lane_id: int, with_lane_change=True) -> \
Optional[LaneletPath]:
return rg_veh.shortestPath(get_lane_by_id(start_lane_id),
get_lane_by_id(end_lane_id), withLaneChanges=with_lane_change)
def get_lane_by_id(lane_id: int) -> Lanelet:
return ll2_map.laneletLayer[lane_id]
if __name__ == '__main__':
hd_map_path = ""
origin = get_first_reference_origin(str(hd_map_path))
projector = MGRSProjector(origin)
ll2_map = load_map()
tr_veh = lanelet2.traffic_rules.create(ll2.traffic_rules.Locations.Germany,
ll2.traffic_rules.Participants.Vehicle)
rg_veh = RoutingGraph(ll2_map, tr_veh)
print(*get_vehicle_shortest_path_src_tgt(1891, 4136, True)) It shows that lane=4136 is reachable from lane=1891. The path is EnvironmentAutoware Simulator & Scenario Editor AttachmentMap + scenario file + simulator result.xml + simulation log The map I used for this scenario is in Autoware Evaluator, not created by myself. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@lethal233
If you use the parameter as it is, could you adjust the position of destination? |
Beta Was this translation helpful? Give feedback.
@lethal233
thanks for the issue.
The footprint of egoDesitination seems to exceed lane. This check is enabled by this option of mission_planner https://github.com/autowarefoundation/autoware_launch/blob/main/autoware_launch/config/planning/mission_planning/mission_planner/mission_planner.param.yaml#L12
If you use the paramete…