Skip to content

Using Launch Files

CHARISMAlab edited this page Sep 21, 2018 · 3 revisions

These instructions are applicable to the all the guides listed above. Each of the following parts will need to be ran on their own terminal window/ or tab. The steps used to run a ChairBot are replicable for each ChairBot needed. All the steps are under the assumption the neato-botvac and raspberry pi are turned on, a PS4 controller is connected to the laptop via bluetooth, and both the laptop and the raspberry pi(s) are all connected to the same WiFi network. If not, please complete the steps mentioned above.

Laptop / Central Server

  1. Open a terminal window
  2. If the inet IP address of the computer is unknown
  • Run the command: sudo ifconfig
  • Locate the inet addr of wlan0
  1. Run the commands:
  • source ~/catkin_ws/devel/setup.bash
  • export ROS_IP=192.168.1.64 (local inet IP address)
  • export ROS_MASTER_URI=http://192.168.1.64:11311 (local inet IP address)
  1. Run the desired launch file
  • Ex: roslaunch central_server sub.launch
  • Choose from this list under Laptop / Main Computer

ChairBot / Raspberry Pi

  1. Open a new terminal window
  2. Ssh onto a raspberry pi
  1. Enter the password of the raspberry pi
  • All current passwords are: raspberry
  1. If the inet IP address of the raspberry pi is unknown
  • Run the command: sudo ifconfig
  • Locate the inet addr of wlan0
  1. Run the commands:
  • source ~/catkin_ws/devel/setup.bash
  • export ROS_IP=192.168.1.73 (local inet IP address)
  • export ROS_MASTER_URI=http://192.168.1.64:11311 (IP address of computer)
  1. Run the desired launch file
  • Ex: roslaunch neato_node sub.launch
  • Choose from this list under ChairBot / Raspberry Pi

Clone this wiki locally