File tree 1 file changed +3
-3
lines changed
steering_controllers_library/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ bool SteeringOdometry::update_from_velocity(
123
123
{
124
124
steer_pos_ = steer_pos;
125
125
double linear_velocity = traction_wheel_vel * wheel_radius_;
126
- const double angular_velocity = tan (steer_pos) * linear_velocity / wheelbase_;
126
+ const double angular_velocity = std:: tan (steer_pos) * linear_velocity / wheelbase_;
127
127
128
128
return update_odometry (linear_velocity, angular_velocity, dt);
129
129
}
@@ -136,7 +136,7 @@ bool SteeringOdometry::update_from_velocity(
136
136
(right_traction_wheel_vel + left_traction_wheel_vel) * wheel_radius_ * 0.5 ;
137
137
steer_pos_ = steer_pos;
138
138
139
- const double angular_velocity = tan (steer_pos_) * linear_velocity / wheelbase_;
139
+ const double angular_velocity = std:: tan (steer_pos_) * linear_velocity / wheelbase_;
140
140
141
141
return update_odometry (linear_velocity, angular_velocity, dt);
142
142
}
@@ -148,7 +148,7 @@ bool SteeringOdometry::update_from_velocity(
148
148
steer_pos_ = (right_steer_pos + left_steer_pos) * 0.5 ;
149
149
double linear_velocity =
150
150
(right_traction_wheel_vel + left_traction_wheel_vel) * wheel_radius_ * 0.5 ;
151
- const double angular_velocity = steer_pos_ * linear_velocity / wheelbase_;
151
+ const double angular_velocity = std::tan ( steer_pos_) * linear_velocity / wheelbase_;
152
152
153
153
return update_odometry (linear_velocity, angular_velocity, dt);
154
154
}
You can’t perform that action at this time.
0 commit comments