Skip to content

how can i implement a pid controller to convert pixels into degrees on Yarp iCubSim? #678

Answered by pattacini
bionicsgirl asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @bionicsgirl

I'm sorry, but IPositionControl does NOT get along with a high-level PID. This interface provides the user with a control mode characterized by commands of the type send-and-forget. In other words, these are the steps the user is required to accomplish in the code, once the interface gets correctly configured:

  1. Establish the average speed of the point-to-point movement by calling setRefSpeed. This is something you're not doing yet, apparently.
  2. Issue the movement by calling positionMove.
  3. Wait until the movement is complete by polling via checkMotionDone.
  4. Only then, repeat from point 1 with a subsequent command.

A send-and-forget control mode can be seen from the user's per…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@bionicsgirl
Comment options

@pattacini
Comment options

@bionicsgirl
Comment options

@pattacini
Comment options

Answer selected by pattacini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants