Attention-based map encoding for learning generalized legged locomotion | Synapse