AndrejOrsula/pymoveit2

Python interface for MoveIt 2

What it solves

pymoveit2 simplifies the process of controlling robotic arms by providing a straightforward Python interface for MoveIt 2, the standard motion planning framework for ROS 2. It removes the complexity of manually managing ROS 2 actions and services, allowing developers to command robots using simple Python code.

How it works

The library acts as a bridge between your Python scripts and the MoveIt 2 ecosystem. It uses a RobotSession object to manage the underlying ROS 2 node, executor, and robot description automatically. You can use it to send motion goals, perform forward and inverse kinematics, control grippers, or manage the robot's environment (such as adding collision objects) through high-level function calls.

Who it’s for

This project is designed for robotics developers and researchers who use ROS 2 and MoveIt 2 and want to write control logic in Python. It is ideal for those who need to quickly prototype motion sequences, integrate robot control into larger Python-based applications, or perform real-time servoing without dealing with low-level ROS 2 communication overhead.

Highlights

  • Simplifies robot control via a convenient Python context manager (connect()).
  • Supports complex tasks like motion planning, Cartesian path constraints, and real-time servoing.
  • Includes tools for managing the planning scene, such as adding collision primitives or meshes.
  • Provides built-in diagnostic tools to help troubleshoot connectivity or motion issues.
  • Offers flexible API options, ranging from a simple session-based approach to granular control over individual interfaces.

Related

  • Project
  • Project
  • Project
  • Project
  • Project