create joint_dictionary
add joint positions to array + switch key/value in dictionary