joint_.setCommand(commanded_effort) in the joint_position_controller
Hello, I'm looking through the code of ros_control right now to get a deeper understanding how all that stuff works. In my opinion, I got quite far but now I'm stuck. I'm analyzing the effort_controllers/src/joint_position_controller.cpp at the moment. And in line 217 I found this:
joint_.setCommand(commanded_effort);
The steps before are clear, you publish to the topic, the error is computed, then the effort is computed and then it seems to be sent to the joint but when I look into the setCommand in hardware_interface/include/hardware_interface/joint_command_interface.h, I just find
void setCommand(double command) {assert(cmd_); *cmd_ = command;}
and there is no .cpp file which implements this function. So what is happening here?
Can you please update your question with links to the lines that you're referring to? It makes it easier to follow your question
I've updated my post now. Hope it is kinda clear what I'm asking.