GithubHelp home page GithubHelp logo

collision_detect's Introduction

collision_detect

Getting Started

cd PATH_TO_CATKIN_WS/src
git clone https://github.com/trns1997/collision_detect.git
cd ..
catkin_make 

Make sure to source the catkin_ws. Check if the collision_detect package is properly setup by trying:

roscd collision_detect/

Running the Nodes

Terminal 1

roslaunch collision_detect collision_detect.launch

Terminal 2

rosbag play PATH_TO_CATKIN_WS/src/collision_detect/bag project.bag

use -r flag to speed up the play speed if you please.

Terminal 3

rostopic echo /DistStatus

View the following video to see the steps and the result. But heres the gif version if you are lazy to click the vid:

Under the Hood

Nodes and Topics

rosrun rqt_graph rqt_graph

Ros Service Structure

srv/GetDist.srv

float32 carEnu_x
float32 carEnu_y
float32 carEnu_z
float32 obsEnu_x
float32 obsEnu_y
float32 obsEnu_z
---
float32 dist  

The service takes 3D Enu coordinates of the Car and the Obstacle and as response outputs the Distance between the 2 objects.

Ros Message Structure

msg/collisionInfo.msg

float32 dist
string flag

The custom messasge comprises of the Distance between the Car and Obstacle, And a Status Flag that categorizes the distance between the 2 objects as either Safe or Unsafe or Crash.

Dynamic Reconfigure Gui

This gui allows you to change the **Min Safety Distace** and the **Max Crash Distance** between the Car and Obstacles.

Tf Tree

rosrun rqt_tf_tree rqt_tf_tree

Team Members

  • Thomas Narayana Swamy - 10709057
  • Felippe Francesconi - 10527268
  • Rudolfo Félix - 10732154

collision_detect's People

Stargazers

 avatar

Watchers

 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.