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

Invalid path is generated when the point behind the vehicle is set as a goal #6546

Closed
3 tasks done
Kim-mins opened this issue Mar 5, 2024 · 13 comments
Closed
3 tasks done
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) status:help-wanted Assistance or contributors needed. type:bug Software flaws or errors.

Comments

@Kim-mins
Copy link
Contributor

Kim-mins commented Mar 5, 2024

Checklist

  • I've read the contribution guidelines.
  • I've searched other issues and no duplicate issues were found.
  • I'm convinced that this is not my fault but a bug.

Description

Hi team,

I'm currently running Autoware version 20240115 with prebuilt docker on Carla, and I found that the invalid path is generated when the point behind the vehicle is set as a goal.

Here's the [image] for the situation.
I set the goal point as the point behind the vehicle after spawning the ego vehicle, but the vehicle cannot move even though the routing was successful(I could press the button "AUTO" in RViz)

I also checked the [launch.log] file, and I could see the log below,

1709580193.0063493 [component_container-73] [motion_utils] calcLongitudinalOffsetToSegment: Longitudinal offset calculation is not supported for the same points. Return NaN since no_throw option is enabled. The maintainer must check the code.
1709580193.0078657 [component_container-73] [ERROR] [1709580193.007519306] [control.control_validator]: predicted_trajectory size is less than 2. Cannot validate.

which states there's an error on calculating a longitudinal offset.

Expected behavior

I want the vehicle to drive forward successfully to the goal point.

Actual behavior

But the vehicle does not move at all.

Steps to reproduce

  1. Run Autoware of version 20240115, prebuilt docker with the maps here: [lanelet2 map], [pointcloud map]
  2. Spawn ego vehicle, and set the goal point as a point behind the vehicle which is on the same lane.

Or here's a ros2bag file I recorded.

Versions

Possible causes

According to the error message, I think the function related to the issue is this:

Additional context

I thought this and this could be the same issue, but current issue occurs after fixing the first one, and for the latter one, I think it is not related to the backward path.

@idorobotics idorobotics added the type:bug Software flaws or errors. label Mar 5, 2024
@kyoichi-sugahara
Copy link
Contributor

@Kim-mins
Hello,
Thank you so much for the report!
In the current start_planner module the reported situation is not supported and explained here and implemented here
If you have solution for this problem we are happy to discuss here and if you make PR me or other member can review the PR!

By the way what's the motivaiton for setting goal?
If my understanding is correct, backward driving on the road is necessary 🤔

@maxime-clem maxime-clem added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Mar 7, 2024
@Kim-mins
Copy link
Contributor Author

Thank you for the response @kyoichi-sugahara!!

Maybe I should have investigated more information for this issue.. sorry for bothering. I didn't know this is a known issue.
I'll let you know if I have any idea for this!

For the motivation, I just wanted to check if the vehicle could drive 'forward' and come back to the starting point well.
In my opinion, driving forward is correct, even though there's no other vehicles on the road, since that is the right direction of the road.
But I also think it's necessary to go backward when the vehicle is at a parking lot or alley, since there's no right direction.

@maxime-clem
Copy link
Contributor

Parking area can be represented in the lanelet map, in which case the freespace planner should take over and allow backward driving.
For the alley case, I imagine a case where a one lane alley is blocked and the ego vehicle needs to reverse to take another route. This case is currently not handled by Autoware.

@kyoichi-sugahara
Copy link
Contributor

@Kim-mins
You're welcome and we all appreciate the feedback!! Thanks.

I didn't know this is a known issue.

In my opinion, this is not the issue and it's not supported.

But I also think it's necessary to go backward when the vehicle is at a parking lot or alley,

Same with maxime san's comment, for parking lot, parking lot information should be added in the current autoware and backward driving can be achieved.
Backward driving in alley case is not supported currently 🙇 Basiccaly direction of travel must be linked to a lane information.

In conclusion, autoware currently does not support the functionality to move in the opposite direction of the lane direction. However, if you feel there is a need for this, it would be a good idea to create a new issue regarding this matter and close this issue.(or update this issue) How does that sound?

@Kim-mins
Copy link
Contributor Author

Thank you for the kind responses @maxime-clem and @kyoichi-sugahara!

What I wanted to know from this issue was "why the vehicle cannot drive forward when the goal is at behind". So, I think it is ok for the vehicle not to drive backward.
And, for backward driving, after reading comment from you two, I got to know it is not supported for now and it is tricky to handle.
So, as @kyoichi-sugahara summarized, I agree to closing this issue, and open another issue for the feature for backward driving, but I think it is not too late to handle backward driving when needed, since I think the situation in alley(@maxime-clem noted above) would be not that frequent.

So.. may I close this issue for now?

@maxime-clem
Copy link
Contributor

I now understand the issue you are raising is for forward driving. In your example, we would expect Autoware to find a route to the goal by making the ego vehicle drive forward and "loop" back to the current lanelet.
This is not currently supported but I think it is a reasonable feature request, so we can keep the issue open.

Copy link

stale bot commented May 12, 2024

This pull request has been automatically marked as stale because it has not had recent activity.

@stale stale bot added the status:stale Inactive or outdated issues. (auto-assigned) label May 12, 2024
@ahsan155
Copy link

I just installed autoware and I am getting this same error when vehicle reaches the destination, how can I fix it? Do I need to change any property related to 2D goal pose?

@stale stale bot removed the status:stale Inactive or outdated issues. (auto-assigned) label May 13, 2024
@maxime-clem
Copy link
Contributor

@ahsan155 There is no workaround for this issue yet apart from splitting the route (instead of doing A -> C, first do A ->B, then B -> C).

@ahsan155
Copy link

@ahsan155 There is no workaround for this issue yet apart from splitting the route (instead of doing A -> C, first do A ->B, then B -> C).

thanks for the quick response. I am not even setting point behind vehicle as destination. I am just trying to move the vehicle on a straight path. why does it still gives error

Screenshot from 2024-05-12 21-23-44

@maxime-clem
Copy link
Contributor

These messages are just warning messages. This PR will prevent them from displaying in the terminal: #6955
Otherwise I don't think there is any issue in your case.

@meliketanrikulu
Copy link
Contributor

Hello @Kim-mins . I think you can open discussion in feature request section for this request. If it is convenient for you, we can close this issue this way. @maxime-clem

@Kim-mins
Copy link
Contributor Author

Hello @meliketanrikulu!

I just opened the feature request here!
Please feel free to close this issue or keep it open.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) status:help-wanted Assistance or contributors needed. type:bug Software flaws or errors.
Projects
No open projects
Development

No branches or pull requests

6 participants