What is the role of the gods in The Aeneid? Do humans have free will? Are they doomed to a certain course of action?

What is the role of the gods in The Aeneid? Do humans have free will? Are they doomed to a certain course of action? Are they able to change their fate? Are the gods capricious, or is there a principle that governs their actions, affections, and persecutions? How does this compare to other ancient epics’ portrayal of the gods?