Handling leg detector msgs.