Thanks for posting your query
You had injury to your ankle by corner of carpet cleaner.
After that you had swelling & it is tender to touch at the site of impact.
You might be suffering from soft tissue injury
to ankle or a fracture
you need a x-ray of ankle to rule out any fracture.
So you have to visit an orthopaedic surgeon
for exam & x-ray as required.