-
Notifications
You must be signed in to change notification settings - Fork 94
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
Controller step function provides incorrect parameters with motion multiplier #530
Comments
I had same doute on this issue. The usage on t_/dt_ changed on commit 'add loop_rate api to plugins', 6e65a69, but the message didn't given out any though on why changed to that way.
What interesting me is that the SimpleCar model will work smoothly with this change. If i change the t_/dt_ back to temp_t/motion_dt, the SimpleCar model will behave strangely: (1) desired_speed = 10 m/s, desired_heading = 45 deg, start to turn immediately. |
@shaun-d-anderson @esquires Hi, any idea on this? |
After i done some digging in PID controller, this phenomenon will solved by using another set to PID value(lower D factor to its 1/8 would work). So i will stick to the idea of using temp_t/motion_dt is the right way to go. |
Answer the following questions:
what are you trying to do? Run a controller with a motion multiplier and utilize the "t and dt" parameters provided by the step function
what is the problem and how can it be recreated? The step function for a controller provides the unmodified time and timestep parameters, even when a
motion_mutliplier
parameter is present. You can see the issue by printing out the step function parameters and seeing they do not change when the motion multiplier is added. This is caused by this line: https://github.com/gtri/scrimmage/blob/master/src/simcontrol/SimControl.cpp#L1553 where the controller step function is fedt
anddt
instead oftemp_t
andmotion_dt
, even though it is run within the motion multiplier subloop. The fix seems to be just changing those variables in the function call.what scrimmage commit are you on? b696da4
describe any changes you made to scrimmage. N/A
If you can recreate the issue using only plugins in the scrimmage repository, what mission file are you running? N/A
The text was updated successfully, but these errors were encountered: