Does "rest" mean the same thing in these two sentences?

The gun was steadied on a special rest.

The ocean was finally at rest.
different meanings