-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pointcloud not published in ROS2 Foxy #2295
Comments
Hi @Yoshihito-M Do you receive the same warnings in ROS2 wrapper 4.0.4 when enabling the pointcloud using the launch instruction below? ros2 launch realsense2_camera rs_launch.py align_depth:=true pointcloud.enable:=true |
Thank you for helpful advice. |
The warning No stream match for pointcloud chosen texture process - Color can appear every time that there is an unavailable texture, likely because of a frame drop. The point cloud will not be published in the frame that the message occurs. Is the point cloud able to be generated in RViz2 even though the warning is appearing, please? |
@MartyG-RealSense As a result, I could solve my issue by your advices. |
I'm pleased to hear that you achieved a solution, @Yoshihito-M - thanks very much for the update! |
hi @Yoshihito-M and @MartyG-RealSense, I am using the D445 camera on the humble version of ROS2. The problem I am facing is that when I do a ros2 topic list, the /camera/depth/color/points topic is present but it seems no data is being published over it. I tried ros2 topic echo and also tried to visualize it in rviz2 but couldn't visualize the data or echo it in the terminal. |
Hi @JMadhup Are you including pointcloud.enable:=true in your launch instruction, please?
|
@MartyG-RealSense yes that is exactly the same command I am using. |
Which RealSense ROS wrapper and librealsense SDK versions are you using? |
@MartyG-RealSense I am using librealsense version 2.51.1 and realsense ROS version 4.51.1 |
In the ROS2 wrapper, the align parameter is I note that the Are there still no messages if the launch is defined with a low depth and color resolution and FPS?
|
@MartyG-RealSense No. Launching with low FPS does not help |
Which messages, if any, are published in the ROS launch log after RealSense Node is Up (the point in the log where launch is completed and the sesssion is now running). |
@MartyG-RealSense |
What method did you use to install librealsense and the ROS wrapper? Did you install librealsense first and test that it worked successfully, and then install the wrapper secondly after that from source code with colcon build |
@MartyG-RealSense |
Let's check if the align function is able to publish aligned topics and messages are being generated. If align also does not publish messages then it could suggest a problem with the ROS wrapper or the particular computer that the wrapper is being run on.
|
Hello @MartyG-RealSense, Sorry for the late response, I got otherwise engaged. I tried using the command that you specified and the align function does infact publish the aligned topic and messages are also being generated. I was able to visualize the image_raw message using the image_view package but the image was same as it is on the /camera/depth/image_rect_raw topic |
What do the aligned topics look like in RViz instead of image_view? |
The aligned topic has now also stopped generating any messages. I tried both with RViz and image_view |
@JMadhup Which computer you are using. Is it a PC such as a laptop or desktop, or a computing board such as Raspberry Pi or Nvidia Jetson? |
@MartyG-RealSense |
Is the pointcloud published if you leave out the
|
Raspbery Pi 4 (8 GB), Ubuntu 22.04, ROS2 humble, d435i Launching realsense camera with the launch_arguments |
Thanks so much @ashBabu for sharing your Pi pointcloud method with the RealSense community! |
Infos
LibRealSense v2.50.0
ROS2 Foxy
ROS2 Foxy Wrapper build 4.0.4
Ubuntu 20.04 LTS
D455
Ploblem
After launching
ros2 launch realsense2_camera rs_launch.py filters:=pointcloud align_depth:=true
,using ros2 topic list gives me the topics as follows:
/camera/aligned_depth_to_color/camera_info /camera/aligned_depth_to_color/image_raw /camera/color/camera_info /camera/color/image_raw /camera/depth/camera_info /camera/depth/image_rect_raw /camera/depth/metadata /camera/extrinsics/depth_to_color /camera/imu /parameter_events /rosout /tf_static
.As shown above, the topics /camera/depth/color/points is not listed.
In addition, when launching the launch file, the concerned WARN message is shown as follows:
[WARN] could not set param: pointcloud.stream_index_filter with -1 Range: [-1, -2147483648]: parameter 'pointcloud.stream_index filter' could not be set: Parameter {} doesn't comply with integer range
.I guess that that WARN message affects failure of the topics /camera/depth/color/points.
I would like to know how to fix 'pointcloud.stream_index filter'.
The text was updated successfully, but these errors were encountered: