Skip to content
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

Changed the build type to ament_python and Fixed package to run with ros2 run #18

Merged
merged 2 commits into from
Apr 19, 2021
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
23 changes: 0 additions & 23 deletions CMakeLists.txt

This file was deleted.

4 changes: 1 addition & 3 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

<author>Dorian Scholz</author>

<buildtool_depend>ament_cmake</buildtool_depend>

<exec_depend version_gte="0.2.19">python_qt_binding</exec_depend>
<exec_depend>python3-catkin-pkg-modules</exec_depend>
<exec_depend>qt_gui_py_common</exec_depend>
Expand All @@ -24,6 +22,6 @@

<export>
<rqt_gui plugin="${prefix}/plugin.xml"/>
<build_type>ament_cmake</build_type>
<build_type>ament_python</build_type>
</export>
</package>
Empty file added resource/rqt_publisher
Empty file.
8 changes: 0 additions & 8 deletions scripts/rqt_publisher

This file was deleted.

4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[develop]
script-dir=$base/lib/rqt_publisher
[install]
install-scripts=$base/lib/rqt_publisher
44 changes: 36 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,39 @@
#!/usr/bin/env python
from setuptools import setup

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
package_name = 'rqt_publisher'

d = generate_distutils_setup(
packages=['rqt_publisher'],
package_dir={'': 'src'}
setup(
name=package_name,
version='1.0.5',
packages=[package_name],
package_dir={'': 'src'},
data_files=[
('share/ament_index/resource_index/packages',
['resource/' + package_name]),
('share/' + package_name + '/resource',
['resource/Publisher.ui']),
('share/' + package_name, ['package.xml']),
('share/' + package_name, ['plugin.xml']),
],
install_requires=['setuptools'],
zip_safe=True,
author='Dorian Scholz',
maintainer='Dirk Thomas, Dorian Scholz',
maintainer_email='[email protected]',
keywords=['ROS'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Topic :: Software Development',
],
description=(
'A Python GUI plugin publishing ROS messages.'
),
license='BSD',
entry_points={
'console_scripts': [
'rqt_publisher = ' + package_name + '.main:main',
],
},
)

setup(**d)
12 changes: 12 additions & 0 deletions src/rqt_publisher/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import sys

from rqt_gui.main import Main


def main():
main = Main()
sys.exit(main.main(sys.argv, standalone='rqt_publisher.publisher.Publisher'))


if __name__ == '__main__':
main()