GithubHelp home page GithubHelp logo

coursework-ros's Introduction

This document outlines the requirements and steps to execute the end-to-end pipeline and visual validation of the calculated trajectory for the project. It also discusses unit testing and includes notes on the creation of the work space and individual packages.

Requirements

To install the necessary requirements for this project, use the pip command as follows: pip install -r requirements.txt

End-to-End Pipeline

You can execute the entire pipeline by running the shell script: source pipeline.sh

Please note that the pipeline requires Torch with CUDA drivers installed. The pipeline does not include the Visual Validation of the calculated trajectory, which must be run separately.

Visual Validation of the Calculated Trajectory

To perform visual validation, you need to:

  1. Plan the path (if the pipeline hasn't been run): python 1_plan_path.py
  2. Show volume: python 2_show_volume.py

This process ideally opens three browser windows in the terminal, each displaying the trajectory and one structure.

Unit Test

To conduct a unit test for the check_intersect_batch function, which is the main function that selects the trajectory meeting the desired constraints, use the following command: python test.py Detailed descriptions of the function and its operations can be found in the docstrings and inline comments in the script.

Critical Structure Avoidance

Critical Structure

Video Demo of Moving the Arm

Watch the video

Video Demo of the End Effector Orientation Error

Watch the video Note: as mention in the discussion of the report, there is a small error incalculating the orientation of the needle remaining unsolved.


Repository Development Notes

Below are some notes associated with the development of the repository, covering aspects such as workspace creation, package creation, and ROS topics.

Workspace Creation

The workspace was created using the catkin_make command, which generated the following directories:

  • src and src/CMakeLists.txt
  • devel
  • build

Package Creation

All packages were created within the src folder. New directories were made using the command: catkin_create_pkg package_name dependencies

ROS Topics

To display a list of ROS topics, use: rostopic list To echo data from a particular topic, use: rostopic echo topic_name

coursework-ros's People

Contributors

don-yin avatar

Watchers

 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.