Skip to content

Commit

Permalink
Added launch file
Browse files Browse the repository at this point in the history
  • Loading branch information
RoseKapps committed Nov 12, 2023
1 parent 06251ee commit 91a0451
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
10 changes: 10 additions & 0 deletions sensors/temperature/launch/temperature_system_launch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from launch import LaunchDescription
from launch_ros.actions import Node

def generate_launch_description():
return LaunchDescription([
Node(
package='temperature',
executable='temperature_publisher_node'
)
])
10 changes: 7 additions & 3 deletions sensors/temperature/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>temperature</name>
<version>0.0.0</version>
<version>1.0.0</version>
<description>TODO: Package description</description>
<maintainer email="rose.j.kapps@gmail.com">vortex</maintainer>
<license>TODO: License declaration</license>
<maintainer email="karate.martynas1@gmail.com">vortex</maintainer>
<license>MIT</license>

<test_depend>ament_copyright</test_depend>
<test_depend>ament_flake8</test_depend>
<test_depend>ament_pep257</test_depend>
<test_depend>python3-pytest</test_depend>

<exec_depend>std_msgs</exec_depend>
<exec_depend>freya_bms</exec_depend>
<exec_depend>ros2launch</exec_depend>

<export>
<build_type>ament_python</build_type>
Expand Down
11 changes: 7 additions & 4 deletions sensors/temperature/setup.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
import os
from glob import glob
from setuptools import find_packages, setup

package_name = 'temperature'

setup(
name=package_name,
version='0.0.0',
version='1.0.0',
packages=find_packages(exclude=['test']),
data_files=[
('share/ament_index/resource_index/packages',
['resource/' + package_name]),
('share/' + package_name, ['package.xml']),
(os.path.join('share', package_name), glob('launch/*.py')),
],
install_requires=['setuptools'],
zip_safe=True,
maintainer='vortex',
maintainer_email='rose.j.kapps@gmail.com',
description='TODO: Package description',
license='TODO: License declaration',
maintainer_email='karate.martynas1@gmail.com',
description='Temperature sensor data gartehring from temperature sensor system',
license='MIT',
tests_require=['pytest'],
entry_points={
'console_scripts': [
Expand Down

0 comments on commit 91a0451

Please sign in to comment.