Difference between revisions of "Testing procedure"
Jump to navigation
Jump to search
(content) |
(→Pre-test checks (in lab): finish section) |
||
Line 34: | Line 34: | ||
#* If the pi is on RPiwireless (its ad hoc network): see [[Connecting to the Pi#Ad hoc]]. | #* If the pi is on RPiwireless (its ad hoc network): see [[Connecting to the Pi#Ad hoc]]. | ||
#* To change which network the pi uses: | #* 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:< | + | #** If you want to get back to a wifi network (for connecting to Locomotion Lab) type the command below while logged into the pi:<pre>sudo cp /etc/network/interfaces-wifi /etc/network/interfaces</pre> |
− | #** If you want to get back to an adhoc network, type the command below while logged into the pi: < | + | #** If you want to get back to an adhoc network, type the command below while logged into the pi: <pre>sudo cp /etc/network/interfaces-adhoc /etc/network/interfaces</pre> |
#** '''''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!'' | #** '''''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!'' | ||
+ | # upload arduino code for testing then connect the pi to the arduino | ||
+ | # turn on front motor (check all three switches: e-stop, RC e-stop, rocker switch) | ||
+ | # run a test with bike on stand to make sure that data capturing is working | ||
+ | ## in terminal: <code>source start.sh &</code> -- the '&' makes start.sh run in the background | ||
+ | ## wait a few seconds until the console stops printing - you should see "process[recording-5]: started with pid [some number]" | ||
+ | ## press enter to get back to command line | ||
+ | # check ROS topic to make sure data is published | ||
+ | ## in terminal: "rostopic list" | ||
+ | ## from this list check that rosnodes that you care about (ie for nav tests we care about bike state,gps,paths,and nav instr | ||
+ | ## in terminal: "rostopic echo /bike_state" | ||
+ | ## press control+c to get back to command line | ||
+ | # end the test | ||
+ | ## in terminal: <code>. end.sh</code> | ||
+ | ## wait for output to stop, then press enter to get your prompt back | ||
# make sure all files from previous tests have been moved to old | # make sure all files from previous tests have been moved to old | ||
+ | ## At terminal, run: <pre>roscd bike/bagfiles ls</pre> | ||
+ | ## There should only be an "old" folder here; if not, run <pre>mv * old</pre> to move everything else into it, then <pre>cd</pre> to get back to the home directory. | ||
+ | # replace battery in bike with 29V battery | ||
<big>'''''Copying not finished yet; check [https://docs.google.com/spreadsheets/d/11Q451pz66r5thVzmVkAmXt9ccyd-e36efOqyrDJ1nnU/edit the spreadsheet] for the rest'''''</big> | <big>'''''Copying not finished yet; check [https://docs.google.com/spreadsheets/d/11Q451pz66r5thVzmVkAmXt9ccyd-e36efOqyrDJ1nnU/edit the spreadsheet] for the rest'''''</big> |
Revision as of 03:43, 5 April 2019
The testing procedure, transcribed from the spreadsheet in the drive.
Pre-test
- 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)
- At any point during testing if the front wheel turns in an uncontrolled manner or does not respond after initialization:
- turn off front motor
- end the test using bash end.sh
- reset the arduino (button under corner of board)
- turn front motor back on
- re-start test using start.sh
- if this happens multiple times in a row:
- instead of resetting the arduino, unplug the battery (you will have to ssh into the pi again)
- Try running the startup procedure (up to and including bash start.sh) with the RC controller off - then turn the RC on
- 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)
- Connect to Locomotion Lab wifi (password is "walkingrobot" without quotes)
- Turn on bike using silver switch on back of ammo box to turn on the pi
- SSH into pi
- If the pi is on Locomotion Lab wifi: open terminal and
ssh pi@10.0.1.50
(passwordraspberry
) - 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!
- If you want to get back to a wifi network (for connecting to Locomotion Lab) type the command below while logged into the pi:
- If the pi is on Locomotion Lab wifi: open terminal and
- upload arduino code for testing then connect the pi to the arduino
- turn on front motor (check all three switches: e-stop, RC e-stop, rocker switch)
- run a test with bike on stand to make sure that data capturing is working
- in terminal:
source start.sh &
-- the '&' makes start.sh run in the background - wait a few seconds until the console stops printing - you should see "process[recording-5]: started with pid [some number]"
- press enter to get back to command line
- in terminal:
- check ROS topic to make sure data is published
- in terminal: "rostopic list"
- from this list check that rosnodes that you care about (ie for nav tests we care about bike state,gps,paths,and nav instr
- in terminal: "rostopic echo /bike_state"
- press control+c to get back to command line
- end the test
- in terminal:
. end.sh
- wait for output to stop, then press enter to get your prompt back
- in terminal:
- make sure all files from previous tests have been moved to old
- At terminal, run:
roscd bike/bagfiles ls
- There should only be an "old" folder here; if not, run
mv * old
to move everything else into it, thencd
to get back to the home directory.
- At terminal, run:
- replace battery in bike with 29V battery
Copying not finished yet; check the spreadsheet for the rest