parameters: (joy)
return_statement: return x
docstring: Transforms a joystick sensor_msg to a XBox controller for easier code readability
      
      Parameters:
      joy (sensor_msgs/Joy): xbox msg
  
      Returns:
      xbox struct where fields are the button names
docstring_summary: Transforms a joystick sensor_msg to a XBox controller for easier code readability
      
      Parameters:
      joy (sensor_msgs/Joy): xbox msg
docstring_tokens: Transforms a joystick sensor_msg to a XBox controller for easier code readability Parameters : joy ( sensor_msgs / Joy ) : xbox msg
function: def joy_to_xbox(joy):
      """
      Transforms a joystick sensor_msg to a XBox controller for easier code readability
      
      Parameters:
      joy (sensor_msgs/Joy): xbox msg
  
      Returns:
      xbox struct where fields are the button names
      """
      class Xbox_msg():
          pass
      x = Xbox_msg()
      x.A, x.B, x.X, x.Y, x.LB, x.RB, \
          x.back, x.start, x.power,\
          x.stick_button_left, x.stick_button_right, \
          x.DL, x.DR, x.DU, x.DD = joy.buttons
      x.LH, x.LV, x.LT, x.RH, x.RV, x.RT, x.DH, x.DV = joy.axes
      return x
function_tokens: def joy_to_xbox ( joy ) : class Xbox_msg ( ) : pass x = Xbox_msg ( ) x . A , x . B , x . X , x . Y , x . LB , x . RB , x . back , x . start , x . power , x . stick_button_left , x . stick_button_right , x . DL , x . DR , x . DU , x . DD = joy . buttons x . LH , x . LV , x . LT , x . RH , x . RV , x . RT , x . DH , x . DV = joy . axes return x