← Back to the animated process

ros2_ws/src/object_pose_tracking/launch/phase4.launch.py

Implementation snapshot supporting the published lesson. Only cited line ranges are included; this is not a runnable source file. Configuration and recorded examples describe this project snapshot.

… uncited lines omitted …
20    camera = Node(package='object_pose_tracking', executable='rgbd_camera', output='screen',21                  condition=IfCondition(LaunchConfiguration('camera')),22                  parameters=[params, {'project_root': project,23                                       'camera_python': LaunchConfiguration('camera_python'),24                                       'camera_backend': LaunchConfiguration('camera_backend'),25                                       'serial': ParameterValue(LaunchConfiguration('camera_serial'), value_type=str),26                                       'publish_rate': ParameterValue(27                                           LaunchConfiguration('camera_rate'), value_type=float)}])… uncited lines omitted …
46        DeclareLaunchArgument('camera_backend', default_value='orbbec',47                              choices=['orbbec', 'realsense', 'auto']),48        DeclareLaunchArgument('camera_serial', default_value='',49                              description='Camera serial; empty selects a single matching device'),50        DeclareLaunchArgument('camera_python', default_value=PathJoinSubstitution(51            [project, '.venv', 'bin', 'python'])),52        DeclareLaunchArgument('camera_rate', default_value='20.0',53                              description='Maximum camera publication rate in Hz (camera captures at 30 FPS)'),