This repository is part of the Mathematics and Simulation for Robotics course.
It provides tools to evaluate grasp quality measures for 2D objects using concepts like grasp wrench space, force closure, and external wrench resistance.
This code has been tested on the following environment:
- OS: Ubuntu 20.04
- Python Version: 3.8
Other environments may work but are not guaranteed. Please ensure compatibility before use.
To set up the environment, ensure you have Python installed and run the following command to install the required dependencies:
pip install -r requirements.txt
This script compares the grasp wrench space (GWS) with the grasp wrench hull (GWH) for a given 2D object.
Run the following command:
python ex1_gws_vs_gwh.py
This script evaluates whether a grasp satisfies the force closure property, which is essential for a stable grasp.
Run the following command:
python ex2_force_closure.py
This script tests the ability of a grasp to resist external wrenches applied to the object.
Run the following command:
python ex3_ext_wrench_resistance.py
This script generates a random 2D polygon and computes the grasp wrench space for randomly placed grasp points.
Run the following command:
python ex4_random_polygon.py