Giter Club home page Giter Club logo

pdc-ros's Introduction

pdc-ros

Setup

git clone https://github.com/RobotLocomotion/pdc-ros.git
cd pdc-ros
git submodule update --init --recursive
cd docker
./docker_build.py

Run a simple node to stream descriptor images

(To configure, edit config/trained_networks.yaml, and then NETWORK_NAME and RGB_TOPIC at the top of pdc_ros/src/pdc_ros/pdc_ros_simple_streaming.py)

./docker_run.py
use_all
cd ..
cd catkin_ws
catkin_make
use_all
python src/pdc_ros/nodes/simple_descriptor_streaming.py 

Run a node to respond to ROS actions to find best descriptor matches

./docker_run.py
use_all
cd ..
cd catkin_ws
catkin_make
use_all
python src/pdc_ros/nodes/find_best_match_node.py 

Running Caterpillar Tail Pick Demo

You can edit the file pdc_ros_wrapper.py in pdc-ros and choose which demo to run (ear, tail, shoe).

  1. Launch spartan and startup robot as usual.

  2. In pdc-ros container launch node to respond to ROS actions to find best descriptor matches.

cd ..
cd catkin_ws
catkin_make
use_all
python src/pdc_ros/nodes/find_best_match_node.py 
  1. Launch spartan_grasp container from manuelli user. Inside the spartan_grasp container do
use_ros
use_spartan_grasp
use_spartan_grasp_ros
roslaunch spartan_grasp_wrapper spartan_grasp_wrapper.launch
  1. In director use graspSupervisor.test_find_best_match_and_grasp_and_stow() to execute the pick.

Running Poser

  1. Launch spartan and startup robot as usual.

  2. In pdc-ros container launch node to respond to ROS actions to find best descriptor matches.

cd ..
cd catkin_ws
catkin_make
use_all
python src/pdc_ros/nodes/poser_server_node.py 
  1. Launch spartan_grasp container from manuelli user. Inside the spartan_grasp container do
use_ros
use_spartan_grasp
use_spartan_grasp_ros
roslaunch spartan_grasp_wrapper spartan_grasp_wrapper.launch
  1. In director use graspSupervisor.test_run_poser(). This will collect and RGBD image at the current location, then call poser.

  2. To visualize the results use graspSupervisor.visualize_poser_result()

  3. Re-orient the object to the desired configuration by running grasp_supervisor.test_run_manipulate_object().

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.