GithubHelp home page GithubHelp logo

danielsnider / urc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcenalau/urc

14.0 3.0 10.0 59.76 MB

Arduino 0.25% CMake 1.02% C++ 1.49% Shell 0.14% Python 41.28% Uno 0.01% JavaScript 0.54% HTML 55.24% C 0.04%

urc's Introduction

Team R3 Rover for URC 2017

For additional documentation please see: https://github.com/danielsnider/ros-rover or our book chapter documentation.

R3 ROS Workspace

Launch ALL components (best usage pattern)

On the rover:

$ cd URC/
$ mux

On the teleoperator's computer:

$ cd URC/devstuff/dan/
$ mux

For more information about our use of tmux see section 16.1 here.

Launch individual components

GPS

$ roslaunch rover gps.launch
# Output topic
$ rostopic echo gps/fix

IMU

$ roslaunch rtimulib_ros rtimulib_ros.launch
# View output
rostopic echo imu/data
$ ~/RTIMULib/Linux/build-RTIMULibDemoGL-Desktop-Debug/Output/RTIMULibDemoGL # Graphical vizualization

rtabmap

$ roslaunch rover_rtabmap_config navigation.launch
# View output
$ roslaunch rover_rtabmap_config mapping_rviz.launch

Overlay scale and bearing

$ python ~/URC/devstuff/components/ImageOverlay/overlay_scale_and_compass.py
# View output
$ rqt_image_view /science/overlay/compressed

RAMSBOT

  1. Plug in the joystick to your computer
  2. laptop$ source ./URC/scripts/set_robot_as_ROS_master.sh
  3. Roslaunch the joy_teleoperation node where you have the joystick connected by USB
laptop$ roslaunch teleoperation joy_teleoperation.launch
  1. Roslaunch the ramsbot_test.launch on the TX1 where the arduino connects to the motors
tx1$ roslaunch rover_drive ramsbot_test.launch
# View output
$ rostopic echo cmd_vel

Temperature Sensor

$ rosrun rover_science save_temp.py _description:=site1
# View output
$ cat *_temperature.txt

pH Sensor

$ rosrun rover_science save_ph.py _description:=site1
# View output
$ cat *_ph.txt

All USB Cameras

$ roslaunch rover usb_cameras.launch
# View output
rqt --perspective-file URC/devstuff/dan/gui_configs/rqt_all_cameras.perspective

ZED Camera

$ roslaunch rover zed_up.launch
# View output: there are many ways...
1) video stream: usq rqt or rviz
2) point cloud: use rviz
3) odometry: use rviz

Usage and layout

The wiki

The wiki contains a lot more information than this file. Go check it out!

Layout

The layout of this repo is like this:

Path What it is
rosws/ The main ros workspace
rosws/src All the catkin packages, NOT all the nodes
rosws/.gitignore A simple gitignore to keep per-system directories out of the repo
microcontroller/ All of the microcontroller (arduino) related things, grouped by device.
scripts/ Various useful scripts to use this repo for maximum productivity!
devstuff/ General other stuff that you want to put on git. The original git repo is copied here as well.

First clone

When you first clone this, you will want to run scripts/setup_firsttime.sh from the root directory. It will then setup everything.

Arduino things

If you want to update one arduino, go into its directory, and use the command $ pio run --target upload. On the TX1, however, we know where all the arduinos are plugged in and a script (coming soon) will auto-update all of them.

Build everything

Use the script scripts/build.sh. If a build fails, it will ask you if you want to continue.

More documentation?

If we need more, or you just want to say something, you can use slack, or put it in the wiki for this repo. I might put a page about what to put in a package soon.

P.S

Don't be a litterbug, keep general development... stuff in the devstuff/ folder, and keep the structured code in the right directory!

Network IP Addresses (private network)

Device IP Username Password
Rocket M2 UBNT-ROBOT 192.168.137.2 ubnt robotrobot
Rocket M2 UBNT-BASESTATION 192.168.137.3 ubnt robotrobot
Jetson TX1 (old) 192.168.137.212 ubuntu ubuntu
Jetson TX1 (old) VPN 192.168.255.10 ubuntu ubuntu
Jetson TX1 (new) 192.168.137.213 ubuntu ubuntu
Jeston TX1 (new) VPN 192.168.255.18 ubuntu ubuntu
TP-link 1 192.168.0.254 admin admin
TP-link 2 192.168.0.253 admin admin
Daniel's Laptop 192.167.137.10
Gabe's laptop 192.167.137.22

urc's People

Contributors

danielsnider avatar dentropy avatar gabecasciano avatar hamzamahdi avatar mincrmatt12 avatar yanga001 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.