Code Monkey home page Code Monkey logo

accel-challenge's Introduction

Overview

This is code of CUHK team for AccelNet2022, targeting to solve tasks of suturing autonomy in simulation environment. Please check out our project website

  • Citation
@inproceedings{hlin2022Accel,
  title={{Open-source High-precision Autonomous Suturing Framework With Visual Guidance}},
  author={Lin, Hongbin and Li, Bin and Liu, Yunhui  and Kwok Wai Samuel Au},
  booktitle={IEEE Int. Conf. Robotics and Automation (ICRA) Workshop on ``A Panacea Or An Alchemy? Benefits And Risks Of Robot Learning In Medical Applications''},
  year={2022}
}

Dowload

  • open a terminal

    cd
    git clone https://github.com/linhongbin-ws/accel-challenge.git
    cd <path to accel-challenge>
    git clone https://github.com/collaborative-robotics/surgical_robotics_challenge.git
  • Since our trained model is large, we put all trained model on the cloud. Please download them from google cloud and merge to model folder to the local directory <path to accel-challenge>/model/

Install

  • Install ambf

  • create conda virtual environment python=3.7 .

    conda create -n accel_challenge python=3.7
    conda activate accel_challenge
    pip install torch==1.8.2 torchvision==0.9.2 torchaudio==0.8.2 --extra-index-url https://download.pytorch.org/whl/lts/1.8/cu111
    python -m pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu111/torch1.8/index.html  
    pip install scikit-image
    pip install -r requirements.txt
  • Install PyKDL on virtual environment from source, follow the instruction

    (note: make sure to uninstall the ros-kdl packages in the system before install PyKDL:

    sudo find / -iname PyKDL.so # this will print out all paths to PyKDL.so
    sudo rm -rf <path to>/PyKDL.so
  • Install surgical_robot_challenge

    cd <path to surgical_robotics_challenge>/scripts/
    pip install -e .
  • Install accel-challenge

    cd <path to accel-challenge>
    conda install -c conda-forge wxpython # deeplabcut depends on this package
    pip install -r requirements.txt
    pip install -e .
  • modify a minor in original surgical_robotics_challenge, edit file <path to surgical_robotics_challenge>/scripts/surgical_robotics_challenge/launch_crtk_interface.py from

    import psm_arm
    import ecm_arm
    import scene

    to

    from surgical_robotics_challenge import psm_arm
    from surgical_robotics_challenge import ecm_arm
    from surgical_robotics_challenge import scene
  • modify the file <path to accel-challenge>/accel_challenge/bash/user_var.sh, there are several path variables. You need to modify according to your enviroment path.
    AMBF_PATH="/home/ben/ssd/code/robot/ambf"
    SURGICAL_CHALLENGE_PATH='/home/ben/ssd/code/robot/accel-challenge/surgical_robotics_challenge'
    ANACONDA_PATH="/home/ben/anaconda3" 
    ENV_NAME="accel_challenge" # conda virtual environment name

How to Run

  • To run Challenge #1, please refer to README
  • To run Challenge #2, please refer to README
  • To run Challenge #3, please refer to README

accel-challenge's People

Contributors

linhongbin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.