Realsense-ros: realsense d435 + turtlebot2

Created on 5 Nov 2018  路  5Comments  路  Source: IntelRealSense/realsense-ros

Hi,
I am an absolute beginner in ROS
I have a turtlebot2 mounted by velodyne laser scanner
this turtlebot can built a map and can also perform autonomous navigation. (gmapping used)
Now my objective is replacing the laser scanner with realsense d435 and do the same job.
I can start the camera node and make it publish the RGBD point cloud using aligned depth topic
by this command
roslaunch realsense2_camera rs_rgbd.launch
so my question is how to replace the velodyne laser scanner by the d435 to be used in gmapping to do the same job of mapping environment.

All 5 comments

There's a package called Depth to Laser Scan, it will take your depth image and create a virtual laser scan out of a slice to use in gmapping. Obviously the map will be worse because these accuracies are worse, shorter range, and seeing less.

http://wiki.ros.org/depthimage_to_laserscan

This should get you started.

Thank you so much. I tried it before but i failed. Attached the content of the lunch file which i already use for velodyne laser scanner.
I know that i should replace pointcloud_to_laser scan by depthimage_to_laserscan and to include the realsense driver. Also to replace tf2 of velodyne to realsense.
So, if possible can you give me an example of how to change the following launch file contents.?
Many thanks in advance.

DEFAULT.txt

@ELDEMIRY your description is exactly correct. You just need to swap your node to depth images (and the appropriate parameters for your sensor), make sure your scan topic is the same, launch the realsense driver (which I assume you can find an example here for), and update TF.

I dont have an example for you unfortunately, I use a lidar on my robots.

Many thanks.

No problem. Do you mind closing the ticket? This isnt really in the scope of ros wrapped realsense driver anymore

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jattiogbe picture jattiogbe  路  3Comments

jlysnantel picture jlysnantel  路  7Comments

jacksonkr picture jacksonkr  路  4Comments

brookdpg picture brookdpg  路  6Comments

LEGO999 picture LEGO999  路  4Comments