You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AckermannSteering Plugin limits the minimum angular velocity based on the minimum linear velocity, preventing steering to the right when set to 0
#2734
Open
Dyst-0 opened this issue
Jan 26, 2025
· 0 comments
When setting the minimum linear velocity to 0, then testing the steering commands, the following happens:
Expected behavior: Front wheels turn anti-clockwise, then clockwise until the steering limit has been reached
Actual behavior: Front wheels do not reach the steering limit in the clockwise direction. Instead, the wheels return to pointing straight.
In AckermannSteering.cc#L349, the minimum angular velocity is set to the same value as the minimum linear velocity. In the case when the value is 0, the wheel cannot turn right.
Steps to reproduce
Change the min_velocity value to 0 in ackermann_steering.sdf by replacing the line with the following:
Environment
Latest commit: 4c2797d
Description
When setting the minimum linear velocity to 0, then testing the steering commands, the following happens:
In AckermannSteering.cc#L349, the minimum angular velocity is set to the same value as the minimum linear velocity. In the case when the value is 0, the wheel cannot turn right.
Steps to reproduce
min_velocity
value to0
in ackermann_steering.sdf by replacing the line with the following:gz sim ackermann_steering.sdf -r
1 -
gz topic -t "/model/vehicle_blue/cmd_vel" -m gz.msgs.Twist -p "angular: {z: 0.1}"
then
2 -
gz topic -t "/model/vehicle_blue/cmd_vel" -m gz.msgs.Twist -p "angular: {z: -0.1}"
Output
Output after running the first steering command:
Output after running the second steering command:
Proposed Solution
<plugin>
taggz sim ackermann_steering.sdf -r
1 -
gz topic -t "/model/vehicle_blue/cmd_vel" -m gz.msgs.Twist -p "angular: {z: 0.1}"
then
2 -
gz topic -t "/model/vehicle_blue/cmd_vel" -m gz.msgs.Twist -p "angular: {z: -0.1}"
Output after running the first steering command:
Output after running the second steering command:
The text was updated successfully, but these errors were encountered: