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

fix: the stopping speed judgments of freespace_planner and mission_planner #7859

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
update_rate: 10.0
th_arrived_distance_m: 1.0
th_stopped_time_sec: 1.0
th_stopped_velocity_mps: 0.01
th_stopped_velocity_mps: 0.001
th_course_out_distance_m: 1.0
vehicle_shape_margin_m: 1.0
replan_when_obstacle_found: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ bool isStopped(
const std::deque<Odometry::ConstSharedPtr> & odom_buffer, const double th_stopped_velocity_mps)
{
for (const auto & odom : odom_buffer) {
if (std::abs(odom->twist.twist.linear.x) > th_stopped_velocity_mps) {
double x = odom->twist.twist.linear.x;
double y = odom->twist.twist.linear.y;
double z = odom->twist.twist.linear.z;
if (std::abs(x * x + y * y + z * z) > th_stopped_velocity_mps * th_stopped_velocity_mps) {
Try110 marked this conversation as resolved.
Show resolved Hide resolved
return false;
}
}
Expand Down
Loading