GithubHelp home page GithubHelp logo

prostatebrp / brpprostatenav Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tokjun/brpprostatenav

0.0 3.0 0.0 176 KB

3D Slicer module for MRI-guided robotic prostate intervention

C++ 100.00%

brpprostatenav's Introduction

BRPProstateNav

3D Slicer module for MRI-guided robotic prostate intervention.

Protocol

The following page shows message exchange diagram for the communication between 3D Slicer (and other navigation software) and the robot in each workhpase.

http://wiki.na-mic.org/Wiki/index.php/ProstateBRP_OpenIGTLink_Communication_June_2013

Session Manager Node

Overview

BRPProstateNav manages the communication between 3D Slicer and external robot software through a IGTLSessionManagerNode node. The roles of the IGTLSessionManagerNode are as follows:

  • Observes an IGTL connector node for the communication.
  • Create MRML nodes that will hold incoming and outgoing message data and register them to the IGTL connector.
  • Call message handler when an OpenIGTLink message has been received.

The IGTLSessionManagerNode is wrapped by Python, so that a user can call it's API from 3D Slicer's Python Interactor.

Example

Currently, you can push a command message from the Python Interactor. After opening "BRPProstateNav" module, open the Python Interactor and type in the following lines:

>>> from vtkSlicerBRPProstateNavModuleMRMLPython import *
>>> scene = slicer.mrmlScene
>>> cnode = scene.GetNodeByID('vtkMRMLIGTLConnectorNode1')
>>> sm = vtkMRMLIGTLSessionManagerNode()
>>> scene.AddNode(sm)
>>> sm.SetAndObserveConnectorNodeID(cnode.GetID())

To send workphase commands, the following functions can be used:

  • virtual int SendStartUpCommand();
  • virtual int SendPlanningCommand();
  • virtual int SendCalibrationCommand();
  • virtual int SendCalibrationTransform(vtkMatrix4x4* transform);
  • virtual int SendTargetingCommand();
  • virtual int SendTargetingTarget(double r, double a, double s);
  • virtual int SendTargetingMove();
  • virtual int SendManualCommand();
  • virtual int SendStopCommand();
  • virtual int SendEmergencyCommand();
  • virtual int SendGetStatusCommand();

Plans

Currently, the node is developed as part of BRPProstateNav () and LightWeightRobotIGT (https://github.com/SNRLab/LightWeightRobotIGT ) projects separately. The SessionManagerNode will become a parent class for all application-specific session management classes and integrated into OpenIGTLinkIF module.

brpprostatenav's People

Contributors

tokjun avatar

Watchers

James Cloos avatar  avatar  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.