-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adapt PID controller from Selfie 3.0 #30
Conversation
|
Ad 1. You are correct, my mistake. Fixed now 🔧 And last but not least, confirm if this fulfills the specification from the related issue. |
Ad 2. There was missing package. I looked into pid-tuning file and there was PID package needed. When I installed it it works (so if somebody do not have this installed should do it). |
The The process has died thing looks very strange. Perhaps you launched twice and there was a collision between node names? Could you restart everything, invoke |
I just have written what I have done and that now process starts. Still process dies after couple of seconds. I attach log file (new) and the screen from console. |
Seems like this sometimes just happens for some reason. Here is a similar issue with launch file from the official Could you run In the meantime, I will try and dig into that 😬 |
Yeah, same. One process (left wheel pid) died, other works and there are are new windows opened. Same message as in that link, but other process dies after "ROS_INFO prev_time is 0, doing nothing" not before. |
Resolves #4.
Most of the code has been copied from F1/10 repository, with the most notable difference being added support for two separate offset topics (position and angular). These topics are combined into one, fed into a PID controller and then the resulting effort is translated into steering commands. Automatic rescaling of Ki and Kd parameters based on vehicle speed is also possible.
Everything has been manually tested to work as desired, both on the level of individual nodes and as a complete subsystem. The last thing to do is find optimal parameters for the new car and put them into a single launch file. For now, the controller can be tuned by hand with dynamic reconfiguration after running:
The above command will start all the required nodes working in the following layout: