Skip to content

Commit

Permalink
package name changed
Browse files Browse the repository at this point in the history
Signed-off-by: adrianCo <[email protected]>
  • Loading branch information
AdrianCobo committed Dec 9, 2024
1 parent 55befaa commit db66979
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 2 deletions.
57 changes: 57 additions & 0 deletions launch/multicam.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,63 @@ def generate_launch_description():
{'use_pointcloud': use_pointcloud},
{'pc_color': pc_color}])

metric_converter_node = launch_ros.descriptions.ComposableNode(
package='depth_image_proc',
plugin='depth_image_proc::ConvertMetricNode',
name='convert_metric_node',
remappings=[('image_raw', 'stereo/depth'),
('camera_info', 'stereo/camera_info'),
('image', 'stereo/converted_depth')],
condition=IfCondition(
PythonExpression(
["'", use_depth, "' == 'True' and '", use_pointcloud, "' == 'True' and '", only_rgb, "' == 'False'"]
)
)
)

point_cloud_color1 = launch_ros.descriptions.ComposableNode(
package='depth_image_proc',
plugin='depth_image_proc::PointCloudXyzrgbNode',
name='point_cloud_xyzrgb_node',
remappings=[('depth_registered/image_rect', 'stereo/converted_depth'),
('rgb/image_rect_color', 'rgb/image'),
('rgb/camera_info', 'rgb/camera_info'),
('points', 'stereo/points')],
condition=IfCondition(
PythonExpression(
["'", use_depth, "' == 'True' and '", use_pointcloud, "' == 'True' and '", pc_color, "' == 'True' and '", only_rgb, "' == 'False'"]
)
)
)

point_cloud_intensity1 = launch_ros.descriptions.ComposableNode(
package='depth_image_proc',
plugin='depth_image_proc::PointCloudXyziNode',
name='point_cloud_xyzi',
remappings=[('depth/image_rect', 'stereo/converted_depth'),
('intensity/image_rect', 'right_rect/image'),
('intensity/camera_info', 'right_rect/camera_info'),
('points', 'stereo/points')],
condition=IfCondition(
PythonExpression(
["'", use_depth, "' == 'True' and '", use_pointcloud, "' == 'True' and '", pc_color, "' == 'False' and '", only_rgb, "' == 'False'"]
)
)
)

point_cloud_container1 = launch_ros.actions.ComposableNodeContainer(
name='container',
namespace='',
package='rclcpp_components',
executable='component_container',
composable_node_descriptions=[
# Driver itself
metric_converter_node,
point_cloud_color,
point_cloud_intensity,
],
output='screen',)

rgbd_stereo_node2 = launch_ros.actions.Node(
package='oak_d_camera', executable='rgbd_stereo_node',
output='screen',
Expand Down
4 changes: 2 additions & 2 deletions launch/rgbd_stereo.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def generate_launch_description():
default_rviz = os.path.join(get_package_share_directory('oak_d_lite_camera_ros2'),
default_rviz = os.path.join(get_package_share_directory('oak_d_camera'),
'rviz', 'rgbd_stereo_pcl.rviz')
urdf_launch_dir = os.path.join(get_package_share_directory('depthai_descriptions'), 'launch')

Expand Down Expand Up @@ -169,7 +169,7 @@ def generate_launch_description():


rgbd_stereo_node = launch_ros.actions.Node(
package='oak_d_lite_camera_ros2', executable='rgbd_stereo_node',
package='oak_d_camera', executable='rgbd_stereo_node',
output='screen',
parameters=[{'tf_prefix': tf_prefix},
{'lrcheck': lrcheck},
Expand Down

0 comments on commit db66979

Please sign in to comment.