How jenniferbuehler/graspit-pkgs works
Main Components
• Core Grasp Planning Engine: Represented by the “grasp_planning_graspit” package. This package includes the core C++ classes and algorithms (for example, the EigenGraspPlanner and various utilities in both “include” and “src”) that implement the grasp planning functionality.
• Message Definitions: The “grasp_planning_graspit_msgs” package provides ROS service definitions (.srv files) and messages that enable inter-process communication.
• ROS Interface and Nodes: The “grasp_planning_graspit_ros” package serves as the bridge between the GraspIt core and the ROS ecosystem. It contains ROS nodes, launch files, and additional wrappers (e.g., EigenGraspPlannerClient, GraspItServices) that wrap the core functionality for ROS usage.
• Supporting Tools and Utilities:
• “graspit_tools” package likely includes additional utilities or helper functions that support the main GraspIt functionalities.
• “urdf2graspit” is a conversion tool intended to translate URDF (Universal Robot Description Format) models into a format suitable for GraspIt, including conversion utilities and corresponding ROS nodes.
• Sample/Reference Implementations: The “jaco_graspit_sample” package includes sample configurations, models, and example code (alongside example grasp files and worlds) that demonstrate how to integrate or test the core functionalities with a specific robot (the Jaco robot).
Relationships and Interactions
• The Core Grasp Planning Engine (grasp_planning_graspit) lies at the foundation. It is directly used by the ROS interface (grasp_planning_graspit_ros) which wraps it into nodes and services.
• The message definitions (grasp_planning_graspit_msgs) provide the data contracts for the ROS-based interactions; these are consumed by the ROS layer to communicate results, commands, and state information.
• The “urdf2graspit” package acts as a conversion module that interfaces with the core engine and possibly with external robot design data.
• The sample package (jaco_graspit_sample) uses both the core functionality and the ROS interfaces to demonstrate end-to-end integration, including model loading and planning execution.
• “graspit_tools” might supply additional functionalities, extensions, or debugging aids across modules.
Architectural Patterns and Design Principles
• Modularization: Each package is separated by responsibility (core algorithms, ROS communications, model conversion, sample implementations), which helps in maintaining a clear separation of concerns.
• Layered Architecture: The system differentiates between low-level core functionality, a communication layer (via ROS interface and message packages), and high-level usage/demonstration layers (sample implementations).
• Use of CMake and ROS: The presence of CMakeLists.txt files, package.xml files, and ROS launch files shows that the build and execution are separated by package boundaries, promoting component reusability and decoupling.