ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

realsense d435 camera does not produce data for scan topic

asked 2022-08-06 19:14:34 -0600

distro gravatar image

My realsense d435 camera works in ros for certain things, but it is unable to do gmapping because no data is being received in /scan topic, there fore, the depthimage_to_laserscan nodelet will not activate. What could be the possible reasons for this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-08-07 01:13:02 -0600

ravijoshi gravatar image

I have not used the gmapping package. However, looking at the wiki page, it seems that it requires sensor_msgs/LaserScan type of data. The Intel RealSense D435 does not produce such type of data. While looking at the depthimage_to_laserscan package, which takes a depth image and generates a 2D laser scan, we should be able to run gmapping. You need to subscribe to the following topics:

  • image: /camera/depth/image_raw
  • camera_info: /camera/depth/camera_info

The DepthImageToLaserScanNodelet nodelet will publish on scan topic which should be the input for gmapping package.

I do not have D435 at hand right now, therefore the image and camera_info topics may be incorrect. Please check them from terminal.

edit flag offensive delete link more

Comments

@Ravi Joshi " depthimage_to_laserscan uses lazy subscribing and will not subscribe to image or camera_info until there is a subscriber for scan.", there is no data being recieved by scan topic, that is the main issue, the nodelet will not activate until that happens

distro gravatar image distro  ( 2022-08-07 22:13:06 -0600 )edit

That totally makes sense. Why don't you make a subscriber which is listening to scan topic?

ravijoshi gravatar image ravijoshi  ( 2022-08-07 22:25:01 -0600 )edit

@Ravi Joshi, I simply don't know if it's as simple as that, literally just launching a node that is a subscriber that accepts scan message types doesn't seem like the solution.

distro gravatar image distro  ( 2022-08-07 22:28:33 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2022-08-06 19:14:34 -0600

Seen: 237 times

Last updated: Aug 07 '22