A Raspberry Pi security robot is best treated as a mobile camera, light and alert platform. It can patrol a garage, workshop or yard, but it should not confront people or use unsafe deterrents.
Focus on reliable video, night lighting, docking and remote control. Add object detection after the camera stream and alerts are stable.