-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port to ROS 2 #41
Port to ROS 2 #41
Changes from 7 commits
b934ec3
17c8ead
7de64e3
eac52db
c4a8862
6e76bf7
ed25658
6a8cc46
11ddca4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,30 @@ | ||
#!/usr/bin/env python | ||
from setuptools import setup | ||
|
||
from distutils.core import setup | ||
from catkin_pkg.python_setup import generate_distutils_setup | ||
package_name = 'urdfdom_py' | ||
|
||
d = generate_distutils_setup( | ||
setup( | ||
name=package_name, | ||
version='0.3.3', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. melodic-devel is currently on 0.4.0, but since this is going to be a new branch, we probably want to bump up to something like 1.0.0 here (and in the package.xml). |
||
package_dir={'': 'src'}, | ||
packages=['urdf_parser_py', 'urdf_parser_py.xml_reflection'], | ||
package_dir={'': 'src'} | ||
data_files=[ | ||
('scripts/display_urdf', | ||
['package.xml']), | ||
], | ||
install_requires=['setuptools'], | ||
zip_safe=True, | ||
author='Víctor Mayoral Vilches', | ||
author_email='vmayoral@acutronicrobotics.com', | ||
maintainer='Víctor Mayoral Vilches', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't mind adding you as a maintainer, but if you want to be the maintainer I'd suggest that we add you to the package.xml as well. If you don't want to be a maintainer, you can just put my name/email here. |
||
maintainer_email='vmayoral@acutronicrobotics.com', | ||
keywords=['ROS2'], | ||
classifiers=[ | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Programming Language :: Python', | ||
'Topic :: Software Development', | ||
], | ||
description='Python implementation of the URDF parser.', | ||
license='Apache License, Version 2.0', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This has to stay BSD, since we aren't really changing the underlying code. |
||
tests_require=['pytest'], | ||
) | ||
|
||
setup(**d) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,9 @@ | |
|
||
def xml_string(rootXml, addHeader=True): | ||
# Meh | ||
xmlString = etree.tostring(rootXml, pretty_print=True) | ||
xmlString = etree.tostring(rootXml, pretty_print=True, encoding=str) | ||
if addHeader: | ||
xmlString = '<?xml version="1.0"?>\n' + xmlString | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any particular reason for this change? I think this can stay as-is. |
||
xmlString = "<?xml version=\"1.0\"?>\n" + xmlString | ||
return xmlString | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I can tell looking elsewhere, with a pure python package we don't need any
buildtool_depend
line, so just remove this.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is still open.