Welcome to the GitHub Repo for the RPiMapper Project. Here's a quick run down of where everything is and how to get started.
Folder | Contents |
---|---|
Matlab | Contains the code that runs on the host computer |
docs | Project website files |
socketDemo | Quick demo showing socket communications between two computer |
socket_stream | Contains the code that runs on the Raspberry Pi |
sonarMain | Contains the code that runs on the Arduino |
On the Raspberry Pi
- Clone the repo
https://github.com/awadell1/RPiMapper.git
- cd into
/socke_stream
- Run
bash compile.sh
to compile the source code withgcc
- Start the control program with
./socketStream
On the host computer:
- Install MATLAB (Developed on 2016a) and Arduino IDE
- Clone the repo
https://github.com/awadell1/RPiMapper.git
- Using the Arduino IDE write sonarMain.ino (It's in
/sonarMain
) to the Arduino nano. - Open the
/Matlab
directory in MATLAB - Connect to the robot using
robot = Robot(ROBOT IP ADDRESS HERE)
- Enter
freedriveProgram
into the console to start the mapping program - Use your arrow keys to move around and watch as RPiMapper maps the envirorment
You should now be able to drive RPiMapper and while mapping your envirorment.