(deg_action, action, action_id)
return msg
Convert an action to a TFActionCommand message.
Convert an action to a TFActionCommand message.
Convert an action to a TFActionCommand message .
def tf_policy_to_action_msg(deg_action, action, action_id):
        """
        Convert an action to a TFActionCommand message.
        """
        msg = TfActionCommand()
        msg.action = action.tolist()
        msg.dU = deg_action
        msg.id = action_id
        return msg
def tf_policy_to_action_msg ( deg_action , action , action_id ) : msg = TfActionCommand ( ) msg . action = action . tolist ( ) msg . dU = deg_action msg . id = action_id return msg