Files
OrbbecSDK_ROS2/en/.doctrees/source/4_application_guide/point_cloud.doctree
T

14 lines
11 KiB
Plaintext
Raw Normal View History

2025-10-22 03:11:03 +00:00
€•1,Œdocutils.nodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”hŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒ-Enabling and Visualizing Point Cloud in ROS 2”h]”hŒText”“”Œ-Enabling and Visualizing Point Cloud in ROS 2”…”�”}”(Œparent”hŒ _document”hŒsource”NŒline”NubaŒ
attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”uŒtagname”hhKhh hŒa/home/runner/work/OrbbecSDK_ROS2/OrbbecSDK_ROS2/docs/en/source/4_application_guide/point_cloud.md”ubhŒ paragraph”“”)�”}”(hŒrThis section demonstrates how to enable point cloud data output from the camera node and visualize it using RViz2.”h]”hŒrThis section demonstrates how to enable point cloud data output from the camera node and visualize it using RViz2.”…”�”}”(hh.hhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*h,hKhh hhhh+ubh
)�”}”(hhh]”(h)�”}”(hŒEnabling Depth Point Cloud”h]”hŒEnabling Depth Point Cloud”…”�”}”(hh?hhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*hhKhh<hh+ubh
)�”}”(hhh]”(h)�”}”(hŒ#Command to Enable Depth Point Cloud”h]”hŒ#Command to Enable Depth Point Cloud”…”�”}”(hhPhhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*hhKhhMhh+ubh-)�”}”(hŒYTo activate the point cloud data stream for depth information, use the following command:”h]”hŒYTo activate the point cloud data stream for depth information, use the following command:”…”�”}”(hh^hhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*h,hK hhMhhhh+ubhŒ
literal_block”“”)�”}”(hŒNros2 launch orbbec_camera gemini_330_series.launch.py enable_point_cloud:=true”h]”hŒNros2 launch orbbec_camera gemini_330_series.launch.py enable_point_cloud:=true”…”�”}”hhnsbah}”(h ]”h"]”h$]”h&]”h(]”Œlanguage”Œbash”Œ xml:space”Œpreserve”uh*hlhhMhhhh+hKubeh}”(h ]”Œ#command-to-enable-depth-point-cloud”ah"]”h$]”Œ#command to enable depth point cloud”ah&]”h(]”uh*h hKhh<hhhh+ubh
)�”}”(hhh]”(h)�”}”(hŒ&Visualizing Depth Point Cloud in RViz2”h]”hŒ&Visualizing Depth Point Cloud in RViz2”…”�”}”(hh‹hhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*hhKhhˆhh+ubh-)�”}”(hŒ`After running the above command, perform the following steps to visualize the depth point cloud:”h]”hŒ`After running the above command, perform the following steps to visualize the depth point cloud:”…”�”}”(hh™hhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*h,hKhhˆhhhh+ubhŒenumerated_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hhh]”h-)�”}”(hŒ Open RViz2.”h]”hŒ Open RViz2.”…”�”}”(hh±hhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*h,hKhh®hhhh+ubah}”(h ]”h"]”h$]”h&]”h(]”uh*h¬hKhh©hhhh+ubh­)�”}”(hhh]”h-)�”}”(hŒAdd a PointCloud2 display.”h]”(hŒAdd a ”…”�”}”(hhÈhhhNhNubhŒliteral”“”)�”}”(hŒ PointCloud2”h]”hŒ PointCloud2”…”�”}”(hhÒhhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*hÐhhÈhhhh+hKubhŒ display.”…”�”}”(hhÈhhhNhNubeh}”(h ]”h"]”h$]”h&]”h(]”uh*h,hKhhÅhhhh+ubah}”(h ]”h"]”h$]”h&]”h(]”uh*h¬hKhh©hhhh+ubh­)�”}”(hhh]”h-)�”}”(hŒ8Select the /camera/depth/points topic for visualization.”h]”(hŒ Select the ”…”�”}”(hhóhhhNhNubhÑ)�”}”(hŒ/camera/depth/points”h]”hŒ/camera/depth/points”…”�”}”(hhûhhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*hÐhhóhhhh+hKubhŒ topic for visualization.”…”�”}”(hhóhhhNhNubeh}”(h ]”h"]”h$]”h&]”h(]”uh*h,hKhhðhhhh+ubah}”(h ]”h"]”h$]”h&]”h(]”uh*h¬hKhh©hhhh+ubh­)�”}”(hhh]”h-)�”}”(hŒ>Set the fixed frame to camera_link to properly align the data.”h]”(hŒSet the fixed frame to ”…”�”}”(hjhhhNhNubhÑ)�”}”(hŒ camera_link”h]”hŒ camera_link”…”�”}”(hj$hhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*hÐhjhhhh+hKubhŒ to properly align the data.”…”�”}”(hjhhhNhNubeh}”(h ]”h"]”h$]”h&]”h(]”uh*h,hKhjhhhh+ubah}”(h ]”h"]”h$]”h&]”h(]”uh*h¬hKhh©hhhh+ubeh}”(h ]”h"]”h$]”h&]”h(]”uh*h§hKhhˆhhhh+ubhŒ bullet_list”“”)�”}”(hhh]”h­)�”}”(hhh]”h-)�”}”(hŒExample Visualization”h]”hŒstrong”“”)�”}”(hŒExample Visualization”h]”hŒExample Visualization”…”�”}”(hjVhhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*jThjPhhhh+hKubah}”(h ]”h"]”h$]”h&]”h(]”uh*h,hKhjMhhhh+ubah}”(h ]”h"]”h$]”h&]”h(]”uh*h¬hKhjJhhhh+ubah}”(h ]”h"]”h$]”h&]”h(]”uh*jHhKhhˆhhhh+ubh-)�”}”(hŒ<Here is what the depth point cloud might look like in RViz2:”h]”hŒ<Here is what the depth point cloud might look like in RViz2:”…”�”}”(hjvhhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*h,hKhhˆhhhh+ubh-)�”}”(hŒDepth Point Cloud Visualization”h]”hŒimage”“”)�”}”(hj†h]”hh…”�”}”(hjŠhhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”Œuri”Œ#source/image/point_cloud/image5.jpg”Œalt”j†Œ
candidates”}”Œ*”j—sŒ original_uri”Œ../image/point_cloud/image5.jpg”uh*jˆhj„hhhh+hKubah}”(h ]”h"]”h$]”h&]”h(]”uh*h,hKhhˆhhhh+ubeh}”(h ]”Œ&visualizing-depth-point-cloud-in-rviz2”ah"]”h$]”Œ&visualizing depth point cloud in rviz2”ah&]”h(]”uh*h hKhh<hhhh+ubeh}”(h ]”Œenabling-depth-point-cloud”ah"]”h$]”Œenabling depth point cloud”ah&]”h(]”uh*h hKhh hhhh+ubh
)�”}”(hhh]”(h)�”}”(hŒEnabling Colored Point Cloud”h]”hŒEnabling Colored Point Cloud”…”�”}”(hj·hhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*hhKhj´hh+ubh
)�”}”(hhh]”(h)�”}”(hŒ%Command to Enable Colored Point Cloud”h]”hŒ%Command to Enable Colored Point Cloud”…”�”}”(hjÈhhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*hhK hjÅhh+ubh-)�”}”(hŒGTo enable the colored point cloud feature, enter the following command:”h]”hŒGTo enable the colored point cloud feature, enter the following command:”…”�”}”(hjÖhhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*h,hK"hjÅhhhh+ubhm)�”}”(hŒVros2 launch orbbec_camera gemini_330_series.launch.py enable_colored_point_cloud:=true”h]”hŒVros2 launch orbbec_camera gemini_330_series.launch.py enable_colored_point_cloud:=true”…”�”}”hjäsbah}”(h ]”h"]”h$]”h&]”h(]”Œlanguage”Œbash”h~huh*hlhjÅhhhh+hKubeh}”(h ]”Œ%command-to-enable-colored-point-cloud”ah"]”h$]”Œ%command to enable colored point cloud”ah&]”h(]”uh*h hK hj´hhhh+ubh
)�”}”(hhh]”(h)�”}”(hŒ(Visualizing Colored Point Cloud in RViz2”h]”hŒ(Visualizing Colored Point Cloud in RViz2”…”�”}”(hjÿhhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*hhK(hjühh+ubh-)�”}”(hŒ*To visualize the colored point cloud data:”h]”hŒ*To visualize the colored point cloud data:”…”�”}”(hj
hhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*h,hK*hjühhhh+ubh¨)�”}”(hhh]”(h­)�”}”(hhh]”h-)�”}”(hŒ-Launch RViz2 following the command execution.”h]”hŒ-Launch RViz2 following the command execution.”…”�”}”(hj!hhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*h,hK,hjhhhh+ubah}”(h ]”h"]”h$]”h&]”h(]”uh*h¬hK,hjhhhh+ubh­)�”}”(hhh]”h-)�”}”(hŒ Add a PointCloud2 display panel.”h]”(hŒAdd a ”…”�”}”(hj8hhhNhNubhÑ)�”}”(hŒ PointCloud2”h]”hŒ PointCloud2”…”�”}”(hj@hhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*hÐhj8hhhh+hKubhŒ display panel.”…”�”}”(hj8hhhNhNubeh}”(h ]”h"]”h$]”h&]”h(]”uh*h,hK-hj5hhhh+ubah}”(h ]”h"]”h$]”h&]”h(]”uh*h¬hK-hjhhhh+ubh­)�”}”(hhh]”h-)�”}”(hŒ?Choose the /camera/depth_registered/points topic from the list.”h]”(hŒ Choose the ”…”�”}”(hjahhhNhNubhÑ)�”}”(hŒ/camera/depth_registered/points”h]”hŒ/camera/depth_registered/points”…”�”}”(hjihhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*hÐhjahhhh+hKubhŒ topic from the list.”…”�”}”(hjahhhNhNubeh}”(h ]”h"]”h$]”h&]”h(]”uh*h,hK.hj^hhhh+ubah}”(h ]”h"]”h$]”h&]”h(]”uh*h¬hK.hjhhhh+ubh­)�”}”(hhh]”h-)�”}”(hŒ-Ensure the fixed frame is set to camera_link.”h]”(hŒ!Ensure the fixed frame is set to ”…”�”}”(hjŠhhhNhNubhÑ)�”}”(hŒ camera_link”h]”hŒ camera_link”…”�”}”(hj’hhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*hÐhjŠhhhh+hKubhŒ.”…”�”}”(hjŠhhhNhNubeh}”(h ]”h"]”h$]”h&]”h(]”uh*h,hK/hj‡hhhh+ubah}”(h ]”h"]”h$]”h&]”h(]”uh*h¬hK/hjhhhh+ubeh}”(h ]”h"]”h$]”h&]”h(]”uh*h§hK,hjühhhh+ubjI)�”}”(hhh]”h­)�”}”(hhh]”h-)�”}”(hŒExample Visualization”h]”jU)�”}”(hŒExample Visualization”h]”hŒExample Visualization”…”�”}”(hjÀhhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*jThj¼hhhh+hKubah}”(h ]”h"]”h$]”h&]”h(]”uh*h,hK1hj¹hhhh+ubah}”(h ]”h"]”h$]”h&]”h(]”uh*h¬hK1hj¶hhhh+ubah}”(h ]”h"]”h$]”h&]”h(]”uh*jHhK1hjühhhh+ubh-)�”}”(hŒKThe result of the colored point cloud in RViz2 should look similar to this:”h]”hŒKThe result of the colored point cloud in RViz2 should look similar to this:”…”�”}”(hjàhhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”uh*h,hK3hjühhhh+ubh-)�”}”(hŒ!Colored Point Cloud Visualization”h]”j‰)�”}”(hjðh]”hh…”�”}”(hjòhhhNhNubah}”(h ]”h"]”h$]”h&]”h(]”j–Œ#source/image/point_cloud/image6.jpg”j˜jðj™}”j›jþsjœŒ../image/point_cloud/image6.jpg”uh*jˆhjîhhhh+hKubah}”(h ]”h"]”h$]”h&]”h(]”uh*h,hK5hjühhhh+ubeh}”(h ]”Œ(visualizing-colored-point-cloud-in-rviz2”ah"]”h$]”Œ(visualizing colored point cloud in rviz2”ah&]”h(]”uh*h hK(hj´hhhh+ubeh}”(h ]”Œenabling-colored-point-cloud”ah"]”h$]”Œenabling colored point cloud”ah&]”h(]”uh*h hKhh hhhh+ubeh}”(h ]”Œ-enabling-and-visualizing-point-cloud-in-ros-2”ah"]”h$]”Œ-enabling and visualizing point cloud in ros 2”ah&]”h(]”uh*h hKhhhhhh+ubah}”(h ]”h"]”h$]”h&]”h(]”Œsource”h+Œtranslation_progress”}”(Œtotal”KŒ
translated”Kuuh*hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)�”}”(Œoutput”NhNŒ generator”NŒ datestamp”NŒ root_prefix”Œ/”Œ source_link”NŒ
source_url”NŒ
toc_backlinks”Œentry”Œfootnote_backlinks”ˆŒ