(Physical barriers can be tricky to get right too, though - there have been incidents of "worker crushed between robot and inside of safety cage" though design standards have been updated in response to that.)
Top picture:
https://m.yna.co.kr/amp/view/AKR20231108062151052
I've been trying to figure out the brand but enough of the text on the arm is obscured that I can't make it out beyond NZ...MI or something to that effect. I'd love it if someone could figure out what make and model it is. It's a palletizing robot, it looks superficially quite a bit like the Kawasaki models but the brand name fragment clearly doesn't match that (and that would be Japanese, not South Korean).