Git Product home page Git Product logo

Comments (5)

ctanzer avatar ctanzer commented on July 30, 2024 3

First You need to tell the node where to find the depth image you want to transform. You can do this with

<remap from="image" to="your/topic"/>

in a launch-file. As it is already mentioned above.

After that I made a mistake: I didn't read the manual properly!

depthimage_to_laserscan uses lazy subscribing and will not subscribe to image or camera_info until there is a subscriber for scan.

When I was adding the output topic (default "/scan") to rviz the node (/depthimage_to_laserscan) was subscribing to my remapped depth image. Means the node is only subscribing to the image if some other node(s) are subscribing to its own output.

But I can't explain why You are seeing data in Your "/scan" topic. Maybe You have another node running publishing a "/scan" topic too?

from depthimage_to_laserscan.

ctanzer avatar ctanzer commented on July 30, 2024

Is there already a solution for this problem?

from depthimage_to_laserscan.

tfoote avatar tfoote commented on July 30, 2024

This is expected.

This node does lazy subscriptions so that it doesn't listen to the depth image topic to save bandwidth.

https://github.com/ros-perception/depthimage_to_laserscan/blob/indigo-devel/src/DepthImageToLaserScanROS.cpp#L46

https://github.com/ros-perception/depthimage_to_laserscan/blob/indigo-devel/src/DepthImageToLaserScanROS.cpp#L69-L84

from depthimage_to_laserscan.

pallavbakshi avatar pallavbakshi commented on July 30, 2024

@ctanzer Hey! Could you explain what you did so that it can be helpful for all of us? The ROS depthimage to laserscan page mentions that the subscribed topics are image and camera_info but when I look at the subscribed topic then I don't see any. However, I can see some data out of /scan. What is happening here?

Thank you for your help in advance!!

from depthimage_to_laserscan.

pallavbakshi avatar pallavbakshi commented on July 30, 2024

Hi @ctanzer Thank you for the explanation. There was only one /scan topic being published and that by the depthimage_to_laserscan node. I don't know why I was able to see the output of /scan topic even if nothing was subscribed to the same. However, I tried testing it with hector slam and it work perfectly. Thank you so much for your explanation. I have a question on ROS wiki regarding the same. If you would like to gain some points over there then simply copy paste the answer over there and I will accept it. However if not then I will simply update my question with your answer so that it might be helpful for someone having similar issue next time.

http://answers.ros.org/question/253473/depthimage_to_laserscan-not-subscribing-to-depth-by-kinect-360/

Thanks

from depthimage_to_laserscan.

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.