autowarefoundation / autoware.universe

https://autowarefoundation.github.io/autoware.universe/
Apache License 2.0
882 stars 570 forks source link

Generated trajectory is far from the vehicle. #6659

Closed Kim-mins closed 3 months ago

Kim-mins commented 3 months ago

Checklist

Description

Hi team,

I'm currently running Autoware with Carla, and I found a situation that, sometimes a generated trajectory is far from the ego vehicle. Here's the video on RViz: [rviz] and launch.log: [launch.log]

As shown at the video, the ego vehicle is initialized well, but the generated trajectory is far from the ego vehicle, so that the vehicle cannot move at all. I checked the position and some points of the trajectory, and they are really far each other:

# Position of the ego vehicle (/sensing/gnss/pose)
header:
  stamp:
    sec: 81
    nanosec: 705659884
  frame_id: map
pose:
  position:
    x: 1.674923330952879
    y: -79.10219146683812
    z: 19.401352405548096
  orientation:
    x: 0.0
    y: 0.0
    z: 0.0
    w: 1.0

# Trajectory (/planning/scenario_planning/trajectory)
header:
  stamp:
    sec: 116
    nanosec: 505660403
  frame_id: map
points:
- time_from_start:
    sec: 0
    nanosec: 0
  pose:
    position:
      x: 235.05669529565205
      y: -2.557231487526552
      z: 0.0
    orientation:
      x: 0.0
      y: 0.0
      z: -0.715651338833009
      w: 0.6984577018163102
  longitudinal_velocity_mps: 0.0
  lateral_velocity_mps: 0.0
  acceleration_mps2: 0.0
  heading_rate_rps: 0.0
  front_wheel_angle_rad: 0.0
  rear_wheel_angle_rad: 0.0
- time_from_start:
    sec: 0
    nanosec: 0
  pose:
    position:
      x: 235.05426392789735
      y: -2.6572019254111656
      z: 0.0
    orientation:
      x: 0.0
      y: 0.0
      z: -0.715651338833009
      w: 0.6984577018163102
  longitudinal_velocity_mps: 0.0
  lateral_velocity_mps: 0.0
  acceleration_mps2: 0.0
  heading_rate_rps: 0.0
  front_wheel_angle_rad: 7.930140918932516e-13
  rear_wheel_angle_rad: 0.0
  ...

Expected behavior

I wanted the ego vehicle to drive to the destination as usual.

Actual behavior

However, the ego vehicle does not move at all, since the generated trajectory is too far from him.

Steps to reproduce

Here's the ros2bag file for the reproduction: [ros2bag]

Versions

Possible causes

No response

Additional context

No response

takayuki5168 commented 3 months ago

@Kim-mins Please check if the map is correct or not. I don't know a good way though. Also, please try various goal positions and see their behavior. (e.g. just in front of the ego)

Kim-mins commented 3 months ago

Thank you for the response @takayuki5168!

I'm currently using the map by Hatem [lanelet2] [pointcloud map], and I've experienced that the ego vehicle could drive well with the given map. So I thought the map is ok. Or, could you please tell me how to check the correctness of the map? I think I can try, but I don't know how..

I also tried other goal positions near to the original goal, and I found that the issue occurs when I set the goal point to the specific lane. Here are the videos: [video 1] [video 2]

In the first video, you can check that the trajectory is not valid sometimes, and in the second video, I tried the boundaries of the lane as a goal point, and it seems that the issue occurs when I set the goal point to the lane between two intersections.

So, I think this issue occurs when I set the goal point on the lane below:

image

But I cannot point out the root cause.. do you have any idea on this?

Thank you!

maxime-clem commented 3 months ago

There could be a bug with that specific lanelet. You can open the map with the Vector Map Builder and see if you can find the issue.

Kim-mins commented 3 months ago

Thank you for the response @maxime-clem!

I tried to open the map I'm using with Vector Map Builder, but it failed with the alarm below: image Instead, I tried with JOSM and I could successfully open the map, but when I checked the lanelet, it is well connected with the adjacent lanelets.

I agree that it is hard to think the reason that makes the trajectory generation fail, except the reason that the shape of the intersection is not as usual. So this seems the problem from my lanelet2 map file.

Sorry for bothering and thank you for the kind responses @takayuki5168 @maxime-clem. I'll close this issue soon.