Replies: 1 comment 3 replies
-
Sorry for late reply. |
Beta Was this translation helpful? Give feedback.
3 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.
Uh oh!
There was an error while loading. Please reload this page.
-
While reading the smoother code for motion_velocity_smoother, I've seen that when the smoothVelocity function fails it outputs the result of the previous frame, but what I've seen in the smoothVelocity function is that it looks like when smoother_->apply() fails, It does not return false, but continues to compute, and finally returns true, and finally outputs the results of the current frame. I do not understand why smoother_->apply() fails, and does not directly return false and output the results of the previous frame?
if (!smoothVelocity(traj_extracted, traj_extracted_closest, output)) { return prev_output_; }
if (!smoother_->apply( initial_motion.vel, initial_motion.acc, clipped, traj_smoothed, debug_trajectories)) { RCLCPP_WARN(get_logger(), "Fail to solve optimization."); }
https://github.com/autowarefoundation/autoware.universe/blob/main/planning/motion_velocity_smoother/src/motion_velocity_smoother_node.cpp
Beta Was this translation helpful? Give feedback.
All reactions