Difference between revisions of "Testing procedure"

From Bike Wiki
Jump to navigation Jump to search
(thumbnail)
(rv image addition)
Line 1: Line 1:
 
The '''testing procedure''', transcribed from the spreadsheet in the drive.
 
The '''testing procedure''', transcribed from the spreadsheet in the drive.
 
[[File:Navigation algorithm running, Spring 2018.png|thumb]]
 
  
 
== Pre-test ==
 
== Pre-test ==

Revision as of 00:20, 9 April 2019

The testing procedure, transcribed from the spreadsheet in the drive.

Pre-test

  1. Collect testing bag
    • ethernet with dongle
    • car ACDC adapter
    • computer for sshing into the Pi (preferably a mac, but Dylan's laptop works fine too)
    • Voltmeter (multimeter with leads)
    • RC controller
    • spare batteries for RC
    • spare battery for Bike (charged to 29V)
    • tape (duct, masking)
  2. At any point during testing if the front wheel turns in an uncontrolled manner or does not respond after initialization:
    1. turn off front motor
    2. end the test using bash end.sh
    3. reset the arduino (button under corner of board)
    4. turn front motor back on
    5. re-start test using start.sh
    6. if this happens multiple times in a row:
    7. instead of resetting the arduino, unplug the battery (you will have to ssh into the pi again)
    8. Try running the startup procedure (up to and including bash start.sh) with the RC controller off - then turn the RC on
  3. If you have any issues, call:
    • Aviv for a testing question
    • Will/Olav/Dylan/Michelle/Aviv for a hardware question
    • Fotini for a navigation question
    • Jared/Pehuen for a ROS question

Pre-test checks (in lab)

  1. Connect to Locomotion Lab wifi (password is "walkingrobot" without quotes)
  2. Turn on bike using silver switch on back of ammo box to turn on the pi
  3. SSH into pi
    • If the pi is on Locomotion Lab wifi: open terminal and ssh pi@10.0.1.50 (password raspberry)
    • If the pi is on RPiwireless (its ad hoc network): see Connecting to the Pi#Ad hoc.
    • To change which network the pi uses:
      • If you want to get back to a wifi network (for connecting to Locomotion Lab) type the command below while logged into the pi:
        sudo cp /etc/network/interfaces-wifi /etc/network/interfaces
      • If you want to get back to an adhoc network, type the command below while logged into the pi:
        sudo cp /etc/network/interfaces-adhoc /etc/network/interfaces
      • NOTE: If you switch from ad-hoc to wifi or vice-a-versa you have to power cycle the pi in order to see changes!
  4. upload arduino code for testing then connect the pi to the arduino
  5. turn on front motor (check all three switches: e-stop, RC e-stop, rocker switch)
  6. run a test with bike on stand to make sure that data capturing is working
    1. in terminal: source start.sh & -- the '&' makes start.sh run in the background
    2. wait a few seconds until the console stops printing - you should see "process[recording-5]: started with pid [some number]"
    3. press enter to get back to command line
  7. check ROS topic to make sure data is published
    1. in terminal: "rostopic list"
    2. from this list check that rosnodes that you care about (ie for nav tests we care about bike state,gps,paths,and nav instr
    3. in terminal: "rostopic echo /bike_state"
    4. press control+c to get back to command line
  8. end the test
    1. in terminal: . end.sh
    2. wait for output to stop, then press enter to get your prompt back
  9. make sure all files from previous tests have been moved to old
    1. At terminal, run:
      roscd bike/bagfiles
      ls
    2. There should only be an "old" folder here; if not, run
      mv * old
      to move everything else into it, then
      cd
      to get back to the home directory.
  10. replace battery in bike with 29V battery

Copying not finished yet; check the spreadsheet for the rest