Welcome to the world of surgical robot learning! SurRoL is an open-source platform designed to aid in the research and development of surgical robots using reinforcement learning. This guide will take you through the process of setting up SurRoL, navigating its features, and troubleshooting common issues.
Features of SurRoL
SurRoL offers numerous features that make it an excellent choice for robotic surgery simulations:
- Compatible with dVRK robots.
- Offers a Gym-style API for reinforcement learning.
- Includes ten surgical-related tasks for practical training.
- Provides various object assets for diverse scenarios.
- Based on PyBullet for realistic physics simulation.
Installation Guide
To get started with SurRoL, follow these steps for a successful installation:
1. Prepare Your Environment
- Create a conda virtual environment:
- Activate the environment:
- Install required dependencies:
conda create -n surrol python=3.7 -y
conda activate surrol
pip install gym tensorflow-gpu==1.14 baselines
2. Install SurRoL
Now, clone the SurRoL repository and install:
git clone https://github.com/med-air/SurRoL.git
cd SurRoL
pip install -e .
Getting Started with SurRoL
You can begin using the robotic control API that aligns with the dVRK system. For a comprehensive understanding, take a look at the Jupyter notebooks available in the tests directory. You’ll find test files for different models:
Understanding the Code with an Analogy
Think of SurRoL like a training facility for surgical robots. Just as a medical student needs practice in a simulated environment before moving to real patients, SurRoL provides a digital training ground for surgical robots to learn and improve their skills through trials.
The structure of the code resembles a well-organized curriculum, where:
- Each class represents a surgical procedure, like a unique course.
- Simulations offer the hands-on experience essential for mastering techniques.
- Feedback collected during simulations helps refine each robot’s capabilities, much like exam results guide a student’s improvement.
Troubleshooting
If you encounter issues during installation or testing, consider these common troubleshooting steps:
- Ensure that you have all dependencies installed. Rerun the installation commands if necessary.
- If there are problems with your environment, try creating a new conda environment from scratch.
- Check compatibility between Python versions and required libraries—sometimes, specific combinations yield better results.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
Final Thoughts
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.
Now that you’re set up with SurRoL, dive in, explore the features, and start learning how to build smarter surgical robots!

