Could any one explain to me how to make the PID controller works?
Hi guys I’m new with ROS and I'm trying to implement a PID because I need that my robot goes straight. I understand how the package works, but when I try to publish something in the set point or state topic and reading the pid_effort I get nothing. My cpp code is compilated so I dont have sintax errors but when I check the topic with rostopic info it says that I’m not subscribed on the topics or i'm not publishing in the control_effort. So I dont know how to use it. Maybe is like a step list or something to get he PID working I dont know, please help!
Welcome. To better help you we're going to need more information. What package are you referring to? How are you running things? What's the output in your terminal? Where's your source code? Just because it compiles that doesn't mean that it's correct.
http://wiki.ros.org/Support#Guideline...
I'm using the PID package this is the one http://wiki.ros.org/pid The only thing im doing is making the node has the wiki sais and im trying to make it work in a simple way. In the terminal (I'm using Ubuntu 16.04) I get nothing because i just want to publish or read values of the topics of the PID
I will post by soure code when I get home and thanks for the answer jayess
Can you run "rqt_graph" and post the image in your question? It should show 4 nodes, connected as shown at http://wiki.ros.org/pid. If I were you, I would start from the given examples, then modify them.