Skip to content

cwru-robotics/dvrk_structure_light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dvrk_structure_light

package for structure light research and devolopment

Nodes

The nodes in this package are categorized as test nodes, data collection nodes, decoding nodes, and hybrid nodes

Test nodes

  • pattern_display_test

    hase a python and cp version are importan for calibrating the area where the pattern is projected. The python version is more elaborate, up to date and can easily be modified and costumized for development. Modify the path for a test pattern, and modiffy the projection size, location, etc.

  • gray_code_pattern_out_test

    Tests the computation and projection of graycode patterns on the surgical scene.

Data Collection Nodes

  • gray_code_pattern_capture

    Code written based on the tutorial from open cv. https://docs.opencv.org/4.x/db/d56/tutorial_capture_graycode_pattern.html

  • stereo_gray_code_pattern

    For computing the structured light using the stereo cameras in da vinci endoscope

  • single_camera_position#

    Three nodes for recording the gray patern codes from three camera positions. This is worth cleaning and combining into a single code, which would be my next step.

Decoding Nodes

Hybrid Nodes

Example run

rosrun dvrk_structured_light <node_name>

data collection script file

This file automates moving the camera and recording the data consists of stereo images and positions of the endoscope

To setup the experiment follow these steps:

  • Open two terminals and exprot ros master, connecting with the main control computer: export ROS_MASTER_URI=http://129.22.143.140:11311

  • In the first terminal start the camera: roslaunch hw_camera run_camera.launch

  • In the second terminal reset the endoscope to the first position (to udjust the camera focus and seetings), cd to where you want to collect the data and run the bash script. for example:

rosrun cwru_dvrk_control go_ecm 0.0 -1 0.00 0 1
cd ~/Data
bash ~/ros_ws/src/dvrk_structure_light/data_collection.bash > data.txt

About

package for structure light projecting in da vinci

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published