how to find distance between 2 robots in gazebo via ROS melodic via camera/lidar?

asked 2020-04-22 01:06:21 -0600

rishabhlunker gravatar image
  • I want to find distance between two robots in gazebo world via ROS. Is there a way to do it ?

  • The robots have a camera plugin and a lidar plugin installed

  • I am planning to process the image and get the pixel data and put a beacon onto a second robot to find locations of beacons. And then use geometry aspects of those pixels to estimate the distance.
edit retag flag offensive close merge delete


what is your question exactly? if this can be done in ROS? Yes, it can and your approach seems feasible.

Procópio gravatar image Procópio  ( 2020-04-22 03:46:59 -0600 )edit

I wanted to know how to do it in more detailed way? Like will I be able to get image pixel data through stereo camera or do I need to add another kinect or any depth image camera to get pixel data

rishabhlunker gravatar image rishabhlunker  ( 2020-04-22 04:32:33 -0600 )edit

I feel your question is much more about technical concepts then it is about ROS in general. It is possible to do it? Sure. But you will have to do your own research on how to do it.

Procópio gravatar image Procópio  ( 2020-04-22 06:02:37 -0600 )edit