Skip to content

Sensing current in iCub motors #57

Answered by barbalberto
jypuigbo asked this question in Q&A
Discussion options

You must be logged in to vote

Right now the currents are not streamed from the stateExt port but you can read the joint torques (the same you can see from the motorGui) which is not the same but is somehow related. I don't know if it is enough in your case.

In order to have currents you have to request them using rpc port (which is kind of slow so it is not suggested to do it at high rate). You can use the controlBoardDumper with the command:

controlBoardDumper --robot icub --part left_arm --rate 10 --joints "(0 1 ... n)" --dataToDump "(getCurrents)"

It'll create a port streaming the current values you can read from. Since a man-in-the-middle is added, the delay will increase a bit.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pattacini
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #57 on December 15, 2020 15:27.