"Is there an issue with the curvature of the trajectory generated by the MPT algorithm?" #6298
Unanswered
JokerWhy233
asked this question in
Q&A
Replies: 1 comment 7 replies
-
This is because the "smooth" trajectory calculated internally by the
I don't think there is a "correct" way to calculate curvature. It really depends on what you want to do with it. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi ,i want to ask a question about How should curvature be calculated appropriately?
in figure1figure2 ,topic /planning/scenario_planning/scenario_selector/trajectory is output by freespace planner or autoware_path_optimizer.
I generate a path via autoware_path_optimizer with a sampling-point interval of 0.2 m. As you can see in the figure1 , the curvature exhibits oscillations on structured roads.
But curvature is normal when i generate a path via hybird A start ,and optimizer by SQP with a sampling-point interval of 0.2 m.
So , i want to know: why does this curvature jitter occur, and how can we handle it to compute curvature correctly?
The code for computing curvature is as follows,num_sampling_points is 1:
def calculate_curvature(pose_l, num_sampling_points):
res = [0.0] * len(pose_l)
num_points = len(pose_l)
Beta Was this translation helpful? Give feedback.
All reactions