Code Monkey home page Code Monkey logo

harmony_inboxgrasping_ros2's Introduction

Harmony_InBoxGrasping_ROS2

Dependencies

The code requires python>=3.10, as well as pytorch>=2.0.1 and 'CUDA Version: 12.0'

Install pytorch:

pip install torch torchvision 

Install Segment Anything:

pip install git+https://github.com/facebookresearch/segment-anything.git

The following optional dependencies are necessary for mask post-processing,

pip install opencv-python pycocotools numpy matplotlib onnxruntime onnx 

Also install open3d and scikit-image:

pip install open3d scikit-image

Click the links below to download the checkpoint for the corresponding model type.

After downloading, put the models into models/ folder which is next to the src folder. By defualt we used vit_b model, but it can be replaced by the others.

Compile and Running

To compile the code, use the following commands inside the directory:

cd Harmony_InBoxGrasping_ROS2
colcon build

When colcon has completed building successfully, the output will be in the install directory. Before you can use any of the installed executables or libraries, you will need to add them to your path and library paths using the following command:

source install/local_setup.bash 

and then run the service using the following command:

ros2 run rack_detection service

Then, open another terminal, go to the directory (Harmony_InBoxGrasping_ROS2), and again source the install directory:

cd Harmony_InBoxGrasping_ROS2
source install/local_setup.bash 

after sourcing, run the client node using the following command:

ros2 run rack_detection client 0 0 0

In case everything is working, you will see an image similar to the following: alt

Note that the three zeros in the client side (0 0 0) are a set of parameters used for debugging purposes.

Here is the video showing the performance in the real robot:

alt

The full video is available online here

harmony_inboxgrasping_ros2's People

Contributors

mohammadkasaei avatar hilbertxu avatar

Stargazers

Shinsuke Nakashima avatar

Watchers

Fabio Amadio 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.