- Power on the Ubuntu 14.04 machine and log in.
- Plug in the Raspberry Pi (RPi). Also, make sure that it is connected to the Ubuntu machine via ethernet cable. In the Wifi menu at the top right of the Ubuntu machine, make sure that 'RPi' is selected.
- Plug in the XBox Kinect. A green LED on the Kinect should light up. If this light does not appear, trace the wire and check its connection. Also, make sure that it is connected to the Ubuntu machine via USB.
- Open up 2 terminal windows on the Ubuntu machine.
- In the first terminal, navigate to
~/kinect_arm/app/. - Run
./sshRPi.shto ssh into the RPi. You will have to type the password (trumpet1). - On the RPi, run
./runServer.shand leave it alone. - In the second terminal window, navigate to
~/kinect_arm/app/. This is where you will run your application (ex greedyScan.py).
- On the Ubuntu machine, in the terminal window that is logged into the RPi via ssh
- Kill the motorSever by hitting Ctrl+c.
- Run
./shutdown.sh. - Run
exitto close the ssh connection. - Close the terminal window on the Ubuntu machine.
- Wait 10 seconds, double check that you have completed Step 1, then unplug the RPi.
- Unplug the XBox Kinect.
**1. The power block for the linear actuators and stepper motor is connected to a relay switch. When motorServer.py accepts a connection from the Ubuntu machine, GPIO 12 (pin 32) is set to HIGH. This pin is connected to the power relay and signals the power relay to turn the "normally OFF" plugs to ON.
2. Follow proper steps for powering off the RPi.
- If you do not do this, the RPi may be stuck in recovery mode. If this happens, you will need to plug a keyboard, monitor, and mouse into the RPi to diagnose the issue and escape recovery mode.
- Turn the system on. Make sure to follow the steps above.
- Navigate to
~/kinect_arm/app/greedyScan/. - Run
./greedyScan.py.- Every time you run greedyScan, a new folder will be created inside of
/cameraarm/collected_data/new_folderand all scanned image files are stored inside this new folder.- By default,
new_folderwill be namedoutput. - Command line argument,
argv[1]allows you to specify the name of the new folder that you would like to save your scanned images in.- Again, leaving
argv[1]blank will default save folder name to/output. This will save the files to./cameraarm/collected_data/output.- Ex:
./greedyScan.py
- Ex:
- To save files in a folder called
folder1, makeargv[1]folder1.- Ex:
./greedyScan.py folder1
- Ex:
- Again, leaving
- By default,
- Every time you run greedyScan, a new folder will be created inside of
Running kinectScan will start saving .pcl files in whatever directory you call kinectScan from. Continue editing this a lot
Component list
Wiring diagram
What powers what RPi power is separate plug Arduino draws its power from RPi via USB. Hitec servo gearbox draws power from Arduino.
Motor ranges
Describe how Kinect captures images -how to install necessary software -how to compile KinectScan.cpp -Openni Kinect image capture -where images are stored
Applications: Motorgui -describe what it is used for -it also opens up pcl viewer as subprocess -set argv[1]= noCam to start GUI without pcl viewer -tkinter
- how to install, what is required -how it connects with motorseverclient
Greedyscan: -what does it do -how they can communicate with motorseverclient -function calls in motorseverclient -be careful of initial position of arm -describe necessary wait times
- Ubuntu 14.04 machine
- Xbox Kinect
- Raspberry Pi
- Arduino Uno
- Nema 23 stepper
- Servo City Linear Actuators (2x)
- Hitec HS-785HB servo with gearbox
- M542T stepper motor Driver
- Actobotics Dual Motor Controller
- Used with the two Servo City Linear Actuators
- https://www.servocity.com/actoboticsr-dual-motor-controller-assembled
(image of the switches) also include diagram
(image of the jumpers)
- connects to GPIO pin 12 (pin 32 on the Raspberry Pi)
- connects to ground The linear actuator and stepper motor power block connects to one of the "Normally OFF" plugs on the power relay switch.


