mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-09-12 19:20:20 +08:00
22 lines
610 B
Python
22 lines
610 B
Python
from launch import LaunchDescription
|
|
from launch_ros.actions import Node
|
|
from ament_index_python import get_package_share_directory
|
|
|
|
|
|
def generate_launch_description():
|
|
ob_params_file = (
|
|
get_package_share_directory("orbbec_camera") + "/params/astra_plus_params.yaml"
|
|
)
|
|
return LaunchDescription(
|
|
[
|
|
Node(
|
|
package="orbbec_camera",
|
|
namespace="camera",
|
|
name="camera",
|
|
executable="orbbec_camera_node",
|
|
output="screen",
|
|
parameters=[ob_params_file],
|
|
),
|
|
]
|
|
)
|