-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dexter Watkins
committed
Mar 29, 2018
1 parent
8af2eec
commit 66c903a
Showing
1 changed file
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,43 @@ | ||
# lib-serial | ||
Serial Port library for sending and receiving data. | ||
Serial Port library for sendind and receiving data | ||
================================= | ||
|
||
Install Build Tools | ||
------------------------- | ||
|
||
```bash | ||
sudo apt-get install python-catkin-tools | ||
``` | ||
|
||
Build Library: | ||
------------- | ||
|
||
```bash | ||
cd | ||
mkdir catkin_ws #if a workspace does not already exist | ||
cd catkin_ws | ||
git clone https://github.com/rosmod/lib-serial.git src/lib-serial | ||
catkin build serial | ||
``` | ||
|
||
Update Library: | ||
----------------- | ||
|
||
```bash | ||
cd ~/catkin_ws | ||
catkin clean serial | ||
cd src/lib-serial | ||
git pull | ||
cd .. | ||
catkin build serial | ||
``` | ||
|
||
|
||
Rosmod Source Library Setup: | ||
------------------------------- | ||
|
||
1. In this github repo navigate to [releases](https://github.com/rosmod/lib-serial/releases), right click on `serial.zip` (not the source code zip!) and select `Copy link address' | ||
2. In a rosmod project, drag in a new source library to the software model | ||
3. Paste the link in the url attribute | ||
4. Name the source library `serial` | ||
5. Drag the library into the `set editor` of any component that uses it | ||
6. In the forwards section of the component add `#include "serial/SerialPort.h"` |