Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set destination that requires lane change #7

Closed
Kim-mins opened this issue Jun 15, 2023 · 7 comments
Closed

Cannot set destination that requires lane change #7

Kim-mins opened this issue Jun 15, 2023 · 7 comments

Comments

@Kim-mins
Copy link
Contributor

Hi @evshary!
I'm currently using your nice bridge software to run Autoware.
However, I faced another issue that I cannot set destination that requires lane change.
Here is a video for better understanding of the situation.
The map used in the video is Town05.
When I set the destination near to the start point, which requires a lane change once, but it seems like the car does not make a correct path.
I thought that this is because there's not enough distance to change lane, so I set the destination a bit far from the starting point, but the situation was the same.
When I make the car drive(click AUTO of OperationMode on RViz), it drives but stucks to the same lane and cannot reach the goal.
I also suffered this situation on Town04 too, and I could not even set the destination(On Town05, '2D Goal Pose' call worked anyway, but on town04, even '2d Goal Pose' does not work for 'lane-changing destination').

Have you ever suffered this issue?
I cannot sure whether this is the problem from Autoware or from bridge, but I write this issue to you because I expect Autoware to be able to handle this kind of somewhat basic case.. so I just want to hear your opinion.

I could reproduce the issue at any point of the map with multi-lane(Town04, Town05), so I expect that you can reproduce it with random spawning point(default option of the bridge)

Thank you for reading!

@evshary
Copy link
Owner

evshary commented Jun 16, 2023

I think it might be more related to map. I found that mission_planner fails to set goal.
image

I remember Autoware should be able to change lane in AWSIM, so the reason I guess might be changing lane is not available in the map.

@evshary
Copy link
Owner

evshary commented Jun 16, 2023

I compare the lanelet2_map.osm between Carla and AWSIM. It seems like AWSIM has dashed lane, so the vehicle is able to change lane. Maybe the lanelet2_map.osm should be modified to fulfill your requirements.
https://github.com/fzi-forschungszentrum-informatik/Lanelet2/blob/master/lanelet2_core/doc/LinestringTagging.md

@Kim-mins
Copy link
Contributor Author

Thank you for the detailed investigation! I really appreciate to your hard work!
I also found that the osm file of AWSIM(nishishinjuku) contains more information than my current map like below:

<way id="20">
    <nd ref="31558"/>
    ...
    <nd ref="31582"/>
    <tag k="type" v="line_thin"/>
    <tag k="subtype" v="dashed"/>
    <tag k="lane_change" v="yes"/>
    <tag k="width" v="0.000"/>
</way>

It would be impossible for me to find the reason.. since I'm novice to Autoware. Thank you so much!

By the way, I checked the link you provided regarding line tagging, but.. actually I do not have any idea for the modification.
I just used the map provided here, and I don't know about the conversion process.
Is there any proper way to modify the map? or do you know any tutorials on lanelet2 for me?
I think I can also try to convert the opendrive file to osm, but I have no idea for this.. do you have any recommendation?

Sorry for asking you too many questions, but I don't know any expert like you around me.. please tell me if you have any idea for this. Thank you!

@Kim-mins
Copy link
Contributor Author

I change every way of .osm like below:

<way id="1000">
    <nd ref="1002" />
    <nd ref="1004"/>
+   <tag k="type" v="line_thin"/>
+   <tag k="subtype" v="dashed"/>
+   <tag k="lane_change" v="yes"/>
+   <tag k="width" v="0.150"/>
</way>

but the routing does not work as it was.
Could you please tell me whether I'm doing right?

@evshary
Copy link
Owner

evshary commented Jun 19, 2023

I'm afraid I can't give you too many suggestions about editing the map. I have little experience with this.
I think maybe you can try to use JOSM mentioned here. It can open the .osm files.
https://github.com/fzi-forschungszentrum-informatik/Lanelet2/blob/master/lanelet2_maps/README.md
But I'm not familiar with the tool, not sure whether it can change the road type or not.

@evshary
Copy link
Owner

evshary commented Jun 21, 2023

I found that there is Vector Map Builder which might fulfill your need
https://autowarefoundation.github.io/autoware-documentation/main/how-to-guides/integrating-autoware/creating-maps/#creating-a-vector-map

@Kim-mins
Copy link
Contributor Author

Oh sorry for late reply.
I just found the way to modify the map with JOSM, and I'm manually fixing the map to support lane change.
Thank you for the help! I'll try your another suggestion too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants