Skip to content

• Robotics • In this project we aim to program the KUKA robot in a virtual environment using Python to pick up a cube from the conveyor belt and place it into a box on the cart.

Notifications You must be signed in to change notification settings

alexkalergis/Robot-Pick-and-Place

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Project Overview

This project is a part of the Introduction to Robotics course in the Department of Electrical and Computer Engineering at University of Patras. It involves programming a KUKA youBot robot to perform a pick-and-place task using Python. The main objective is to automate the process of picking a cube from a conveyor belt and placing it into a designated box on a cart.

The task involves the following steps:

  1. Move the robot to the conveyor belt where the cube is located.
  2. Adjust the robot's joints to pick up the cube.
  3. Transport the cube to a specified box on a cart and place it accurately.

Both the robot and the cube start at known coordinates. The robot must use precise joint movements to grasp the cube and place it at the target location.

Solution Description

Goal 1: Reach and Grasp the Cube

  • Distance Calculation: The distance between the robot's initial position and the cube is calculated.
  • Inverse Kinematics: Joint angles are determined to maximize the arm's reach, minimizing the movement time.
    • Joint Angle Calculation: The primary joint (q1) rotates to -65°, the second joint (q2) adjusts to -25°, and the third joint (q3) is calculated to be -28.65° after practical adjustments.
  • Arm Length Calculation: The effective length of the robot's arm is computed using the projections of the joint links.

Goal 2: Move to Target Position

  • Backward Movement: The robot moves backward to align its center with the target coordinates on the X-axis. The distance moved is calculated using the robot's wheel radius and perimeter, among other parameters.

Goal 3: Rotate and Place the Cube

  • Rotation: The robot rotates 90° to align the arm with the target position.
  • Distance Calculation: The distance from the robot's arm to the target is computed, ensuring the cube is placed precisely.

Extensions and Improvements

To enhance the robot's flexibility and adaptability:

  • Initial Position Adjustments: The code is adapted to handle different initial Z-axis positions by rotating the robot and recalculating the path.
  • Practical Adjustments: Minor errors are corrected using a trial-and-error approach to ensure accuracy in real-world applications.
  • Rotation Calculations: Empirical data is used to determine the relationship between wheel rotations and the robot's angular displacement.

Observations

  • Practical Adjustments: Theoretical calculations required fine-tuning through practical experiments.
  • Rotation Dynamics: Due to the unique nature of Mecanum wheels, specific experiments were conducted to establish accurate rotational movements.

Sources

Result

KUKA_Pick.Place_Result.mp4

About

• Robotics • In this project we aim to program the KUKA robot in a virtual environment using Python to pick up a cube from the conveyor belt and place it into a box on the cart.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages