uodate
This commit is contained in:
@@ -1266,8 +1266,9 @@ robot_nav_2d_msgs::Path2D mkt_algorithm::diff::PredictiveTrajectory::generateTra
|
||||
// nếu đường thẳng
|
||||
if (max_kappa <= straight_threshold)
|
||||
{
|
||||
if(fabs(path.poses.back().pose.x) * 0.9 < min_lookahead_dist_ && fabs(path.poses.back().pose.theta) < 0.1)
|
||||
if(fabs(path.poses.back().pose.x) * 0.9 < min_lookahead_dist_)
|
||||
{
|
||||
if(fabs(path.poses.back().pose.x) < min_journey_squared_ && fabs(path.poses.back().pose.theta) < 0.05)
|
||||
drive_cmd.theta = 0.01;
|
||||
return generateParallelPath(path, sign_x);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user