-
Notifications
You must be signed in to change notification settings - Fork 67
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
Make kdl_parser_py
build successfully under ros2
#48
Changes from all commits
dbb21bc
94006ce
26e5e55
94443a8
f5ac5b5
3488b42
1424d7a
8e24beb
2f24ffa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__pycache__ |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<package> | ||
<?xml version="1.0"?> | ||
<package format="2"> | ||
<name>kdl_parser_py</name> | ||
<version>2.3.0</version> | ||
<description> | ||
|
@@ -19,16 +20,16 @@ | |
<url type="repository">https://github.com/ros2/kdl_parser</url> | ||
<url type="bugtracker">https://github.com/ros2/kdl_parser/issues</url> | ||
|
||
<buildtool_depend version_gte="0.5.68">catkin</buildtool_depend> | ||
<buildtool_depend>python-catkin-pkg</buildtool_depend> | ||
|
||
<build_depend version_gte="1.3.0">orocos_kdl</build_depend> | ||
<build_depend>urdf</build_depend> | ||
<build_depend>rostest</build_depend> | ||
|
||
<run_depend version_gte="1.3.0">orocos_kdl</run_depend> | ||
<run_depend>urdf</run_depend> | ||
<run_depend>urdfdom_py</run_depend> | ||
<run_depend>python_orocos_kdl</run_depend> | ||
<exec_depend version_gte="1.3.0">orocos_kdl</exec_depend> | ||
<exec_depend>urdf</exec_depend> | ||
<exec_depend>urdfdom_py</exec_depend> | ||
<exec_depend>python_orocos_kdl</exec_depend> | ||
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. Unfortunately, this is going to be a problem. We don't have 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. Sounds like you have these two options already mapped out well. Is there already a preference regarding which one to go for? Has someone already picked this up or is there a timeline? Can I help something with this? Although I probably couldn't help with the second option since I have no Windows machine available and no experience with ros on Windows... 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. Nobody has picked it up as far as I know. So help there would be welcome (it would unblock both this and that geometry2 PR). As far as which way to go, I would probably choose option 1. It's the most straightforward to do. Keep in mind that we will have to get it working for Windows (and macOS) there as well, but that should be easier than making a choco package. 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. Okay, I think I can find some time to look into option 1. |
||
|
||
<export> | ||
<build_type>ament_python</build_type> | ||
</export> | ||
|
||
</package> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[develop] | ||
script-dir=$base/lib/kdl_parser_py | ||
[install] | ||
install-scripts=$base/lib/kdl_parser_py |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
#!/usr/bin/env python | ||
import os | ||
|
||
from distutils.core import setup | ||
from catkin_pkg.python_setup import generate_distutils_setup | ||
from setuptools import setup | ||
|
||
d = generate_distutils_setup( | ||
packages=['kdl_parser_py'], | ||
package_dir={'': ''} | ||
) | ||
|
||
setup(**d) | ||
package_name = "kdl_parser_py" | ||
share_path = os.path.join("share", package_name) | ||
|
||
setup( | ||
name=package_name, | ||
version="2.3.0", | ||
author="Jonathan Bohren, Jackie Kay", | ||
packages=[package_name], | ||
data_files=[ | ||
# Include package file | ||
(share_path, ["package.xml"]), | ||
# Install marker file in package index | ||
( | ||
os.path.join("share", "ament_index", "resource_index", "packages"), | ||
[os.path.join("resource", package_name)], | ||
), | ||
# Install test resources | ||
(os.path.join(share_path, "assets"), [os.path.join("test", "test.urdf")]), | ||
], | ||
tests_require=["pytest"], | ||
test_suite="test", | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2015 Open Source Robotics Foundation, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from ament_copyright.main import main | ||
import pytest | ||
|
||
|
||
@pytest.mark.copyright | ||
@pytest.mark.linter | ||
def test_copyright(): | ||
rc = main(argv=[".", "test"]) | ||
assert rc == 0, "Found errors" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright 2017 Open Source Robotics Foundation, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from ament_flake8.main import main_with_errors | ||
import pytest | ||
|
||
|
||
@pytest.mark.flake8 | ||
@pytest.mark.linter | ||
def test_flake8(): | ||
rc, errors = main_with_errors(argv=[]) | ||
assert rc == 0, "Found %d code style errors / warnings:\n" % len( | ||
errors | ||
) + "\n".join(errors) |
This file was deleted.
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.
As the
from_parameter_server
method was removed in urdf_parser_py 1.* (the version used in ROS2) probably we may need to remove this method as well.