Git Product home page Git Product logo

Comments (25)

MartyG-RealSense avatar MartyG-RealSense commented on July 21, 2024

Hi @alwisy64 Please see if you can successfully view a pointcloud in the RealSense ROS1 wrapper using an RGBD launch instead of rs_camera. Instructions for doing so can be found at #1967 (comment)

from realsense-ros.

alwisy64 avatar alwisy64 commented on July 21, 2024

Hi Marty,

Thanks for your reply. I was able to install and launch using rs_rgbd.launch (I tried with and without a pointcloud filter) but neither were able to generate a pointcloud and I did not see anything being published to depth_image_proc.

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on July 21, 2024

There does not seem be any RGB color information in your image, only depth data.

Which RealSense camera model are you using, please?

In the log of your launch, which name does the camera have on the 'Device with name' line?

image

from realsense-ros.

alwisy64 avatar alwisy64 commented on July 21, 2024

I am using an Intel RealSense L515

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on July 21, 2024

Have you tried unplugging the micro-sized end of the USB cable from the base of the camera, reversing the connector's orientation and plugging it back into the L515 camera, please (USB-C cables are two-way insertion at the micro-sized end). If you have not tried this yet, does doing so make any difference?

from realsense-ros.

alwisy64 avatar alwisy64 commented on July 21, 2024

I hadn't tried that before, but it did not seem to make a difference just now. There are two pointcloud topics I can select on rviz (/camera/depth/color/points and /camera/depth_registered/points), but neither are able to be visualized or seem to have any messages being published to them.

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on July 21, 2024

Are there any RGB color messages on /camera/camera/color/image_raw

from realsense-ros.

alwisy64 avatar alwisy64 commented on July 21, 2024

No, I don’t see any messages being published there either

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on July 21, 2024

The rs_camera launch file should provide a pointcloud in RViz like the one in the image below when the pointcloud filter is enabled.

image

I note that in the bottom half of your RViz side panel, the color image is not shown like it is in the one above.

What happens if you click the Add button in the side panel and then select the By Topic option and the topic /camera/color/image_raw

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on July 21, 2024

Hi @alwisy64 Do you require further assistance with this case, please? Thanks!

from realsense-ros.

alwisy64 avatar alwisy64 commented on July 21, 2024

Hi, sorry for the delayed reply. After trying rs_camera.launch with the pointcloud filter enabled, these were the topics that were available to add. I didn't have the choice of /camera/color/image_raw. I also tried /camera/depth/color/points/PointCloud2, which doesn't seem to generate anything, but /camera/depth/image_rect_raw is able to create the image on the bottom left.

image

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on July 21, 2024

Which RealSense camera model are you using, please?

from realsense-ros.

alwisy64 avatar alwisy64 commented on July 21, 2024

I'm using the L515

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on July 21, 2024

Thanks for the reminder about your camera model.

Do you have access to the RealSense Viewer tool? If you do, is the RGB color stream able to be displayed with your L515?

from realsense-ros.

alwisy64 avatar alwisy64 commented on July 21, 2024

Yes, I've tested the camera using the viewer tool and the color stream works fine there. If it makes a difference, I don't necessarily need the color output, just to be able to create and visualize the pointcloud data.

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on July 21, 2024

If you do not necessarily need the color output, are you able to texture the pointcloud with the infrared stream instead of the color stream by using the roslaunch command below?

roslaunch realsense2_camera rs_camera.launch filters:=pointcloud pointcloud_texture_stream:=RS2_STREAM_INFRARED

from realsense-ros.

alwisy64 avatar alwisy64 commented on July 21, 2024

That did not seem to work either, the only topics that are available are still the camera/depth/color and camera/depth/image_rect_raw. Is there anything else I could try or any other info I can provide that would help figure out what is causing the issue?

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on July 21, 2024

The infrared topics are disabled by default in the ROS wrapper. Are you able to get the infra1 topic and texture a pointcloud with it if you add enable_infra1:=true to your roslaunch instruction, please?

from realsense-ros.

alwisy64 avatar alwisy64 commented on July 21, 2024

I gave it a shot, but it did not seem to make a difference still. I don't see any additional topics available on rviz. Here is the roslaunch command I used to make sure I didn't miss something.

image
image

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on July 21, 2024

The lack of color in RViz, no infra1 topic when enabled and no pointcloud when using rs_rgbd.launch suggests that there is a problem in this ROS1 wrapper installation.

What methods did you use to install the librealsense SDK and RealSense ROS1 wrapper please? For example, if you installed librealsense first and then installed the ROS1 wrapper from packages with sudo apt-get install ros-$ROS_DISTRO-realsense2-camera then you could end up with two conflicting librealsense installations on the same computer. This is because the apt-get instruction installs both librealsense and the wrapper at the same time.

from realsense-ros.

alwisy64 avatar alwisy64 commented on July 21, 2024

I'm not completely sure since I installed it a while ago. I don't think I installed librealsense separately though, I think I just used sudo apt-get install ros-$ROS_DISTRO-realsense2-camera to install the wrapper. Is there a way to check that I don't have multiple conflicting installations?

Also, I'm not running Linux natively. I had been using VirtualBox but switched to VMWare Workstation. Now I'm able to get color output from the camera, but I still am unable to generate a pointcloud or use the infra1 topic.

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on July 21, 2024

If you had installed librealsense from both source code and packages (which wold count as two separate conflicting installations) then the easiest way to tell would be to launch the RealSense Viewer tool and see if a red error message Multiple realsense udev-rules were found! appears in the top corner of the Viewer window.

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on July 21, 2024

Hi @alwisy64 Do you require further assistance with this case, please? Thanks!

from realsense-ros.

alwisy64 avatar alwisy64 commented on July 21, 2024

Hi, sorry for the delay again. It seems switching virtual machines resolved most of the issues for me. No further assistance needed, thanks!

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on July 21, 2024

You are very welcome. I'm pleased to hear that a VM change helped. Thanks very much for the update!

from realsense-ros.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.