-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Formal-Systems-Laboratory/cleanup
Cleanup
- Loading branch information
Showing
44 changed files
with
2,338 additions
and
4,012 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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
# Taken from: https://github.com/davetcoleman/roscpp_code_format/blob/master/.clang-format | ||
|
||
BasedOnStyle: Google | ||
AccessModifierOffset: -2 | ||
ConstructorInitializerIndentWidth: 2 | ||
AlignEscapedNewlinesLeft: false | ||
AlignTrailingComments: true | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakTemplateDeclarations: true | ||
AlwaysBreakBeforeMultilineStrings: false | ||
BreakBeforeBinaryOperators: false | ||
BreakBeforeTernaryOperators: false | ||
BreakConstructorInitializersBeforeComma: true | ||
BinPackParameters: true | ||
ColumnLimit: 120 | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
DerivePointerBinding: false | ||
PointerBindsToType: true | ||
ExperimentalAutoDetectBinPacking: false | ||
IndentCaseLabels: true | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: None | ||
ObjCSpaceBeforeProtocolList: true | ||
PenaltyBreakBeforeFirstCallParameter: 19 | ||
PenaltyBreakComment: 60 | ||
PenaltyBreakString: 1 | ||
PenaltyBreakFirstLessLess: 1000 | ||
PenaltyExcessCharacter: 1000 | ||
PenaltyReturnTypeOnItsOwnLine: 90 | ||
SpacesBeforeTrailingComments: 2 | ||
Cpp11BracedListStyle: false | ||
Standard: Auto | ||
IndentWidth: 2 | ||
TabWidth: 2 | ||
UseTab: Never | ||
IndentFunctionDeclarationAfterType: false | ||
SpacesInParentheses: false | ||
SpacesInAngles: false | ||
SpaceInEmptyParentheses: false | ||
SpacesInCStyleCastParentheses: false | ||
SpaceAfterControlStatementKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
ContinuationIndentWidth: 4 | ||
SortIncludes: false | ||
SpaceAfterCStyleCast: false | ||
|
||
# Configure each individual brace in BraceWrapping | ||
BreakBeforeBraces: Custom | ||
|
||
# Control of individual brace wrapping cases | ||
BraceWrapping: { | ||
AfterClass: 'true' | ||
AfterControlStatement: 'true' | ||
AfterEnum : 'true' | ||
AfterFunction : 'true' | ||
AfterNamespace : 'true' | ||
AfterStruct : 'true' | ||
AfterUnion : 'true' | ||
BeforeCatch : 'true' | ||
BeforeElse : 'true' | ||
IndentBraces : 'false' | ||
} | ||
... |
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 |
---|---|---|
|
@@ -9,5 +9,7 @@ | |
|
||
# Dev artifacts | ||
tags | ||
/src/RVMaster/__pycache__/ | ||
__pycache__/ | ||
*~ | ||
*.iml | ||
|
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,35 +1,44 @@ | ||
# Installing ROSRV | ||
|
||
Here are instructions for installing and building ROSRV by checking out its | ||
Here are instructions for installing and building ROSRV by checking out its | ||
source code on GitHub. | ||
|
||
## Prerequisites | ||
|
||
ROSRV currently works with ROS Groovy Galapagos release. For monitoring | ||
purposes, ROSRV depends on ROSMOP. | ||
### Core Prerequisites | ||
|
||
1. [Git](http://git-scm.com/book/en/Getting-Started-Installing-Git) | ||
v.1.8 or higher | ||
* Check Git is installed properly: run `git` from a terminal. | ||
2. [ROS Groovy Galapagos](http://wiki.ros.org/groovy) | ||
3. [ROSMOP](http://fsl.cs.illinois.edu/index.php/ROSMOP) | ||
* Please check the | ||
[ROSMOP Installation guide](https://github.com/runtimeverification/rosmop/blob/master/INSTALL.md). | ||
1. [ROS Kinetic](http://wiki.ros.org/kinetic) | ||
2. [PyTest](https://docs.pytest.org/) | ||
3. [Maven](https://maven.apache.org) | ||
4. [Catkin](http://wiki.ros.org/catkin) | ||
|
||
### RV-Monitor | ||
|
||
1. [RV-Monitor](https://github.com/runtimeverification/rv-monitor) | ||
To use RV-Monitor supported logics RV-Monitor install RV-Monitor | ||
using the instructions at the tool's page (use `mvn install` | ||
to install snapshot to local maven repository). | ||
Set environment variable `RVMONITOR` to point to `rv-monitor's` | ||
root directory. | ||
|
||
## Install and Build | ||
|
||
1. Run `git clone --recursive https://github.com/runtimeverification/ROSRV.git` | ||
to check out the source code from the Github repository, including | ||
[ROSMOP](https://github.com/runtimeverification/rosmop). | ||
1. After Installing Prerequisites, run `./Test` to | ||
Build and Run Tests. | ||
|
||
2. Add `<ROSRV_HOME>/bin` to your PATH. | ||
2. The default behavior of the testing setup is to run | ||
all tests. Use `PYTEST_FLAGS="--skip-dl-tests"` to | ||
skip Differential Dynamic Logic based tests. | ||
|
||
3. Run | ||
* `cd <ROSRV_HOME>` | ||
* `catkin_make` | ||
### Running | ||
ROSRV can simply be treated as a catkin project, and | ||
dropped into an existing catkin workspace. | ||
|
||
4. Make sure the target package builds successfully. | ||
The `bin/rosrv` provides a wrapper to the | ||
C++ code generator. For example `bin/rosrv <SPEC_FILE> -o [MONITOR_NAME]` | ||
will generate a monitor `MONITOR_NAME` which can be run | ||
via catkin as `catkin run rvmonitor <MONITOR_NAME>`. | ||
|
||
See [docs/Usage.md](docs/Usage.md) for information on how to run ROSRV. | ||
See [docs/Usage.md](docs/Usage.md) for further information on how to run ROSRV. | ||
Get help or report problems on | ||
[ROSRV's issues page](https://github.com/runtimeverification/ROSRV/issues). | ||
[ROSRV's issues page](https://github.com/FormalSystemsLaboratory/ROSRV/issues). |
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
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,4 +1,33 @@ | ||
#!/bin/bash | ||
SHDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
#!/usr/bin/python2 | ||
|
||
from __future__ import print_function | ||
import argparse, os, sys | ||
from subprocess import check_call | ||
|
||
parser = argparse.ArgumentParser(description='ROSRV Monitor Node Generator') | ||
|
||
parser.add_argument( 'spec_file' | ||
, help='The location of the spec file' | ||
) | ||
|
||
parser.add_argument( '-o', '--output' | ||
, help='Name of the monitor executable' | ||
) | ||
|
||
args = parser.parse_args() | ||
|
||
# Check File Exists | ||
if not os.path.exists(args.spec_file): | ||
print(args.spec_file + " Spec File not found", file=sys.stderr) | ||
sys.exit(1) | ||
|
||
|
||
spec_file_path = os.path.abspath(args.spec_file) | ||
if args.output: | ||
check_call( ['/usr/bin/env', 'catkin', 'build', 'rvmonitor' | ||
, ('-DPROVIDED_SPEC_FILE=' + spec_file_path) | ||
, ('-DPROVIDED_MONITOR_NAME=' + args.output) ]) | ||
else: | ||
check_call( ['/usr/bin/env', 'catkin', 'build', 'rvmonitor' | ||
, ('-DPROVIDED_SPEC_FILE=' + spec_file_path) ]) | ||
|
||
python $SHDIR/rosrv.py $@ |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.