PointCloud Motion Capture
Pointcloud Motion Capture is a ROS 2 package designed to process point clouds for capturing object movements. It detects objects using color filters and infers data about their position, velocity, and acceleration. This package has been tested under [ROS] Humble and Ubuntu 22.04
Loading...
Searching...
No Matches
motion_capture.launch.py
Go to the documentation of this file.
1import os
2
3from ament_index_python.packages import get_package_share_directory
4from launch import LaunchDescription
5from launch_ros.actions import Node
6
7
9 pkg_share_dir = os.path.join(
10 get_package_share_directory('pointcloud_motion_capture'))
11
12 pc_reader_config = os.path.join(pkg_share_dir, 'config', 'pc_reader.yaml')
13 motion_capture_config = os.path.join(pkg_share_dir, 'config', 'motion_capture.yaml')
14
15 return LaunchDescription([
16 Node(
17 package='pointcloud_motion_capture',
18 executable='point_cloud_reader',
19 output='screen',
20 parameters=[pc_reader_config],
21 ),
22
23 Node(
24 package='pointcloud_motion_capture',
25 executable='motion_capture',
26 output='screen',
27 parameters=[motion_capture_config],
28 ),
29 ])