Skip to content

Commit

Permalink
Completed the Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayerFour committed Apr 5, 2016
1 parent adbc75b commit 4af6dd4
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/android_foo/control_app/src/main/res/raw/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ <h1 style="background-color:#000044;color:white">&nbsp;FAQ</h1>
<h3><font color="#000044">Why can't I connect to the robot?</font></h3>
<p>While this seems like a simple question, there are a variety of reasons for why you can't connect. Check all possibilities below before making further inquiries.</p>

<h4><font color="#000044">Are you connected to the correct Wi-Fi</font></h4>
<h5><font color="#000044">Are you connected to the correct Wi-Fi?</font></h5>
<p>This should be relatively easy to check. Make sure that your device and your computer are connected to the same network. Otherwise you will not be able to connect to the robot.</p>

<h5><font color="#000044">Do you have the correct IP address</font></h5>
<p>Make sure that you are inputting the IP address that goes with the Wi-Fi that you are connected to.</p>
<h5><font color="#000044">Do you have the correct IP address?</font></h5>
<p>Make sure that you are inputting the IP address of the ROS_IP environment variable if connecting to a simulator, or the IP address of the robot if connecting to a robot.</p>

<h3><font color="#000044">Did you input the Master URI properly?</font></h3>
<h5><font color="#000044">Did you input the Master URI properly?</font></h5>
<p>The only thing that you should remove is "localhost". That should be replaced with the IP address. (i.e. 132.45.531.5) </p>

<h4><font color="#000044">Do you have the newest version of the app?</font></h4>
<h5><font color="#000044">Do you have the newest version of the app?</font></h5>
<p>This may seem unnecessary but it could be important. It won't hurt at all to update to the newest version!</p>

<br>
42 changes: 38 additions & 4 deletions src/android_foo/control_app/src/main/res/raw/setup.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,48 @@
<!DOCTYPE html>
<html>
<body>
<link>

<h1 style="background-color:#000044;color:white">&nbsp;Setup</h1>

<p>Text</p>
<p>There are two ways to set up the app to be able to connect to a robot. You can use a simulated robot, or a real robot.</p>

<hr>

<h3><font color="#000044">Subtitle</font></h3>
<p>Text</p>
<h2><font color="#000044">Using a Simulated Robot</font></h2>
<p>It is likely easier to access a simulated robot rather than a real one, so follow these steps to set up a simulation</p>

<h4><font color="#000044">Step 1: Installing Ubuntu 14.04.3</font></h4>
<p>Download a 32 or 64 bit Ubuntu 14.04.3 iso, either will work, and install it on a physical computer or a virtual machine. The robot will move much much smoother if Ubuntu 14.04.3 is installed to a physical computer.</p>
<p>Note: If installing Ubuntu on a virtual machine, make sure that you use a Bridged Network Adapter and <b>NOT</b> an NAT adapter.</p>

<h4><font color="#000044">Step 2: Installing ROS Indigo</font> </h4>
<p>Once you have Ubuntu installed, follow these instructions to install ROS Indigo on your machine.</p>
<a href="http://wiki.ros.org/indigo/Installation/Ubuntu"> http://wiki.ros.org/indigo/Installation/Ubuntu</a>

<h4><font color="#000044">Step 3: Installing the Husky Robot Simulator</font></h4>
<p>To install the simulator open a terminal and run the command <b>sudo apt-get install ros-indigo-husky-simulator</b></p>

<h4><font color="#000044">Step 4: Setting Up Your Web-cam as the Robot's Camera (Optional) </font> </h4>
<p>To set up your web-cam can be a hassle, and the app will work fine without it set up, you just will see whitespace where the camera view would be.
To set it up follow the instruction links from the link below to our GitHub page to set up a workspace and to install the ROS web-cam software.</p>
<a href="https://github.com/SCCapstone/RobotCA/wiki/Tutorial-For-Simulating-the-Husky-Robot"> https://github.com/SCCapstone/RobotCA/wiki/Tutorial-For-Simulating-the-Husky-Robot</a>


<h4><font color="#000044">Step 5: Launching the Simulator</font> </h4>
<p>To begin open a terminal and run the command <b>ifconfig</b>, then run the command <b>export ROS_IP="the IP address of wlan0".</b>
Once you have done that, start ROS in the same terminal using the command <b>roscore&</b>. If you chose to set up the camera you can start it using <b>roslaunch ./camera_node.launch&</b>. Finally start the husky simulator using the command <b>roslaunch husky_gazebo husky_playpen.launch&</b>.</p>
<p>Note: Sometimes, on the very first launch of the husky simulator ever it may not work. That's okay, just re-run the command to start it and it should work.</p>

<h4><font color="#000044">Step 6: Connecting to the Simulated Robot</font> </h4>
<p>To connect to the simulator, make sure that your computer running the simulator and your Android device are on the same wifi network first. Then, open the app and click the add a robot button. When the prompt pops up, replace only the word "localhost" with the same IP address that you set
your ROS_IP environment variable to earlier. Hit connect and you should connect to the simulated robot and be able to use the app. </p>

<h2><font color="#000044">Using a Real Robot</font></h2>
<p>As far as connecting to a robot goes, it will be easier to connect to a real robot, but accessing one will be much harder</p>

<h4><font color="#000044">Step 1: Connecting to the Robot</font> </h4>
<p>To connect to the robot, make sure your Android device is on the robot's wifi network. Then open the app and add a robot. Replace only the word "localhost" with the IP address of the robot and hit connect. You should connect to the robot and be able to use the app. </p>



<br>

0 comments on commit 4af6dd4

Please sign in to comment.