Skip to content

How to use iCub velocity control with the simulator using IVelocityControl command #587

Answered by Nicogene
hamaduddin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hamaduddin,

welcome to the robotology community!
I don't know if the code you posted is complete but it seems that is missing some steps.

Both icub and icubSim are starting in position control, for controlling in velocity you should switch the control mode first.
Then before ivelocity=headVel.velocityMove(joints,speed) you should

for j in range(joints):
    iMode.setControlMode(j, yarp.VOCAB_CM_VELOCITY)

In any case here you can see a working example of controlling the robot using the python bindings.

Then what @pattacini said about the timeout could be a possible problem, there should be a timeout of 100 ms, if after 100 ms no velocity command is received the motion is stopped. But I…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hamaduddin
Comment options

Answer selected by hamaduddin
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