new camera calibraction add camera launch
This commit is contained in:
@@ -14,6 +14,14 @@ def generate_launch_description():
|
|||||||
'calibration_params.yaml'
|
'calibration_params.yaml'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# HikCamera config
|
||||||
|
hik_params_file = os.path.join(
|
||||||
|
get_package_share_directory('hik_camera'),
|
||||||
|
'config',
|
||||||
|
'camera_params.yaml'
|
||||||
|
)
|
||||||
|
hik_camera_info_url = 'package://hik_camera/config/camera_info.yaml'
|
||||||
|
|
||||||
# Declare launch arguments
|
# Declare launch arguments
|
||||||
declared_arguments = [
|
declared_arguments = [
|
||||||
DeclareLaunchArgument('image_topic', default_value='image_raw'),
|
DeclareLaunchArgument('image_topic', default_value='image_raw'),
|
||||||
@@ -25,7 +33,18 @@ def generate_launch_description():
|
|||||||
DeclareLaunchArgument('min_samples_per_cell', default_value='1'),
|
DeclareLaunchArgument('min_samples_per_cell', default_value='1'),
|
||||||
]
|
]
|
||||||
|
|
||||||
# Create node
|
# HikCamera node
|
||||||
|
hik_camera_node = Node(
|
||||||
|
package='hik_camera',
|
||||||
|
executable='hik_camera_node',
|
||||||
|
output='screen',
|
||||||
|
emulate_tty=True,
|
||||||
|
parameters=[hik_params_file, {
|
||||||
|
'camera_info_url': hik_camera_info_url,
|
||||||
|
}],
|
||||||
|
)
|
||||||
|
|
||||||
|
# Create calibration node
|
||||||
camera_calibration_node = Node(
|
camera_calibration_node = Node(
|
||||||
package='camera_calibration',
|
package='camera_calibration',
|
||||||
executable='camera_calibration_node',
|
executable='camera_calibration_node',
|
||||||
@@ -39,5 +58,6 @@ def generate_launch_description():
|
|||||||
|
|
||||||
return LaunchDescription([
|
return LaunchDescription([
|
||||||
*declared_arguments,
|
*declared_arguments,
|
||||||
|
hik_camera_node,
|
||||||
camera_calibration_node,
|
camera_calibration_node,
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user