Skip to content

Commit

Permalink
add launchfile back
Browse files Browse the repository at this point in the history
  • Loading branch information
iBoot32 committed Jan 24, 2025
1 parent a9fc3c1 commit c8811de
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.vscode/
src/prm_launch/launch/video2detector.py
.vscode/
30 changes: 30 additions & 0 deletions src/prm_launch/launch/video2detector.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
from launch import LaunchDescription
from launch_ros.actions import Node

from ament_index_python.packages import get_package_share_path

import os

def generate_launch_description():
webcam_publisher = get_package_share_path('webcam_publisher')
video_path = "/home/user-accounts/public/spintop/moving_but_no_spinning.avi" # example, can change to your liking
return LaunchDescription([
Node(
package='webcam_publisher',
output='screen',
emulate_tty=True,
executable='VideoCaptureNode',
parameters=[{'source': str(video_path),
'fps': 4,
'frame_id': 'video',
}]
),
Node(
package='opencv_armor_detector',
executable='OpenCVArmorDetectorNode',
),
Node(
package='pose_estimator',
executable='PoseEstimatorNode',
),
])

0 comments on commit c8811de

Please # to comment.