Skip to content

Commit 2bd6b61

Browse files
author
andrewluiqut
committed
initial commit
0 parents  commit 2bd6b61

34 files changed

+3459
-0
lines changed

.gitignore

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
# Project
2+
.DS_Store
3+
/.vscode
4+
/db
5+
client_secrets.json
6+
settings_secrets.yaml
7+
8+
# Byte-compiled / optimized / DLL files
9+
__pycache__/
10+
*.py[cod]
11+
*$py.class
12+
13+
# C extensions
14+
*.so
15+
16+
# Distribution / packaging
17+
.Python
18+
build/
19+
develop-eggs/
20+
dist/
21+
downloads/
22+
eggs/
23+
.eggs/
24+
lib/
25+
lib64/
26+
parts/
27+
sdist/
28+
var/
29+
wheels/
30+
share/python-wheels/
31+
*.egg-info/
32+
.installed.cfg
33+
*.egg
34+
MANIFEST
35+
36+
# PyInstaller
37+
# Usually these files are written by a python script from a template
38+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
39+
*.manifest
40+
*.spec
41+
42+
# Installer logs
43+
pip-log.txt
44+
pip-delete-this-directory.txt
45+
46+
# Unit test / coverage reports
47+
htmlcov/
48+
.tox/
49+
.nox/
50+
.coverage
51+
.coverage.*
52+
.cache
53+
nosetests.xml
54+
coverage.xml
55+
*.cover
56+
*.py,cover
57+
.hypothesis/
58+
.pytest_cache/
59+
cover/
60+
61+
# Translations
62+
*.mo
63+
*.pot
64+
65+
# Django stuff:
66+
*.log
67+
local_settings.py
68+
db.sqlite3
69+
db.sqlite3-journal
70+
71+
# Flask stuff:
72+
instance/
73+
.webassets-cache
74+
75+
# Scrapy stuff:
76+
.scrapy
77+
78+
# Sphinx documentation
79+
docs/_build/
80+
81+
# PyBuilder
82+
.pybuilder/
83+
target/
84+
85+
# Jupyter Notebook
86+
.ipynb_checkpoints
87+
88+
# IPython
89+
profile_default/
90+
ipython_config.py
91+
92+
# pyenv
93+
# For a library or package, you might want to ignore these files since the code is
94+
# intended to run in multiple environments; otherwise, check them in:
95+
# .python-version
96+
97+
# pipenv
98+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
99+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
100+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
101+
# install all needed dependencies.
102+
#Pipfile.lock
103+
104+
# poetry
105+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106+
# This is especially recommended for binary packages to ensure reproducibility, and is more
107+
# commonly ignored for libraries.
108+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109+
#poetry.lock
110+
111+
# pdm
112+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113+
#pdm.lock
114+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
115+
# in version control.
116+
# https://pdm.fming.dev/#use-with-ide
117+
.pdm.toml
118+
119+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
120+
__pypackages__/
121+
122+
# Celery stuff
123+
celerybeat-schedule
124+
celerybeat.pid
125+
126+
# SageMath parsed files
127+
*.sage.py
128+
129+
# Environments
130+
.env
131+
.venv
132+
env/
133+
venv/
134+
ENV/
135+
env.bak/
136+
venv.bak/
137+
138+
# Spyder project settings
139+
.spyderproject
140+
.spyproject
141+
142+
# Rope project settings
143+
.ropeproject
144+
145+
# mkdocs documentation
146+
/site
147+
148+
# mypy
149+
.mypy_cache/
150+
.dmypy.json
151+
dmypy.json
152+
153+
# Pyre type checker
154+
.pyre/
155+
156+
# pytype static type analyzer
157+
.pytype/
158+
159+
# Cython debug symbols
160+
cython_debug/
161+
162+
# PyCharm
163+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
164+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
165+
# and can be added to the global gitignore or merged into this file. For a more nuclear
166+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
167+
#.idea/

CMakeLists.txt

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
cmake_minimum_required(VERSION 3.0.2)
2+
project(openstack_object_uploader)
3+
4+
## Compile as C++11, supported in ROS Kinetic and newer
5+
# add_compile_options(-std=c++11)
6+
7+
## Find catkin macros and libraries
8+
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
9+
## is used, also find other catkin packages
10+
find_package(PythonLibs REQUIRED)
11+
12+
find_package(catkin REQUIRED COMPONENTS
13+
rospy
14+
std_msgs
15+
std_srvs
16+
message_generation
17+
)
18+
19+
find_package(catkin REQUIRED COMPONENTS roslaunch)
20+
roslaunch_add_file_check(launch)
21+
22+
## System dependencies are found with CMake's conventions
23+
# find_package(Boost REQUIRED COMPONENTS system)
24+
25+
26+
## Uncomment this if the package has a setup.py. This macro ensures
27+
## modules and global scripts declared therein get installed
28+
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
29+
catkin_python_setup()
30+
31+
################################################
32+
## Declare ROS messages, services and actions ##
33+
################################################
34+
35+
## To declare and build messages, services or actions from within this
36+
## package, follow these steps:
37+
## * Let MSG_DEP_SET be the set of packages whose message types you use in
38+
## your messages/services/actions (e.g. std_msgs, actionlib_msgs, ...).
39+
## * In the file package.xml:
40+
## * add a build_depend tag for "message_generation"
41+
## * add a build_depend and a exec_depend tag for each package in MSG_DEP_SET
42+
## * If MSG_DEP_SET isn't empty the following dependency has been pulled in
43+
## but can be declared for certainty nonetheless:
44+
## * add a exec_depend tag for "message_runtime"
45+
## * In this file (CMakeLists.txt):
46+
## * add "message_generation" and every package in MSG_DEP_SET to
47+
## find_package(catkin REQUIRED COMPONENTS ...)
48+
## * add "message_runtime" and every package in MSG_DEP_SET to
49+
## catkin_package(CATKIN_DEPENDS ...)
50+
## * uncomment the add_*_files sections below as needed
51+
## and list every .msg/.srv/.action file to be processed
52+
## * uncomment the generate_messages entry below
53+
## * add every package in MSG_DEP_SET to generate_messages(DEPENDENCIES ...)
54+
55+
## Generate messages in the 'msg' folder
56+
# add_message_files(
57+
# FILES
58+
# Message1.msg
59+
# Message2.msg
60+
# )
61+
62+
## Generate services in the 'srv' folder
63+
# add_service_files(
64+
# FILES
65+
# )
66+
67+
## Generate actions in the 'action' folder
68+
# add_action_files(
69+
# FILES
70+
# Action1.action
71+
# Action2.action
72+
# )
73+
74+
## Generate added messages and services with any dependencies listed here
75+
# generate_messages(
76+
# DEPENDENCIES
77+
# std_srvs
78+
# std_msgs # Or other packages containing msgs
79+
# )
80+
81+
################################################
82+
## Declare ROS dynamic reconfigure parameters ##
83+
################################################
84+
85+
## To declare and build dynamic reconfigure parameters within this
86+
## package, follow these steps:
87+
## * In the file package.xml:
88+
## * add a build_depend and a exec_depend tag for "dynamic_reconfigure"
89+
## * In this file (CMakeLists.txt):
90+
## * add "dynamic_reconfigure" to
91+
## find_package(catkin REQUIRED COMPONENTS ...)
92+
## * uncomment the "generate_dynamic_reconfigure_options" section below
93+
## and list every .cfg file to be processed
94+
95+
## Generate dynamic reconfigure parameters in the 'cfg' folder
96+
# generate_dynamic_reconfigure_options(
97+
# cfg/DynReconf1.cfg
98+
# cfg/DynReconf2.cfg
99+
# )
100+
101+
###################################
102+
## catkin specific configuration ##
103+
###################################
104+
## The catkin_package macro generates cmake config files for your package
105+
## Declare things to be passed to dependent projects
106+
## INCLUDE_DIRS: uncomment this if your package contains header files
107+
## LIBRARIES: libraries you create in this project that dependent projects also need
108+
## CATKIN_DEPENDS: catkin_packages dependent projects also need
109+
## DEPENDS: system dependencies of this project that dependent projects also need
110+
catkin_package(
111+
# INCLUDE_DIRS include
112+
# LIBRARIES cgras_imaging_agent
113+
# CATKIN_DEPENDS rospy std_srvs
114+
# DEPENDS system_lib
115+
)
116+
117+
###########
118+
## Build ##
119+
###########
120+
121+
## Specify additional locations of header files
122+
## Your package locations should be listed before other locations
123+
include_directories(
124+
# include
125+
${catkin_INCLUDE_DIRS}
126+
)
127+
128+
## Declare a C++ library
129+
# add_library(${PROJECT_NAME}
130+
# src/${PROJECT_NAME}/cgras_image_capture.cpp
131+
# )
132+
133+
## Add cmake target dependencies of the library
134+
## as an example, code may need to be generated before libraries
135+
## either from message generation or dynamic reconfigure
136+
# add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
137+
138+
## Declare a C++ executable
139+
## With catkin_make all packages are built within a single CMake context
140+
## The recommended prefix ensures that target names across packages don't collide
141+
# add_executable(${PROJECT_NAME}_node src/cgras_image_capture_node.cpp)
142+
143+
## Rename C++ executable without prefix
144+
## The above recommended prefix causes long target names, the following renames the
145+
## target back to the shorter version for ease of user use
146+
## e.g. "rosrun someones_pkg node" instead of "rosrun someones_pkg someones_pkg_node"
147+
# set_target_properties(${PROJECT_NAME}_node PROPERTIES OUTPUT_NAME node PREFIX "")
148+
149+
## Add cmake target dependencies of the executable
150+
## same as for the library above
151+
# add_dependencies(${PROJECT_NAME}_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
152+
153+
## Specify libraries to link a library or executable target against
154+
# target_link_libraries(${PROJECT_NAME}_node
155+
# ${catkin_LIBRARIES}
156+
# )
157+
158+
#############
159+
## Install ##
160+
#############
161+
162+
# all install targets should use catkin DESTINATION variables
163+
# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html
164+
165+
## Mark executable scripts (Python etc.) for installation
166+
## in contrast to setup.py, you can choose the destination
167+
catkin_install_python(PROGRAMS
168+
setup.py
169+
src/uploader/run.py
170+
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
171+
)
172+
173+
## Mark executables for installation
174+
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_executables.html
175+
# install(TARGETS ${PROJECT_NAME}_node
176+
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
177+
# )
178+
179+
## Mark libraries for installation
180+
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_libraries.html
181+
# install(TARGETS ${PROJECT_NAME}
182+
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
183+
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
184+
# RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
185+
# )
186+
187+
## Mark cpp header files for installation
188+
# install(DIRECTORY include/${PROJECT_NAME}/
189+
# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
190+
# FILES_MATCHING PATTERN "*.h"
191+
# PATTERN ".svn" EXCLUDE
192+
# )
193+
194+
## Mark other files for installation (e.g. launch and bag files, etc.)
195+
# install(FILES
196+
# # myfile1
197+
# # myfile2
198+
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
199+
# )
200+
201+
#############
202+
## Testing ##
203+
#############
204+
205+
## Add gtest based cpp test target and link libraries
206+
# catkin_add_gtest(${PROJECT_NAME}-test test/test_cgras_image_capture.cpp)
207+
# if(TARGET ${PROJECT_NAME}-test)
208+
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
209+
# endif()
210+
211+
## Add folders to be run by python nosetests
212+
# catkin_add_nosetests(test)

0 commit comments

Comments
 (0)