Comments (5)
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.
Is there already a solution for this problem?
from depthimage_to_laserscan.
This is expected.
This node does lazy subscriptions so that it doesn't listen to the depth image topic to save bandwidth.
from depthimage_to_laserscan.
@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.
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.
Thanks
from depthimage_to_laserscan.
Related Issues (20)
- [ERROR] [1548154452.152836138]: Could not convert depth image to laserscan: Depth image has unsupported encoding: rgb8 HOT 7
- Create a ros2 branch HOT 2
- No rule to make target '/usr/lib/aarch64-linux-gnu/libopencv_objdetect.so.3.2.0' HOT 4
- Release for Noetic HOT 3
- melodic not launch HOT 4
- Some questions about the project running HOT 1
- If i want to rotate camera 90 degree, how can i use this package? HOT 1
- camera_info remapping in launch file doesn't work (melodic) HOT 2
- Failed to compile: /opt/ros/melodic/include/image_geometry/pinhole_camera_model.h:5:10: fatal error: opencv2/core/core.hpp: No such file or directory HOT 1
- depthimage_to_laserscan didn't work with rs_d400_and_t265 HOT 2
- Topics not synchronised
- Out of range become nan instead of inf. HOT 2
- Node Dies Soon After Launch HOT 4
- could you tell me , how can i publish depth image to laser scan with ros2 HOT 2
- How to change scan topic? HOT 1
- Camera depth frame is dropping message in rviz HOT 1
- colcon build ros2 foxy HOT 2
- Scan Height Issue HOT 1
- No camera_info and depth topic exit
- depth_image_to_laserscan not publishing to /kinect_scan topic in ROS2 Galactic HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from depthimage_to_laserscan.