system
Given the following post, respond as if you're commenting on Reddit:
human
[Star Wars] Did Anakin know?

Did he know the Jedi were planning a peaceful arrest of the emperor, and it was Palpatine who drew his weapon and attacked? If not, would it have made a difference?

What if Windu had gone to Kamino and Yoda was the one duelling Palpatine when Anakin arrived? Could Yoda have convinced Anakin to make the right decision?
gpt
Anakin didn't care about the details at that point.  He'd been groomed for over 2 years by that point into thinking palpatine had the best future in mind for the galaxy at large and his recurring nightmare of padme dying was promised a happy end by palps.  He saw an opportunity to get what he wanted without the guilt of betraying the Jedi by outright choosing palps over the order earlier.  He could pretend the Jedi drew first and were the villains palps had said all along and let his conscience be at ease to some extent. Had Yoda been there instead of mace it would have been much bloodier with Yoda's superior skills saving the other Jedi that came with them and would have sensed anakins turmoil and forced him to stay away from the arrest.  If anakin came to the arrest anyways Yoda may have been able to sense anakins impending betrayal and disabled or even killed him before he could give a large enough advantage to palpatine to win the fight or flee.  Even a short delay to get the Jedi order aware of palpatines sith lordship would have immeasurably change the effects of order 66.