From 608f45235a2ef881d975f8a2e2213c92a1bc44ea Mon Sep 17 00:00:00 2001 From: benjaminwp18 <90342856+benjaminwp18@users.noreply.github.com> Date: Sat, 8 Jun 2024 13:32:20 -0400 Subject: [PATCH] Set up publishing --- src/pi/temp_sensor/launch/temp_sensor_launch.py | 16 ++++++++-------- src/pi/temp_sensor/setup.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pi/temp_sensor/launch/temp_sensor_launch.py b/src/pi/temp_sensor/launch/temp_sensor_launch.py index 33f46076..2cf40b50 100644 --- a/src/pi/temp_sensor/launch/temp_sensor_launch.py +++ b/src/pi/temp_sensor/launch/temp_sensor_launch.py @@ -12,14 +12,14 @@ def generate_launch_description() -> LaunchDescription: Launches temperature sensor node """ - # flood_detection = Node( - # package='flood_detection', - # executable='flood_detector', - # emulate_tty=True, - # output='screen', - # remappings=[('/pi/flooding', '/tether/flooding')] - # ) + temp_sensor = Node( + package='temp_sensor', + executable='temp_sensor', + emulate_tty=True, + output='screen', + remappings=[('/pi/temperature', '/tether/temperature')] + ) return LaunchDescription([ - # flood_detection + temp_sensor ]) diff --git a/src/pi/temp_sensor/setup.py b/src/pi/temp_sensor/setup.py index 142f49ba..e645b6fe 100644 --- a/src/pi/temp_sensor/setup.py +++ b/src/pi/temp_sensor/setup.py @@ -25,7 +25,7 @@ tests_require=['pytest'], entry_points={ 'console_scripts': [ - # 'flood_detector = flood_detection.flood_detector:main', + 'temp_sensor = temp_sensor.temp_sensor:main', # 'dry_run = flood_detection.gpio_reader_dry_run:main' ], },