Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions angles/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ ament_export_targets(export_angles)

install(DIRECTORY include/ DESTINATION include/angles)

ament_python_install_package(${PROJECT_NAME})

ament_package()
File renamed without changes.
1 change: 1 addition & 0 deletions angles/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<url>http://wiki.ros.org/angles</url>

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>ament_cmake_python</buildtool_depend>
<buildtool_depend>python3-setuptools</buildtool_depend>

<buildtool_export_depend>ament_cmake</buildtool_export_depend>
Expand Down
25 changes: 17 additions & 8 deletions angles/setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
#!/usr/bin/env python

from setuptools import setup
from catkin_pkg.python_setup import generate_distutils_setup

package_info = generate_distutils_setup(
packages=['angles'],
package_dir={'': 'src'}
)
package_name = 'angles'

setup(**package_info)
setup(
name=package_name,
version='1.13.0',
package_dir={'': 'src'},
packages=[package_name],
data_files=[
('share/ament_index/resource_index/packages', ['resource/' + package_name]),
('share/' + package_name, ['package.xml']),
],
install_requires=['setuptools'],
url='http://wiki.ros.org/angles',
license='BSD',
author='John Hsu',
author_email='[email protected]',
description='Simple math utilities to work with angles',
)
3 changes: 1 addition & 2 deletions angles/test/utest.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,5 +304,4 @@ def test_find_min_max_delta(self):
self.assertAlmostEqual(max_delta, 3*pi/4)

if __name__ == '__main__':
import rosunit
rosunit.unitrun('angles', 'test_python_angles', TestAngles)
unittest.main()