-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update service for trigger external signage (#97)
* update service for trigger external signage Signed-off-by: tkhmy <[email protected]> * fix new external node (#98) * fix launch and depend --------- Signed-off-by: tkhmy <[email protected]> Co-authored-by: yabuta <[email protected]>
- Loading branch information
Showing
19 changed files
with
136 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<node pkg="external_signage" exec="external_signage" output="screen" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0"?> | ||
<package format="2"> | ||
<name>external_signage</name> | ||
<version>0.1.0</version> | ||
<description>The signage package</description> | ||
|
||
<maintainer email="[email protected]">yabuta</maintainer> | ||
|
||
<license>Apache License 2.0</license> | ||
<exec_depend>ament_index_python</exec_depend> | ||
<exec_depend>signage_version</exec_depend> | ||
|
||
<depend>autoware_auto_system_msgs</depend> | ||
<depend>diagnostic_updater</depend> | ||
<depend>python-pulsectl-pip</depend> | ||
<depend>rclpy</depend> | ||
<depend>std_srvs</depend> | ||
<depend>tier4_api_msgs</depend> | ||
<depend>tier4_debug_msgs</depend> | ||
<depend>tier4_external_api_msgs</depend> | ||
<depend>tier4_hmi_msgs</depend> | ||
|
||
<export> | ||
<build_type>ament_python</build_type> | ||
</export> | ||
</package> |
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[develop] | ||
script-dir=$base/lib/external_signage | ||
[install] | ||
install-scripts=$base/lib/external_signage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
|
||
from setuptools import setup | ||
|
||
|
||
def package_files(directory): | ||
paths = [] | ||
for (path, directories, filenames) in os.walk(directory): | ||
for filename in filenames: | ||
paths.append(os.path.join(path, filename)) | ||
return paths | ||
|
||
|
||
package_name = "external_signage" | ||
setup( | ||
name=package_name, | ||
version="0.1.0", | ||
package_dir={"": "src"}, | ||
packages=[package_name], | ||
data_files=[ | ||
("share/ament_index/resource_index/packages", ["resource/" + package_name]), | ||
("share/" + package_name + "/resource/td5_file", package_files("resource/td5_file")), | ||
("share/" + package_name, ["package.xml"]), | ||
("share/" + package_name + "/launch", ["launch/external_signage.launch.xml"]), | ||
], | ||
install_requires=["setuptools"], | ||
zip_safe=True, | ||
author="Makoto Yabuta", | ||
maintainer="Makoto Yabuta", | ||
maintainer_email="[email protected]", | ||
keywords=["ROS"], | ||
classifiers=[ | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python", | ||
"Topic :: Software Development", | ||
], | ||
description=("external_signage provides a GUI for passanger."), | ||
license="TODO", | ||
entry_points={ | ||
"console_scripts": [ | ||
"external_signage = external_signage.external_signage:main", | ||
] | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# This Python file uses the following encoding: utf-8 | ||
|
||
# if__name__ == "__main__": | ||
# pass |
23 changes: 23 additions & 0 deletions
23
src/external_signage/src/external_signage/external_signage.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This Python file uses the following encoding: utf-8 | ||
import sys | ||
|
||
import rclpy | ||
from rclpy.node import Node | ||
|
||
from external_signage.external_signage_core import ExternalSignage | ||
from ament_index_python.packages import get_package_share_directory | ||
|
||
def main(args=None): | ||
package_path = get_package_share_directory("external_signage") | ||
|
||
rclpy.init(args=args) | ||
node = Node("external_signage") | ||
|
||
external_signage = ExternalSignage(node) | ||
|
||
while True: | ||
rclpy.spin_once(node, timeout_sec=0.01) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters