Skip to content

Commit

Permalink
restructured tutorial package and launch file added
Browse files Browse the repository at this point in the history
  • Loading branch information
gcielniak committed Oct 2, 2024
1 parent b6435bd commit 7fa8211
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 0 deletions.
Empty file removed src/.keep
Empty file.
File renamed without changes.
24 changes: 24 additions & 0 deletions src/rob2002_tutorial/launch/detect_count.launch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from launch import LaunchDescription
from launch_ros.actions import Node

def generate_launch_description():
ld = LaunchDescription()

detector_node = Node(
package='rob2002_tutorial',
executable='detector_basic',
output='screen',
emulate_tty=True,
)

counter_node = Node(
package='rob2002_tutorial',
executable='counter_basic',
output='screen',
emulate_tty=True,
)

ld.add_action(detector_node)
ld.add_action(counter_node)

return ld
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<exec_depend>geometry_msgs</exec_depend>
<exec_depend>sensor_msgs</exec_depend>
<exec_depend>cv_bridge</exec_depend>
<exec_depend>ros2launch</exec_depend>

<test_depend>ament_copyright</test_depend>
<test_depend>ament_flake8</test_depend>
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions rob2002_tutorial/setup.py → src/rob2002_tutorial/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from setuptools import find_packages, setup
import os
from glob import glob

package_name = 'rob2002_tutorial'

Expand All @@ -10,6 +12,7 @@
('share/ament_index/resource_index/packages',
['resource/' + package_name]),
('share/' + package_name, ['package.xml']),
(os.path.join('share', package_name), glob('launch/*launch.py')),
],
install_requires=['setuptools'],
zip_safe=True,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7fa8211

Please sign in to comment.