Skip to content

Change control mode in Python for Torque mode #632

Answered by traversaro
Timozegu asked this question in Q&A
Discussion options

You must be logged in to vote

In C++ VOCAB_CM_TORQUE is a preprocessor definition, so it is used without namespace. However, in Python it is wrapped as a normal constant, so it needs to be used as yarp.VOCAB_CM_TORQUE, see https://github.com/roboticslab-uc3m/tools/blob/878c99f6ee48051665afe487b17d6b5a415a18c7/programs/pidTuning.py#L80 or https://github.com/robotology/blender-robotics-utils/blob/8839079844acb6c3a91860276b083a9a06a4be4c/script/blenderRCBPanel/blenderRCBPanel.py#L121 for an example of the use of setControlMode in Python.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Timozegu
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
2 participants