The pug is unsure of the new "crawler." Notice the circling and "shaking off" (as if after a bath). You can see sammy check in with Jacob and then go back to a "safe" spot the carpet) and then bark.
This would be a great time to give Sammy something else to do or to give a command to follow. It looks like this dog went to get a toy and distracted herself. This is a good choice and great response on the dog's part! :)