Move README to exporter dir and remove another files
This commit is contained in:
parent
2d704442c8
commit
5a4daa42a2
6 changed files with 0 additions and 186 deletions
104
.gitignore
vendored
104
.gitignore
vendored
|
@ -1,104 +0,0 @@
|
|||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
wheels/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
MANIFEST
|
||||
|
||||
# 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/
|
||||
.pytest_cache/
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
*.pot
|
||||
|
||||
# Django stuff:
|
||||
*.log
|
||||
local_settings.py
|
||||
db.sqlite3
|
||||
|
||||
# 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
|
||||
|
||||
# Environments
|
||||
.env
|
||||
.venv
|
||||
env/
|
||||
venv/
|
||||
ENV/
|
||||
env.bak/
|
||||
venv.bak/
|
||||
|
||||
# Spyder project settings
|
||||
.spyderproject
|
||||
.spyproject
|
||||
|
||||
# Rope project settings
|
||||
.ropeproject
|
||||
|
||||
# mkdocs documentation
|
||||
/site
|
||||
|
||||
# mypy
|
||||
.mypy_cache/
|
|
@ -1,15 +0,0 @@
|
|||
|
||||
cmake_minimum_required(VERSION 2.8.3)
|
||||
project(freecad_to_gazebo)
|
||||
|
||||
find_package(catkin REQUIRED COMPONENTS
|
||||
rospy
|
||||
)
|
||||
catkin_python_setup()
|
||||
|
||||
catkin_package()
|
||||
|
||||
include_directories(
|
||||
${catkin_INCLUDE_DIRS}
|
||||
)
|
||||
|
19
package.xml
19
package.xml
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<package>
|
||||
<name>freecad_to_gazebo</name>
|
||||
<version>1.0.0</version>
|
||||
<description>Freecad to Gazebo/ROS exporter</description>
|
||||
|
||||
<maintainer email="dawitabate2@gmail.com">Dawit Abate</maintainer>
|
||||
|
||||
<license>GPLv3</license>
|
||||
|
||||
<!-- <url type="website">http://wiki.ros.org/freecad_to_gazebo</url> -->
|
||||
|
||||
<author email="dawitabate2@gmail.com">Dawit Abate</author>
|
||||
|
||||
<buildtool_depend>catkin</buildtool_depend>
|
||||
<build_depend>rospy</build_depend>
|
||||
<run_depend>rospy</run_depend>
|
||||
|
||||
</package>
|
|
@ -1,37 +0,0 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
from freecad_to_gazebo import freecad_exporter
|
||||
import argparse
|
||||
import json
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('assembly', type=str, help='filename of the assembly')
|
||||
parser.add_argument('model_dir', type=str, help='model output directory')
|
||||
parser.add_argument('--sdf-only',
|
||||
action='store_true',
|
||||
default=False,
|
||||
help='export only sdf')
|
||||
parser.add_argument('--noexport',
|
||||
action="store_true",
|
||||
default=False,
|
||||
help='export mesh files')
|
||||
parser.add_argument('--config', type=str, help='model configuration file (json)')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
default_config = os.path.join(os.path.split(args.assembly)[0],'robot_config.json')
|
||||
config_file = args.config or default_config if os.path.exists(default_config) else None
|
||||
print(config_file)
|
||||
|
||||
configs = {}
|
||||
if config_file:
|
||||
configs = json.load(open(config_file, 'r'))
|
||||
|
||||
configs['export'] = not args.noexport
|
||||
configs['sdf_only'] = args.sdf_only
|
||||
|
||||
freecad_exporter.export_gazebo_model(args.assembly, args.model_dir, configs)
|
||||
|
11
setup.py
11
setup.py
|
@ -1,11 +0,0 @@
|
|||
from distutils.core import setup
|
||||
from catkin_pkg.python_setup import generate_distutils_setup
|
||||
|
||||
args = generate_distutils_setup(
|
||||
packages=['freecad_to_gazebo'],
|
||||
package_dir={'': 'src'},
|
||||
scripts=['scripts/freecad2gazebo'],
|
||||
)
|
||||
|
||||
setup(**args)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue