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

Backward trajectory is generated when the ego vehicle invades a drivable area #10051

Open
3 tasks done
Kim-mins opened this issue Jan 30, 2025 · 6 comments
Open
3 tasks done
Assignees
Labels
simulator:carla Issue related to CARLA simulator type:bug Software flaws or errors.

Comments

@Kim-mins
Copy link
Contributor

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 with Carla, and I found a situation that a backward trajectory is generated when the ego vehicle invades a drivable area.

Here's the video of the situation: [rviz]
In the video, the ego vehicle initially stepping a drivable area, and the generated trajectory is for driving backward.
At 0:29, the NPC vehicle drives to behind the ego and the ego starts to turn left (I cannot sure the NPC has an impact on this issue), which makes the ego vehicle invades the center line.

I tried to reproduce the situation with the planning simulation, and I think the issue occurs when the ego vehicle invades the drivable area at the initial point.
Here's the video for more details: [planning simulation]
The video shows two cases:

  1. (The ego does not invade the drivable area) At 0:06, the ego vehicle is initialized and drives to the destination well.
  2. (The ego invades the drivable area): However, At 0:29, Autoware generates backward trajectory, and the ego vehicle reaches the destination only after following the trajectory.

Actually, I cannot point out the reason why the ego vehicle drives forward in the first video, even though backward trajectory is generated. (I don't know why the gear does not changed)
But I thought that the situation in the planning simulation is similar to that of the first video.

Here are more details of the situation:

  • Starting/Goal pose (from launch.log file)
initial pose - x: 0.726764, y: 190.627121, z: 0.068133
initial orientation - qx: -0.000201, qy: 0.000178, qz: -0.715753, qw: 0.698354
goal pose - x: 209.993347, y: -9.808371, z: 0.275307
goal orientation - qx: 0.000000, qy: 0.000000, qz: -0.007468, qw: 0.999972

Expected behavior

I hope the ego vehicle drives following the center of the lane.

Actual behavior

However, the ego vehicle invades the center line.

Steps to reproduce

  1. Pull image from https://github.com/autowarefoundation/autoware/pkgs/container/autoware/334254906?tag=universe-devel-cuda-0.40.0-amd64, and run Autoware.
  2. Run ros2bag file above.

In the planning simulation, I could utilize the initial/goal pose above.

Versions

  • OS: Ubuntu 22.04 (Docker), Ubuntu 20.04 (host)
  • Autoware: 0.40.0
  • Carla: 0.9.15
  • autoware_carla_interface: link

Possible causes

No response

Additional context

No response

@idorobotics idorobotics added the type:bug Software flaws or errors. label Jan 30, 2025
@maxime-clem maxime-clem added the simulator:carla Issue related to CARLA simulator label Jan 31, 2025
@idorobotics idorobotics moved this from To Triage to Backlog in Software Working Group Feb 17, 2025
@kyoichi-sugahara
Copy link
Contributor

@Kim-mins
I cannot be certain from the video, but it appears that the bounding box generated from ego vehicle's current position is deviating from the current lane.
Could you please either visualize the start_planner debug information in rviz to confirm whether it's deviating, or check if shifting slightly to the left would solve the situation?

@Kim-mins
Copy link
Contributor Author

Kim-mins commented Feb 27, 2025

Thank you for the response @kyoichi-sugahara!

I visualized the start_planner while replaying the ros2bag file and it seems the generated path is for drive backward and straight, and the shape is weird.
Here's a video in rviz: [rviz]

In the video, it seems there are two kinds of paths: one for backward driving (a blue one) and the other for forward (a green one).
However, the shape of the backward trajectory seems weird (ends with a sharp tip, and the shape is different with the green one).
Also, there's a blue line that starts from the baselink of the vehicle and it starts to deviate when the vehicle starts to move [video].

Please let me know if you need more information. Thanks!

@kyoichi-sugahara
Copy link
Contributor

@Kim-mins
I can't access to the link you shared 😢
My colleagues also can't access...
I will try later but can you check whether this link is still valid or not?

@Kim-mins
Copy link
Contributor Author

Sorry for the inconvenience @kyoichi-sugahara..

The link is from my server, and I'm temporarily turned off the server as it has some issue now.. (so I cannot access to the link too)
Sorry for not noticing this issue in advance, and I'll fix it as soon as possible. I guess it'll be finished in this week.

@Kim-mins
Copy link
Contributor Author

Hi @kyoichi-sugahara!

I just recovered the link and I could access to the video. Could you please check if you have time?

Thanks!

@kyoichi-sugahara
Copy link
Contributor

@Kim-mins
Can you visualize debug info which is added in this PR?

I'm still suspicious about following point

it appears that the bounding box generated from ego vehicle's current position is deviating from the current lane.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
simulator:carla Issue related to CARLA simulator type:bug Software flaws or errors.
Projects
Status: Backlog
Development

No branches or pull requests

4 participants