Skip to content

Commit

Permalink
Added plugin file and some other boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
pooyanjamshidi committed Mar 13, 2018
1 parent 5c21461 commit e3d90b9
Show file tree
Hide file tree
Showing 7 changed files with 213 additions and 4 deletions.
121 changes: 121 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# Docker stuff
*.swp
*.swo

# temp folders
tmp/
temp/

# mac stuff
.DS_Store

# PyCharm
.idea/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
cmake-build-debug/
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# dotenv
.env

# virtualenv
.venv
venv/
ENV/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ include_directories(
${catkin_INCLUDE_DIRS}
)

## Declare a C++ library
# add_library(${PROJECT_NAME}
# src/${PROJECT_NAME}/brass_gazebo_config_manager.cpp
# )
# Declare a C++ library
add_library(${PROJECT_NAME}
src/config_plugin.cpp
)

## Add cmake target dependencies of the library
## as an example, code may need to be generated before libraries
Expand Down
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Functionality
The configuration manager of the bot that receives a power model and maintain the current configuration of the robot. When the configuration of the robot would change, it will reflect the change to power consumption by changing the coefficient of the power usage in the battery plugin.

# Maintainer

If you need a new feature to be added, please contact [Pooyan Jamshidi](https://pooyanjamshidi.github.io)
52 changes: 52 additions & 0 deletions src/config_list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"1":{
"config_id": 12,
"power_load": 60,
"speed": 0.4
},
"2":{
"config_id": 32,
"power_load": 55,
"speed": 0.5
},
"3":{
"config_id": 125,
"power_load": 76,
"speed": 0.7
},
"4":{
"config_id": 345,
"power_load": 76,
"speed": 0.7
},
"5":{
"config_id": 432,
"power_load": 76,
"speed": 0.7
},
"6":{
"config_id": 555,
"power_load": 76,
"speed": 0.7
},
"7":{
"config_id": 666,
"power_load": 76,
"speed": 0.7
},
"8":{
"config_id": 777,
"power_load": 76,
"speed": 0.7
},
"9":{
"config_id": 999,
"power_load": 76,
"speed": 0.7
},
"10":{
"config_id": 888,
"power_load": 76,
"speed": 0.7
}
}
1 change: 1 addition & 0 deletions src/config_plugin.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

10 changes: 10 additions & 0 deletions src/config_plugin.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#ifndef BRASS_GAZEBO_CONFIG_MANAGER_CONFIG_PLUGIN_H
#define BRASS_GAZEBO_CONFIG_MANAGER_CONFIG_PLUGIN_H

namespace gazebo{

}



#endif //BRASS_GAZEBO_CONFIG_MANAGER_CONFIG_PLUGIN_H

0 comments on commit e3d90b9

Please sign in to comment.