Giter Club home page Giter Club logo

autoupdatepubipforros's Introduction

This package assumes the following:

  • You are attempting to develope a remote ROS nework through Port-Forwarding. That is: connecting a mobile robot (Master) remotely to the computer through Port-Forwarding.
  • However, you don't always use this remote network, and sometimes you switch back to the local network for testing.
  • In the remote ROS network, the following is true:
  • The mobile robot (ROS robot), set as the ROS master, uses a portable modem with a dynamically changing IP address
  • The computer, a desktop or laptop, that attempts to connect to the robot remotely (through the internet) via Port-Forwarding, it is using another connection to the cloud (corportate, or home, or something else)
  • You have a Cloud-based storage facility, such as Dropbox. The scripts in this package use Dropbox.
  • Because the robot's IP address is dynamically changing, the definitino of the ROS_MASTER_URI, as well as the hosts settings must be updated everytime the portable modem is restarted
  • Also, becuase you switch back and forthh between local and remote networks, you also require a quick way to apply settings and configuration changes

COMPONENTS: there are 4 main scripts here, and 2 secondary shell scripts

  • masterScript: a script that heeps treack of Turtlebot's public IP address, to be installed on Turtlebot's netbook
  • memberScript: a script that heeps treack of Turtlebot's public IP address, to be installed on the computer networking with Turtlebot
  • ROS_networkSelector_master: an upgrade of the masterScript, it auto-detect the changes in the IP of the robot, as well as the type of network (remote or local ROS networks), and applies the ROS and Linux changes accordingly, on the ROSmaster
  • ROS_networkSelector_member: an upgradae of teh memberScript, it auto-detect the changes in the IP of the robot, as well as the type of network (remote or local ROS networks), and applies the ROS and Linux changes accordingly, on the member
  • remHost.sh: a shell script to remove a host with the old IP address to /etc/hosts
  • addHost.sh: a shell script to add a new host with the latest IP address to /etc/hosts

INSTALLATION: just copy the required scripts into the bash file of each computer of the ROS network, (1 & 2 or 3 & 4, depending on the needed functionality), paying attentions to the following:

  • These scripts call on various txt files that need to be in place in a cloud storage facility, such as Dropbox. As such, to avoid errors, create blank files with the correct names, or simply ignore the initial errors (complaining the files do not exist), as they will be created by the script eventually.
  • The names of these txt files, the path to the cloud folder, and the names of the hosts are defined based on my environment, you may need to change these to match ur environment
  • the secondary shell script files (addHost.sh and remHost.sh) need to be installed and set as executables, also the path to them must be added to $PATH. Google "creating a new shell script for more information"

autoupdatepubipforros's People

Contributors

sami-s-hajjaj 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.