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