A robotic pick and place system using XArm robot and Intel RealSense camera with computer vision object detection.
XArm robotic arm with Intel RealSense camera and colored blocks for pick and place operations
- Real-time object detection using Roboflow API
- Intel RealSense camera integration
- XArm robotic arm control
- Automatic object centering and picking
- Computer vision-based rotation detection
The system uses computer vision to detect and classify objects with bounding boxes:
Example showing detected red and green boxes with bounding boxes and classification labels
- XArm robotic arm
- Intel RealSense camera
- Python 3.7+
- Clone this repository
- Install dependencies:
pip install -r requirements.txt- Ensure your XArm robot is connected and accessible at IP
192.168.1.210 - Connect your Intel RealSense camera
- Run the main program:
python main.pyUpdate the following settings in src/pick_and_place/pick_and_place.py:
- Robot IP address
- Roboflow API key
- Home, place, and safe positions
- Camera calibration parameters
pick-and-place/
├── main.py # Entry point
├── requirements.txt # Dependencies
├── README.md # Documentation
├── LICENSE # License
└── src/
└── pick_and_place/
├── __init__.py # Package initialization
├── __about__.py # Package metadata
├── camera.py # RealSense camera interface
└── pick_and_place.py # Main pick and place logic
get_frame(): Capture image from camerashow_image(image): Display imagerelease(): Stop camera
run(): Main execution loopdetect_objects(): Object detection using Roboflowcenter_object_in_frame(): Center object in camera viewfind_rotation(): Calculate object rotation angleconvert_coordinates(): Convert image to robot coordinates

