Skip to content

Commit

Permalink
refactor: update yaw rate limit in object model
Browse files Browse the repository at this point in the history
  • Loading branch information
technolojin committed Sep 30, 2024
1 parent 1acc4b3 commit 6e8b201
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ class ObjectModel
process_limit.acc_long_max = const_g;
process_limit.acc_lat_max = const_g;
process_limit.vel_long_max = kmph2mps(140.0);
process_limit.yaw_rate_max = deg2rad(15.0);

// initial covariance
initial_covariance.pos_x = sq(1.0);
Expand Down Expand Up @@ -188,6 +189,7 @@ class ObjectModel
process_limit.acc_long_max = const_g;
process_limit.acc_lat_max = const_g;
process_limit.vel_long_max = kmph2mps(140.0);
process_limit.yaw_rate_max = deg2rad(15.0);

// initial covariance
initial_covariance.pos_x = sq(1.5);
Expand Down Expand Up @@ -232,6 +234,7 @@ class ObjectModel
process_limit.acc_long_max = const_g;
process_limit.acc_lat_max = const_g;
process_limit.vel_long_max = kmph2mps(120.0);
process_limit.yaw_rate_max = deg2rad(15.0);

// initial covariance
initial_covariance.pos_x = sq(0.8);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ BicycleTracker::BicycleTracker(
// Set motion limits
{
const double max_vel = object_model_.process_limit.vel_long_max;
const double max_slip = object_model_.bicycle_state.slip_angle_max;
const double max_slip = object_model_.process_limit.yaw_rate_max;
motion_model_.setMotionLimits(max_vel, max_slip); // maximum velocity and slip angle
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ BigVehicleTracker::BigVehicleTracker(
// Set motion limits
{
const double max_vel = object_model_.process_limit.vel_long_max;
const double max_slip = object_model_.bicycle_state.slip_angle_max;
const double max_slip = object_model_.process_limit.yaw_rate_max;
motion_model_.setMotionLimits(max_vel, max_slip); // maximum velocity and slip angle
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ NormalVehicleTracker::NormalVehicleTracker(
// Set motion limits
{
const double max_vel = object_model_.process_limit.vel_long_max;
const double max_slip = object_model_.bicycle_state.slip_angle_max;
const double max_slip = object_model_.process_limit.yaw_rate_max;
motion_model_.setMotionLimits(max_vel, max_slip); // maximum velocity and slip angle
}

Expand Down

0 comments on commit 6e8b201

Please sign in to comment.