def _convert_angle_from_pypot(angle, joint, **kwargs):
angle_internal = angle + joint["<STR_LIT>"]<EOL>if joint["<STR_LIT>"] == "<STR_LIT>":<EOL><INDENT>angle_internal = -<NUM_LIT:1> * angle_internal<EOL><DEDENT>if joint["<STR_LIT:name>"].startswith("<STR_LIT>"):<EOL><INDENT>angle_internal = -<NUM_LIT:1> * angle_internal<EOL><DEDENT>angle_internal = (angle_internal / <NUM_LIT> * np.pi)<EOL>return angle_internal<EOL>
Converts an angle to a PyPot-compatible format